Nektar++
Public Member Functions | Protected Attributes | List of all members
Nektar::SpatialDomains::RefRegion Class Referenceabstract

Abstract base class for the refinement surface region. More...

#include <RefRegion.h>

Inheritance diagram for Nektar::SpatialDomains::RefRegion:
[legend]

Public Member Functions

 RefRegion (const unsigned int coordim, NekDouble m_radius, std::vector< NekDouble > coord1, std::vector< NekDouble > coord2, std::vector< unsigned int > numModes, std::vector< unsigned int > numPoints)
 Constructor. More...
 
virtual ~RefRegion ()
 Destructor. More...
 
virtual bool v_Contains (const Array< OneD, NekDouble > &coords)=0
 Pure virtual fuction. More...
 
std::vector< unsigned int > GetNumModes ()
 Get the number of modes to update expansion. More...
 
std::vector< unsigned int > GetNumPoints ()
 Get the number of quadrature points to update expansion. More...
 

Protected Attributes

unsigned int m_coordim
 Dimension of the coordinate (space dimension) More...
 
NekDouble m_radius
 Radius of the surface region. More...
 
std::vector< NekDoublem_coord1
 Coordinate 1. More...
 
std::vector< NekDoublem_coord2
 Coordinate 2. More...
 
std::vector< unsigned int > m_numModes
 Number of modes. More...
 
std::vector< unsigned int > m_numPoints
 Number of quadrature points. More...
 

Detailed Description

Abstract base class for the refinement surface region.

Definition at line 50 of file RefRegion.h.

Constructor & Destructor Documentation

◆ RefRegion()

Nektar::SpatialDomains::RefRegion::RefRegion ( const unsigned int  coordim,
NekDouble  m_radius,
std::vector< NekDouble coord1,
std::vector< NekDouble coord2,
std::vector< unsigned int >  numModes,
std::vector< unsigned int >  numPoints 
)

Constructor.

Definition at line 45 of file RefRegion.cpp.

50 : m_coordim(coordim), m_radius(radius), m_coord1(coord1), m_coord2(coord2),
51 m_numModes(numModes), m_numPoints(numPoints)
52{
53}
unsigned int m_coordim
Dimension of the coordinate (space dimension)
Definition: RefRegion.h:81
std::vector< unsigned int > m_numPoints
Number of quadrature points.
Definition: RefRegion.h:91
std::vector< NekDouble > m_coord2
Coordinate 2.
Definition: RefRegion.h:87
std::vector< unsigned int > m_numModes
Number of modes.
Definition: RefRegion.h:89
std::vector< NekDouble > m_coord1
Coordinate 1.
Definition: RefRegion.h:85
NekDouble m_radius
Radius of the surface region.
Definition: RefRegion.h:83

◆ ~RefRegion()

Nektar::SpatialDomains::RefRegion::~RefRegion ( )
virtual

Destructor.

Definition at line 55 of file RefRegion.cpp.

56{
57}

Member Function Documentation

◆ GetNumModes()

std::vector< unsigned int > Nektar::SpatialDomains::RefRegion::GetNumModes ( )
inline

Get the number of modes to update expansion.

Definition at line 68 of file RefRegion.h.

69 {
70 return m_numModes;
71 }

References m_numModes.

Referenced by Nektar::SpatialDomains::MeshGraph::PRefinementElmts().

◆ GetNumPoints()

std::vector< unsigned int > Nektar::SpatialDomains::RefRegion::GetNumPoints ( )
inline

Get the number of quadrature points to update expansion.

Definition at line 74 of file RefRegion.h.

75 {
76 return m_numPoints;
77 }

References m_numPoints.

Referenced by Nektar::SpatialDomains::MeshGraph::PRefinementElmts().

◆ v_Contains()

virtual bool Nektar::SpatialDomains::RefRegion::v_Contains ( const Array< OneD, NekDouble > &  coords)
pure virtual

Member Data Documentation

◆ m_coord1

std::vector<NekDouble> Nektar::SpatialDomains::RefRegion::m_coord1
protected

◆ m_coord2

std::vector<NekDouble> Nektar::SpatialDomains::RefRegion::m_coord2
protected

◆ m_coordim

unsigned int Nektar::SpatialDomains::RefRegion::m_coordim
protected

Dimension of the coordinate (space dimension)

Definition at line 81 of file RefRegion.h.

◆ m_numModes

std::vector<unsigned int> Nektar::SpatialDomains::RefRegion::m_numModes
protected

Number of modes.

Definition at line 89 of file RefRegion.h.

Referenced by GetNumModes().

◆ m_numPoints

std::vector<unsigned int> Nektar::SpatialDomains::RefRegion::m_numPoints
protected

Number of quadrature points.

Definition at line 91 of file RefRegion.h.

Referenced by GetNumPoints().

◆ m_radius

NekDouble Nektar::SpatialDomains::RefRegion::m_radius
protected