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

class for a planar boundary based samlping Point More...

#include <SourcePoint.hpp>

Inheritance diagram for Nektar::NekMeshUtils::BPoint:
Inheritance graph
[legend]
Collaboration diagram for Nektar::NekMeshUtils::BPoint:
Collaboration graph
[legend]

Public Member Functions

 BPoint (int i, Array< OneD, NekDouble > uv, Array< OneD, NekDouble > l)
 constructor for a boundary point without delta More...
 
 ~BPoint ()
 
NekDouble GetDelta ()
 
void SetDelta (NekDouble i)
 
void GetCAD (int &surf, Array< OneD, NekDouble > &uv)
 gets the corresponding cad information for the point More...
 
CPointSharedPtr ChangeType ()
 
- Public Member Functions inherited from Nektar::NekMeshUtils::SPBase
 SPBase (Array< OneD, NekDouble > l)
 
virtual ~SPBase ()
 
SPType GetType ()
 
Array< OneD, NekDoubleGetLoc ()
 
bool HasDelta ()
 
bool Isboundary ()
 

Private Attributes

int sid
 surf id More...
 
Array< OneD, NekDoublem_uv
 uv coord on surf More...
 
NekDouble m_ti
 

Friends

class MemoryManager< BPoint >
 

Additional Inherited Members

- Protected Attributes inherited from Nektar::NekMeshUtils::SPBase
SPType m_type
 type More...
 
Array< OneD, NekDoublem_loc
 x,y,z location More...
 

Detailed Description

class for a planar boundary based samlping Point

Definition at line 182 of file SourcePoint.hpp.

Constructor & Destructor Documentation

Nektar::NekMeshUtils::BPoint::BPoint ( int  i,
Array< OneD, NekDouble uv,
Array< OneD, NekDouble l 
)
inline

constructor for a boundary point without delta

Definition at line 190 of file SourcePoint.hpp.

References Nektar::NekMeshUtils::ePBoundary, and Nektar::NekMeshUtils::SPBase::m_type.

191  : SPBase(l), sid(i), m_uv(uv)
192  {
193  m_type = ePBoundary;
194  }
Array< OneD, NekDouble > m_uv
uv coord on surf
SPBase(Array< OneD, NekDouble > l)
Definition: SourcePoint.hpp:63
Nektar::NekMeshUtils::BPoint::~BPoint ( )
inline

Definition at line 196 of file SourcePoint.hpp.

196 {};

Member Function Documentation

CPointSharedPtr Nektar::NekMeshUtils::BPoint::ChangeType ( )
inline

Definition at line 218 of file SourcePoint.hpp.

References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::NekMeshUtils::SPBase::m_loc, m_uv, and sid.

219  {
222  return ret;
223  }
Array< OneD, NekDouble > m_loc
x,y,z location
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
Array< OneD, NekDouble > m_uv
uv coord on surf
boost::shared_ptr< CPoint > CPointSharedPtr
void Nektar::NekMeshUtils::BPoint::GetCAD ( int &  surf,
Array< OneD, NekDouble > &  uv 
)
inlinevirtual

gets the corresponding cad information for the point

Reimplemented from Nektar::NekMeshUtils::SPBase.

Definition at line 212 of file SourcePoint.hpp.

References m_uv, and sid.

213  {
214  surf = sid;
215  uv = m_uv;
216  }
Array< OneD, NekDouble > m_uv
uv coord on surf
NekDouble Nektar::NekMeshUtils::BPoint::GetDelta ( )
inlinevirtual

Reimplemented from Nektar::NekMeshUtils::SPBase.

Definition at line 198 of file SourcePoint.hpp.

References ASSERTL0.

199  {
200  ASSERTL0(false,"Cannot retrieve delta from this type");
201  return 0.0;
202  }
#define ASSERTL0(condition, msg)
Definition: ErrorUtil.hpp:198
void Nektar::NekMeshUtils::BPoint::SetDelta ( NekDouble  i)
inlinevirtual

Reimplemented from Nektar::NekMeshUtils::SPBase.

Definition at line 204 of file SourcePoint.hpp.

References ASSERTL0.

205  {
206  ASSERTL0(false,"Cannot retrieve delta from this type");
207  }
#define ASSERTL0(condition, msg)
Definition: ErrorUtil.hpp:198

Friends And Related Function Documentation

friend class MemoryManager< BPoint >
friend

Definition at line 185 of file SourcePoint.hpp.

Member Data Documentation

NekDouble Nektar::NekMeshUtils::BPoint::m_ti
private

Definition at line 230 of file SourcePoint.hpp.

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

uv coord on surf

Definition at line 229 of file SourcePoint.hpp.

Referenced by ChangeType(), and GetCAD().

int Nektar::NekMeshUtils::BPoint::sid
private

surf id

Definition at line 227 of file SourcePoint.hpp.

Referenced by ChangeType(), and GetCAD().