Base (abstract) class for the whole boundary.
More...
#include <boundary.h>
◆ BoundaryBase() [1/2]
petibm::boundary::BoundaryBase::BoundaryBase |
( |
| ) |
|
|
default |
◆ BoundaryBase() [2/2]
petibm::boundary::BoundaryBase::BoundaryBase |
( |
const type::Mesh & |
mesh, |
|
|
const YAML::Node & |
node |
|
) |
| |
Construct a boundary object based on a given mesh object.
- Parameters
-
mesh | [in] Structured Cartesian mesh object. |
node | [in] YAML configurations. |
◆ ~BoundaryBase()
petibm::boundary::BoundaryBase::~BoundaryBase |
( |
| ) |
|
|
virtual |
◆ copyValues2LocalVecs()
virtual PetscErrorCode petibm::boundary::BoundaryBase::copyValues2LocalVecs |
( |
std::vector< Vec > & |
lclVecs | ) |
const |
|
pure virtual |
Copy values of ghost points to a vector of local PETSc Vec objects.
- Parameters
-
lclVecs | [in] a std::vector<Vec> object. |
Implemented in petibm::boundary::BoundarySimple.
◆ destroy()
PetscErrorCode petibm::boundary::BoundaryBase::destroy |
( |
| ) |
|
|
virtual |
◆ init()
virtual PetscErrorCode petibm::boundary::BoundaryBase::init |
( |
const type::Mesh & |
mesh, |
|
|
const YAML::Node & |
node |
|
) |
| |
|
protectedpure virtual |
◆ setGhostICs()
virtual PetscErrorCode petibm::boundary::BoundaryBase::setGhostICs |
( |
const type::Solution & |
soln | ) |
|
|
pure virtual |
Set the initial values of ghost points.
- Parameters
-
soln | [in] Solution object used to calculate the field solutions. |
Implemented in petibm::boundary::BoundarySimple.
◆ updateEqs()
virtual PetscErrorCode petibm::boundary::BoundaryBase::updateEqs |
( |
const type::Solution & |
soln, |
|
|
const PetscReal & |
dt |
|
) |
| |
|
pure virtual |
Update the equations between ghost and boundary points.
- Parameters
-
soln | [in] Data object for the Eulerian field solutions. |
dt | [in] Time-step size. |
Some kinds of boundary conditions will require changing equation coefficients.
Implemented in petibm::boundary::BoundarySimple.
◆ updateGhostValues()
virtual PetscErrorCode petibm::boundary::BoundaryBase::updateGhostValues |
( |
const type::Solution & |
soln | ) |
|
|
pure virtual |
◆ bds
A 2D vector holding all single boundaries.
Definition at line 85 of file boundary.h.
◆ comm
MPI_Comm petibm::boundary::BoundaryBase::comm |
|
protected |
◆ dim
PetscInt petibm::boundary::BoundaryBase::dim |
◆ mesh
A shared_ptr to underlying mesh.
Definition at line 159 of file boundary.h.
◆ mpiRank
PetscMPIInt petibm::boundary::BoundaryBase::mpiRank |
|
protected |
The rank of this process.
Definition at line 156 of file boundary.h.
◆ mpiSize
PetscMPIInt petibm::boundary::BoundaryBase::mpiSize |
|
protected |
Size of MPI communicator.
Definition at line 153 of file boundary.h.
The documentation for this class was generated from the following files: