17 const PetscReal &inValue)
46 normal = ((int(
loc) % 2) == 0) ? -1.0 : 1.0;
52 PetscFunctionBeginUser;
54 PetscFunctionReturn(0);
60 PetscFunctionBeginUser;
62 PetscFunctionReturn(0);
type::BCType type
The type of boundary conditions.
type::Field field
The field of which the ghost points represent.
PetscReal normal
The direction of normal vector.
type::BCLoc loc
The location of this boundary.
type::Mesh mesh
The corresponding Mesh object.
PetscReal value
A constant value representing BC value.
PetscMPIInt mpiSize
The size of the MPI communicator.
MPI_Comm comm
MPI communicator.
PetscMPIInt mpiRank
The rank of this process.
SingleBoundaryPeriodic(const type::Mesh &mesh, const type::BCLoc &loc, const type::Field &field, const PetscReal &value)
Constructor.
virtual PetscErrorCode setGhostICsKernel(const PetscReal &targetValue, type::GhostPointInfo &p)
The underlying kernel for setting initial values and equations.
virtual PetscErrorCode updateEqsKernel(const PetscReal &targetValue, const PetscReal &dt, type::GhostPointInfo &p)
Underlying kernel for updating the coefficients of the equation.
std::shared_ptr< mesh::MeshBase > Mesh
Type definition of Mesh.
BCLoc
Location of a boundary.
A toolbox for building flow solvers.
Definition of the class SingleBoundaryPeriodic.
A data structure for a single ghost point.