17 const PetscReal &inValue)
25 PetscFunctionBeginUser;
27 PetscInt dir = int(
loc) / 2;
33 if (dir ==
int(
field))
44 p.value =
p.a0 * targetValue +
p.a1;
46 PetscFunctionReturn(0);
52 PetscFunctionBeginUser;
54 PetscFunctionReturn(0);
Base (abstract) class for ghost points & BC on a single boundary.
type::Field field
The field of which the ghost points represent.
type::BCLoc loc
The location of this boundary.
PetscReal value
A constant value representing BC value.
virtual PetscErrorCode setGhostICsKernel(const PetscReal &targetValue, type::GhostPointInfo &p)
The underlying kernel for setting initial values and equations.
SingleBoundaryDirichlet(const type::Mesh &mesh, const type::BCLoc &loc, const type::Field &field, const PetscReal &value)
Constructor.
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 SingleBoundaryDirichlet.
A data structure for a single ghost point.