PhyStar  v0.0.0 thu24
blockelm::CartBoundary< T, N_dim > Class Template Reference

#include <CartBoundary.hpp>

Public Member Functions

 CartBoundary ()
 
 CartBoundary (BoundaryData< T > &bdata)
 
 ~CartBoundary ()
 
void SetBoundaryType (BoundaryData< T > &bdata)
 
CartBoundary< T, N_dim > & CreateBoundaryFromFieldExcludeData (int dim_flg, CartField< T, N_dim > &field, BoundaryData< T > &bdata)
 create a CartBoundary from an existing cartmesh, including the ghost mesh More...
 
CartBoundary< T, N_dim > & CopyExcludeData (const CartBoundary< T, N_dim > &bound)
 
CartBoundary< T, N_dim > & Copy (const CartBoundary< T, N_dim > &bound)
 
CartBoundary< T, N_dim > & SetVals ()
 
CartBoundary< T, N_dim > & SetVals (T val)
 
CartBoundary< T, N_dim > & SetVals (Array< T, N_dim - 1 > &val)
 
CartBoundary< T, N_dim > & SetVals (BFunc2D pfun, std::vector< T > &params)
 
CartBoundary< T, N_dim > & SetVals (BFunc1D pfun, std::vector< T > &params)
 
const CartMesh< N_dim > & GetMesh () const
 
const Array1rGetMesh (int dir)
 
const int & GetGhostLow (int dir)
 
const int & GetGhostUp (int dir)
 
RealPtrData ()
 
std::vector< int > GetShape ()
 Get the shape of the field, including the ghost part. More...
 
std::vector< int > GetFlag ()
 Get the Flag of the mesh, center or face. More...
 
constexpr int GetNdim () const
 
atGBIndex (int i)
 
atGBIndex (int i, int j)
 
Val (int i)
 
Val (int i, int j)
 
Array< T, N_dim > Val (Range range1)
 
Array< T, N_dim > Val (Range range1, Range range2)
 

Public Attributes

bool status = false
 
BoundaryType boundtype = BoundaryType::None
 
BFunType bfuntype
 
val
 
std::vector< T > params
 
Array< T, N_dim - 1 > data
 
Veci< N_dim - 1 > shape
 
Veci< N_dim - 1 > flag
 
CartMesh< N_dim > * ptr_mesh = nullptr
 
Veci< N_dim > & st_ind = ptr_mesh->st_ind
 

Private Member Functions

void setDimFlag (int flag)
 

Private Attributes

int _dim_flag
 
Veci< N_dim - 1 > _other_dim_flags
 

Constructor & Destructor Documentation

◆ CartBoundary() [1/2]

template<typename T , int N_dim>
blockelm::CartBoundary< T, N_dim >::CartBoundary ( )
inline

◆ CartBoundary() [2/2]

template<typename T , int N_dim>
blockelm::CartBoundary< T, N_dim >::CartBoundary ( BoundaryData< T > &  bdata)
inline

References blockelm::CartBoundary< T, N_dim >::SetBoundaryType().

Here is the call graph for this function:

◆ ~CartBoundary()

template<typename T , int N_dim>
blockelm::CartBoundary< T, N_dim >::~CartBoundary ( )
inline

Member Function Documentation

◆ atGBIndex() [1/2]

◆ atGBIndex() [2/2]

◆ Copy()

◆ CopyExcludeData()

◆ CreateBoundaryFromFieldExcludeData()

template<typename T , int N_dim>
CartBoundary<T, N_dim>& blockelm::CartBoundary< T, N_dim >::CreateBoundaryFromFieldExcludeData ( int  dim_flg,
CartField< T, N_dim > &  field,
BoundaryData< T > &  bdata 
)
inline

◆ GetFlag()

template<typename T , int N_dim>
std::vector<int> blockelm::CartBoundary< T, N_dim >::GetFlag ( )
inline

Get the Flag of the mesh, center or face.

Returns

References blockelm::CartBoundary< T, N_dim >::flag.

◆ GetGhostLow()

template<typename T , int N_dim>
const int& blockelm::CartBoundary< T, N_dim >::GetGhostLow ( int  dir)
inline

◆ GetGhostUp()

template<typename T , int N_dim>
const int& blockelm::CartBoundary< T, N_dim >::GetGhostUp ( int  dir)
inline

◆ GetMesh() [1/2]

template<typename T , int N_dim>
const CartMesh<N_dim>& blockelm::CartBoundary< T, N_dim >::GetMesh ( ) const
inline

References blockelm::CartBoundary< T, N_dim >::ptr_mesh.

Here is the caller graph for this function:

◆ GetMesh() [2/2]

◆ GetNdim()

template<typename T , int N_dim>
constexpr int blockelm::CartBoundary< T, N_dim >::GetNdim ( ) const
inlineconstexpr

◆ GetShape()

template<typename T , int N_dim>
std::vector<int> blockelm::CartBoundary< T, N_dim >::GetShape ( )
inline

Get the shape of the field, including the ghost part.

Returns

References blockelm::CartBoundary< T, N_dim >::shape.

◆ PtrData()

template<typename T , int N_dim>
Real* blockelm::CartBoundary< T, N_dim >::PtrData ( )
inline

◆ SetBoundaryType()

◆ setDimFlag()

template<typename T , int N_dim>
void blockelm::CartBoundary< T, N_dim >::setDimFlag ( int  flag)
inlineprivate

◆ SetVals() [1/5]

◆ SetVals() [2/5]

template<typename T , int N_dim>
CartBoundary<T, N_dim>& blockelm::CartBoundary< T, N_dim >::SetVals ( Array< T, N_dim - 1 > &  val)
inline

◆ SetVals() [3/5]

template<typename T , int N_dim>
CartBoundary<T, N_dim>& blockelm::CartBoundary< T, N_dim >::SetVals ( BFunc1D  pfun,
std::vector< T > &  params 
)
inline

◆ SetVals() [4/5]

template<typename T , int N_dim>
CartBoundary<T, N_dim>& blockelm::CartBoundary< T, N_dim >::SetVals ( BFunc2D  pfun,
std::vector< T > &  params 
)
inline

◆ SetVals() [5/5]

template<typename T , int N_dim>
CartBoundary<T, N_dim>& blockelm::CartBoundary< T, N_dim >::SetVals ( val)
inline

◆ Val() [1/4]

template<typename T , int N_dim>
T blockelm::CartBoundary< T, N_dim >::Val ( int  i)
inline

◆ Val() [2/4]

template<typename T , int N_dim>
T blockelm::CartBoundary< T, N_dim >::Val ( int  i,
int  j 
)
inline

◆ Val() [3/4]

template<typename T , int N_dim>
Array<T, N_dim> blockelm::CartBoundary< T, N_dim >::Val ( Range  range1)
inline

◆ Val() [4/4]

template<typename T , int N_dim>
Array<T, N_dim> blockelm::CartBoundary< T, N_dim >::Val ( Range  range1,
Range  range2 
)
inline

Member Data Documentation

◆ _dim_flag

template<typename T , int N_dim>
int blockelm::CartBoundary< T, N_dim >::_dim_flag
private

◆ _other_dim_flags

template<typename T , int N_dim>
Veci<N_dim - 1> blockelm::CartBoundary< T, N_dim >::_other_dim_flags
private

◆ bfuntype

template<typename T , int N_dim>
BFunType blockelm::CartBoundary< T, N_dim >::bfuntype

◆ boundtype

template<typename T , int N_dim>
BoundaryType blockelm::CartBoundary< T, N_dim >::boundtype = BoundaryType::None

◆ data

template<typename T , int N_dim>
Array<T, N_dim - 1> blockelm::CartBoundary< T, N_dim >::data

◆ flag

template<typename T , int N_dim>
Veci<N_dim - 1> blockelm::CartBoundary< T, N_dim >::flag

◆ params

template<typename T , int N_dim>
std::vector<T> blockelm::CartBoundary< T, N_dim >::params

◆ ptr_mesh

template<typename T , int N_dim>
CartMesh<N_dim>* blockelm::CartBoundary< T, N_dim >::ptr_mesh = nullptr

◆ shape

template<typename T , int N_dim>
Veci<N_dim - 1> blockelm::CartBoundary< T, N_dim >::shape

◆ st_ind

template<typename T , int N_dim>
Veci<N_dim>& blockelm::CartBoundary< T, N_dim >::st_ind = ptr_mesh->st_ind

◆ status

template<typename T , int N_dim>
bool blockelm::CartBoundary< T, N_dim >::status = false

◆ val

template<typename T , int N_dim>
T blockelm::CartBoundary< T, N_dim >::val

The documentation for this class was generated from the following file: