PhyStar  v0.0.0 thu24
blockelm::CartMesh< N_dim > Class Template Reference

#include <CartMesh.hpp>

Inheritance diagram for blockelm::CartMesh< N_dim >:
Collaboration diagram for blockelm::CartMesh< N_dim >:

Public Member Functions

 CartMesh ()
 
 ~CartMesh ()
 
auto & CreateUniformMesh (std::vector< int > nsize, std::vector< std::vector< Real >> edges, std::vector< std::vector< int >> ghs={{0}, {0}, {0}})
 Create a Uniform Mesh. More...
 
auto & CreateUniformMesh (int nsize, std::vector< Real > edges, std::vector< int > ghs={0})
 Create a Uniform Mesh. More...
 
auto & SetGBStartIndex (std::vector< int > st_ind_)
 
template<int dim>
int GBIndex (int i)
 
virtual Array1< CartMeshComp > & GetMeshc ()
 Get the Meshc. More...
 
virtual Array1< CartMeshComp > & GetMeshf ()
 Get the Meshf. More...
 
virtual CartMeshCompGetMeshc (const int &i)
 Get the i-th Meshc. More...
 
virtual CartMeshCompGetMeshf (const int &i)
 Get the i-th Meshf. More...
 
virtual std::string GetMeshName ()
 Get the Mesh Name object. More...
 

Public Attributes

const int dim = N_dim
 
Array1< CartMeshCompmeshc
 
Array1< CartMeshCompmeshf
 
Veci< N_dim > st_ind = 0
 

Private Attributes

std::string _name = "CartMesh"
 

Constructor & Destructor Documentation

◆ CartMesh()

template<int N_dim>
blockelm::CartMesh< N_dim >::CartMesh ( )
inline

◆ ~CartMesh()

template<int N_dim>
blockelm::CartMesh< N_dim >::~CartMesh ( )
inline

Member Function Documentation

◆ CreateUniformMesh() [1/2]

template<int N_dim>
auto & blockelm::CartMesh< N_dim >::CreateUniformMesh ( int  nsize,
std::vector< Real edges,
std::vector< int >  ghs = {0} 
)

Create a Uniform Mesh.

Parameters
nsizelength excluding ghost mesh
edges
ghs
Returns
auto&

◆ CreateUniformMesh() [2/2]

template<int N_dim>
auto & blockelm::CartMesh< N_dim >::CreateUniformMesh ( std::vector< int >  nsize,
std::vector< std::vector< Real >>  edges,
std::vector< std::vector< int >>  ghs = {{0}, {0}, {0}} 
)

Create a Uniform Mesh.

Parameters
nsizelength excluding ghost mesh
edges
ghs
Returns
auto&

◆ GBIndex()

template<int N_dim>
template<int dim>
int blockelm::CartMesh< N_dim >::GBIndex ( int  i)
inline

◆ GetMeshc() [1/2]

template<int N_dim>
Array1< CartMeshComp > & blockelm::CartMesh< N_dim >::GetMeshc
virtual

Get the Meshc.

Returns
Array1<CartMeshComp>&

Implements blockelm::MeshBase.

◆ GetMeshc() [2/2]

template<int N_dim>
CartMeshComp & blockelm::CartMesh< N_dim >::GetMeshc ( const int &  i)
virtual

Get the i-th Meshc.

Parameters
i
Returns
CartMeshComp&

Implements blockelm::MeshBase.

◆ GetMeshf() [1/2]

template<int N_dim>
Array1< CartMeshComp > & blockelm::CartMesh< N_dim >::GetMeshf
virtual

Get the Meshf.

Returns
Array1<CartMeshComp>&

Implements blockelm::MeshBase.

◆ GetMeshf() [2/2]

template<int N_dim>
CartMeshComp & blockelm::CartMesh< N_dim >::GetMeshf ( const int &  i)
virtual

Get the i-th Meshf.

Parameters
i
Returns
CartMeshComp&

Implements blockelm::MeshBase.

◆ GetMeshName()

template<int N_dim>
virtual std::string blockelm::CartMesh< N_dim >::GetMeshName ( )
inlinevirtual

Get the Mesh Name object.

Returns
std::string

Implements blockelm::MeshBase.

References blockelm::CartMesh< N_dim >::_name.

◆ SetGBStartIndex()

template<int N_dim>
auto & blockelm::CartMesh< N_dim >::SetGBStartIndex ( std::vector< int >  st_ind_)

Member Data Documentation

◆ _name

template<int N_dim>
std::string blockelm::CartMesh< N_dim >::_name = "CartMesh"
private

◆ dim

template<int N_dim>
const int blockelm::CartMesh< N_dim >::dim = N_dim

◆ meshc

template<int N_dim>
Array1<CartMeshComp> blockelm::CartMesh< N_dim >::meshc

◆ meshf

template<int N_dim>
Array1<CartMeshComp> blockelm::CartMesh< N_dim >::meshf

◆ st_ind

template<int N_dim>
Veci<N_dim> blockelm::CartMesh< N_dim >::st_ind = 0

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