Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | Friends | List of all members
Nektar::NekMeshUtils::CurvaturePoint Class Reference

class for a curvature samlping Point More...

#include <CurvaturePoint.hpp>

Collaboration diagram for Nektar::NekMeshUtils::CurvaturePoint:
Collaboration graph
[legend]

Public Member Functions

 CurvaturePoint (int i, Array< OneD, NekDouble > uv, Array< OneD, NekDouble > l, NekDouble d, bool bnd=true)
 constructor for a valid point (has radius of curvature) More...
 
 CurvaturePoint (int i, Array< OneD, NekDouble > uv, Array< OneD, NekDouble > l)
 constructor for a invalid point More...
 
bool IsValid ()
 return bool on whether point is valid More...
 
bool Isboundary ()
 
NekDouble GetDelta ()
 get mesh spacing paramter More...
 
Array< OneD, NekDoubleGetLoc ()
 get location of point More...
 
void GetCAD (int &surf, Array< OneD, NekDouble > &uv)
 gets the corresponding cad information for the point More...
 
void SetDelta (NekDouble i)
 

Private Attributes

int sid
 surf id More...
 
Array< OneD, NekDoublem_uv
 uv coord on surf More...
 
Array< OneD, NekDoublem_loc
 x,y,z location More...
 
NekDouble m_delta
 normal vector of surface at point More...
 
bool m_valid
 valid point or not More...
 
bool m_boundary
 

Friends

class MemoryManager< CurvaturePoint >
 

Detailed Description

class for a curvature samlping Point

Definition at line 50 of file CurvaturePoint.hpp.

Constructor & Destructor Documentation

Nektar::NekMeshUtils::CurvaturePoint::CurvaturePoint ( int  i,
Array< OneD, NekDouble uv,
Array< OneD, NekDouble l,
NekDouble  d,
bool  bnd = true 
)
inline

constructor for a valid point (has radius of curvature)

Definition at line 58 of file CurvaturePoint.hpp.

References m_valid.

63  : sid(i), m_uv(uv), m_loc(l), m_delta(d), m_boundary(bnd)
64  {
65  m_valid = true;
66  }
Array< OneD, NekDouble > m_uv
uv coord on surf
NekDouble m_delta
normal vector of surface at point
Array< OneD, NekDouble > m_loc
x,y,z location
Nektar::NekMeshUtils::CurvaturePoint::CurvaturePoint ( int  i,
Array< OneD, NekDouble uv,
Array< OneD, NekDouble l 
)
inline

constructor for a invalid point

Definition at line 71 of file CurvaturePoint.hpp.

References m_boundary, m_delta, and m_valid.

72  : sid(i), m_uv(uv), m_loc(l)
73  {
74  m_delta = -1;
75  m_valid = false;
76  m_boundary = true;
77  }
Array< OneD, NekDouble > m_uv
uv coord on surf
NekDouble m_delta
normal vector of surface at point
Array< OneD, NekDouble > m_loc
x,y,z location

Member Function Documentation

void Nektar::NekMeshUtils::CurvaturePoint::GetCAD ( int &  surf,
Array< OneD, NekDouble > &  uv 
)
inline

gets the corresponding cad information for the point

Definition at line 118 of file CurvaturePoint.hpp.

References m_uv, and sid.

119  {
120  surf = sid;
121  uv = m_uv;
122  }
Array< OneD, NekDouble > m_uv
uv coord on surf
NekDouble Nektar::NekMeshUtils::CurvaturePoint::GetDelta ( )
inline

get mesh spacing paramter

Definition at line 95 of file CurvaturePoint.hpp.

References m_delta, and m_valid.

96  {
97  if (m_valid)
98  {
99  return m_delta;
100  }
101  else
102  {
103  return -1;
104  }
105  }
NekDouble m_delta
normal vector of surface at point
Array<OneD, NekDouble> Nektar::NekMeshUtils::CurvaturePoint::GetLoc ( )
inline

get location of point

Definition at line 110 of file CurvaturePoint.hpp.

References m_loc.

111  {
112  return m_loc;
113  }
Array< OneD, NekDouble > m_loc
x,y,z location
bool Nektar::NekMeshUtils::CurvaturePoint::Isboundary ( )
inline

Definition at line 87 of file CurvaturePoint.hpp.

References m_boundary.

88  {
89  return m_boundary;
90  }
bool Nektar::NekMeshUtils::CurvaturePoint::IsValid ( )
inline

return bool on whether point is valid

Definition at line 82 of file CurvaturePoint.hpp.

References m_valid.

83  {
84  return m_valid;
85  }
void Nektar::NekMeshUtils::CurvaturePoint::SetDelta ( NekDouble  i)
inline

Definition at line 124 of file CurvaturePoint.hpp.

References m_delta.

125  {
126  m_delta = i;
127  }
NekDouble m_delta
normal vector of surface at point

Friends And Related Function Documentation

friend class MemoryManager< CurvaturePoint >
friend

Definition at line 53 of file CurvaturePoint.hpp.

Member Data Documentation

bool Nektar::NekMeshUtils::CurvaturePoint::m_boundary
private

Definition at line 141 of file CurvaturePoint.hpp.

Referenced by CurvaturePoint(), and Isboundary().

NekDouble Nektar::NekMeshUtils::CurvaturePoint::m_delta
private

normal vector of surface at point

Definition at line 137 of file CurvaturePoint.hpp.

Referenced by CurvaturePoint(), GetDelta(), and SetDelta().

Array<OneD, NekDouble> Nektar::NekMeshUtils::CurvaturePoint::m_loc
private

x,y,z location

Definition at line 135 of file CurvaturePoint.hpp.

Referenced by GetLoc().

Array<OneD, NekDouble> Nektar::NekMeshUtils::CurvaturePoint::m_uv
private

uv coord on surf

Definition at line 133 of file CurvaturePoint.hpp.

Referenced by GetCAD().

bool Nektar::NekMeshUtils::CurvaturePoint::m_valid
private

valid point or not

Definition at line 139 of file CurvaturePoint.hpp.

Referenced by CurvaturePoint(), GetDelta(), and IsValid().

int Nektar::NekMeshUtils::CurvaturePoint::sid
private

surf id

Definition at line 131 of file CurvaturePoint.hpp.

Referenced by GetCAD().