|
| | MeshBase ()=default |
| | Default constructor. More...
|
| |
| | MeshBase (const MPI_Comm &world, const YAML::Node &node) |
| | Constructor. More...
|
| |
| virtual | ~MeshBase () |
| | Default destructor. More...
|
| |
| virtual PetscErrorCode | destroy () |
| | Manually destroy data. More...
|
| |
| PetscErrorCode | printInfo () const |
| | Print information to standard output. More...
|
| |
| virtual PetscErrorCode | write (const std::string &filePath) const =0 |
| | Write the mesh object into a HDF5 file. More...
|
| |
| virtual PetscBool | isPointOnLocalProc (const type::RealVec1D &point, const type::Field &field)=0 |
| |
| virtual PetscErrorCode | getLocalIndex (const PetscInt &f, const MatStencil &s, PetscInt &idx) const =0 |
| | Get the local index of a point by providing MatStencil. More...
|
| |
| virtual PetscErrorCode | getLocalIndex (const PetscInt &f, const PetscInt &i, const PetscInt &j, const PetscInt &k, PetscInt &idx) const =0 |
| | Get the local index of a point by providing i, j, and k. More...
|
| |
| virtual PetscErrorCode | getNaturalIndex (const PetscInt &f, const MatStencil &s, PetscInt &idx) const =0 |
| | Get the natural index of a point by providing MatStencil. More...
|
| |
| virtual PetscErrorCode | getNaturalIndex (const PetscInt &f, const PetscInt &i, const PetscInt &j, const PetscInt &k, PetscInt &idx) const =0 |
| | Get the natural index of a point by providing i, j, and k. More...
|
| |
| virtual PetscErrorCode | getGlobalIndex (const PetscInt &f, const MatStencil &s, PetscInt &idx) const =0 |
| | Get the global index of a point in unpacked DM by providing MatStencil. More...
|
| |
| virtual PetscErrorCode | getGlobalIndex (const PetscInt &f, const PetscInt &i, const PetscInt &j, const PetscInt &k, PetscInt &idx) const =0 |
| | Get the global index of a point in unpacked DM by providing i, j, and k. More...
|
| |
| virtual PetscErrorCode | getPackedGlobalIndex (const PetscInt &f, const MatStencil &s, PetscInt &idx) const =0 |
| | Get the global index of a point in packed DM by providing MatStencil. More...
|
| |
| virtual PetscErrorCode | getPackedGlobalIndex (const PetscInt &f, const PetscInt &i, const PetscInt &j, const PetscInt &k, PetscInt &idx) const =0 |
| | Get the global index of a point in packed DM by providing i, j, and k. More...
|
| |
Base (abstract) class of mesh.
- See also
- Mesh objects, petibm::type::Mesh, petibm::mesh::createMesh
Definition at line 64 of file mesh.h.
| virtual PetscErrorCode petibm::mesh::MeshBase::getGlobalIndex |
( |
const PetscInt & |
f, |
|
|
const PetscInt & |
i, |
|
|
const PetscInt & |
j, |
|
|
const PetscInt & |
k, |
|
|
PetscInt & |
idx |
|
) |
| const |
|
pure virtual |
Get the global index of a point in unpacked DM by providing i, j, and k.
- Parameters
-
| f | [in] Target field (u=0, v=1, w=2, p=3). |
| i | [in] i-index. |
| j | [in] j-index. |
| k | [in] k-index. |
| idx | [out] Global index in unpacked DM. |
For 2D mesh, the value of k-index will be ignored.
If the provided (i, j, k) is not valid or is a ghost point, the idx will be -1.
Implemented in petibm::mesh::CartesianMesh.
| virtual PetscErrorCode petibm::mesh::MeshBase::getNaturalIndex |
( |
const PetscInt & |
f, |
|
|
const PetscInt & |
i, |
|
|
const PetscInt & |
j, |
|
|
const PetscInt & |
k, |
|
|
PetscInt & |
idx |
|
) |
| const |
|
pure virtual |
Get the natural index of a point by providing i, j, and k.
- Parameters
-
| f | [in] Target field (u=0, v=1, w=2, p=3). |
| i | [in] i-index. |
| j | [in] j-index. |
| k | [in] k-index. |
| idx | [out] Natural index. |
For 2D mesh, the value of k-index will be ignored.
If the provided (i, j, k) is not valid or is a ghost point, the idx will be -1.
Implemented in petibm::mesh::CartesianMesh.
| virtual PetscErrorCode petibm::mesh::MeshBase::getPackedGlobalIndex |
( |
const PetscInt & |
f, |
|
|
const MatStencil & |
s, |
|
|
PetscInt & |
idx |
|
) |
| const |
|
pure virtual |
Get the global index of a point in packed DM by providing MatStencil.
- Parameters
-
| f | [in] Target field (u=0, v=1, w=2, p=3). |
| s | [in] MatStencil object of target point. |
| idx | [out] Global index in packed DM. |
For pressure field (f=3), packed ID will be equal to unpacked ID.
If the provided MatStencil is not valid or is a ghost point, the idx will be -1.
Implemented in petibm::mesh::CartesianMesh.
| virtual PetscErrorCode petibm::mesh::MeshBase::getPackedGlobalIndex |
( |
const PetscInt & |
f, |
|
|
const PetscInt & |
i, |
|
|
const PetscInt & |
j, |
|
|
const PetscInt & |
k, |
|
|
PetscInt & |
idx |
|
) |
| const |
|
pure virtual |
Get the global index of a point in packed DM by providing i, j, and k.
- Parameters
-
| f | [in] Target field (u=0, v=1, w=2, p=3). |
| i | [in] i-index. |
| j | [in] j-index. |
| k | [in] k-index. |
| idx | [out] Global index in packed DM. |
For 2D mesh, the value of k-index will be ignored. For pressure field (f=3), packed ID will be equal to unpacked ID.
If the provided (i, j, k) is not valid or is a ghost point, the idx will be -1.
Implemented in petibm::mesh::CartesianMesh.