Nektar++
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:
[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 189 of file SourcePoint.hpp.

Constructor & Destructor Documentation

◆ BPoint()

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 197 of file SourcePoint.hpp.

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

198  : SPBase(l), sid(i), m_uv(uv)
199  {
200  m_type = ePBoundary;
201  }
Array< OneD, NekDouble > m_uv
uv coord on surf
SPBase(Array< OneD, NekDouble > l)
Definition: SourcePoint.hpp:64

◆ ~BPoint()

Nektar::NekMeshUtils::BPoint::~BPoint ( )
inline

Definition at line 203 of file SourcePoint.hpp.

203 {};

Member Function Documentation

◆ ChangeType()

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

Definition at line 226 of file SourcePoint.hpp.

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

227  {
230  return ret;
231  }
Array< OneD, NekDouble > m_loc
x,y,z location
Array< OneD, NekDouble > m_uv
uv coord on surf
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
std::shared_ptr< CPoint > CPointSharedPtr

◆ GetCAD()

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 220 of file SourcePoint.hpp.

221  {
222  surf = sid;
223  uv = m_uv;
224  }
Array< OneD, NekDouble > m_uv
uv coord on surf

◆ GetDelta()

NekDouble Nektar::NekMeshUtils::BPoint::GetDelta ( )
inlinevirtual

Reimplemented from Nektar::NekMeshUtils::SPBase.

Definition at line 205 of file SourcePoint.hpp.

References Nektar::ErrorUtil::efatal, and NEKERROR.

206  {
207  NEKERROR(ErrorUtil::efatal, "Cannot retrieve delta from this type");
208  return 0.0;
209  }
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mod...
Definition: ErrorUtil.hpp:209

◆ SetDelta()

void Nektar::NekMeshUtils::BPoint::SetDelta ( NekDouble  i)
inlinevirtual

Reimplemented from Nektar::NekMeshUtils::SPBase.

Definition at line 211 of file SourcePoint.hpp.

References Nektar::ErrorUtil::efatal, and NEKERROR.

212  {
213  boost::ignore_unused(i);
214  NEKERROR(ErrorUtil::efatal, "Cannot retrieve delta from this type");
215  }
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mod...
Definition: ErrorUtil.hpp:209

Friends And Related Function Documentation

◆ MemoryManager< BPoint >

friend class MemoryManager< BPoint >
friend

Definition at line 192 of file SourcePoint.hpp.

Member Data Documentation

◆ m_ti

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

Definition at line 238 of file SourcePoint.hpp.

◆ m_uv

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

uv coord on surf

Definition at line 237 of file SourcePoint.hpp.

◆ sid

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

surf id

Definition at line 235 of file SourcePoint.hpp.