#include <CartBlock.hpp>
Public Member Functions | |
CartBlock () | |
CartBlock (CartBlock< N_dim > &x) | |
~CartBlock () | |
void | MeshReference (const CartMesh< N_dim > &x) |
void | FieldReference (const CartField< Real, N_dim > &x, const int &flag) |
void | ScalarReference (const Array1< CartField< Real, N_dim >> &x) |
void | Reference (const CartBlock &block) |
void | CreateVelocityFields (std::vector< std::vector< int >> flgs) |
allocate the space for the velocity field(including the ghost mesh) and the velocity all to zero More... | |
void | CreatePressureField (std::vector< int > flgs) |
allocate the space for the pressure field(including the ghost mesh) and the pressure all to zero More... | |
void | CreateGradField (std::vector< int > flgs) |
allocate the space for the gradient field(including the ghost mesh) and the gradient all to zero More... | |
void | CreateScalarFields (std::vector< int > flgs, const int n=1) |
allocate the space for the scalar field(including the ghost mesh) and the scalar all to zero More... | |
Public Attributes | |
CartMesh< N_dim > | mesh |
CartField< Real, N_dim > | u |
CartField< Real, N_dim > | v |
CartField< Real, N_dim > | w |
CartField< Real, N_dim > | p |
Mat< CartField< Real, N_dim >, N_dim > | grad |
Array1< CartField< Real, N_dim > > | scalar |
![]() | |
int | id |
Additional Inherited Members | |
![]() | |
static std::unordered_map< int, BlockBase * > | block_map |
|
inline |
|
inline |
|
inline |
|
inline |
allocate the space for the gradient field(including the ghost mesh) and the gradient all to zero
flgs | the mesh type, center or face |
References blockelm::CartBlock< N_dim >::grad, and blockelm::CartBlock< N_dim >::mesh.
|
inline |
allocate the space for the pressure field(including the ghost mesh) and the pressure all to zero
flgs | the mesh type, center or face |
References blockelm::CartField< T, N_dim >::Create(), blockelm::CartBlock< N_dim >::mesh, and blockelm::CartBlock< N_dim >::p.
|
inline |
allocate the space for the scalar field(including the ghost mesh) and the scalar all to zero
flgs | the mesh type, center or face |
n | the number of the scalar type |
References blockelm::CartBlock< N_dim >::mesh, and blockelm::CartBlock< N_dim >::scalar.
|
inline |
allocate the space for the velocity field(including the ghost mesh) and the velocity all to zero
flgs | the mesh type, center or face |
References blockelm::CartField< T, N_dim >::Create(), blockelm::CartBlock< N_dim >::mesh, blockelm::CartBlock< N_dim >::u, blockelm::CartBlock< N_dim >::v, and blockelm::CartBlock< N_dim >::w.
|
inline |
|
inline |
|
inline |
References blockelm::CartField< T, N_dim >::data, blockelm::CartBlock< N_dim >::grad, blockelm::CartBlock< N_dim >::mesh, blockelm::CartBlock< N_dim >::p, blockelm::CartBlock< N_dim >::scalar, blockelm::CartBlock< N_dim >::u, blockelm::CartBlock< N_dim >::v, and blockelm::CartBlock< N_dim >::w.
|
inline |
References blockelm::CartBlock< N_dim >::scalar.
Mat<CartField<Real, N_dim>, N_dim> blockelm::CartBlock< N_dim >::grad |
CartMesh<N_dim> blockelm::CartBlock< N_dim >::mesh |
CartField<Real, N_dim> blockelm::CartBlock< N_dim >::p |
Array1<CartField<Real, N_dim> > blockelm::CartBlock< N_dim >::scalar |
CartField<Real, N_dim> blockelm::CartBlock< N_dim >::u |
CartField<Real, N_dim> blockelm::CartBlock< N_dim >::v |
CartField<Real, N_dim> blockelm::CartBlock< N_dim >::w |