22 const PetscReal &value,
26 PetscFunctionBeginUser;
31 SETERRQ(PETSC_COMM_WORLD, PETSC_ERR_ARG_WRONG,
32 "NOBC does not make sense here!");
35 singleBd = std::make_shared<SingleBoundaryPeriodic>(mesh, loc,
39 singleBd = std::make_shared<SingleBoundaryDirichlet>(mesh, loc,
43 singleBd = std::make_shared<SingleBoundaryNeumann>(mesh, loc, field,
47 singleBd = std::make_shared<SingleBoundaryConvective>(mesh, loc,
52 PetscFunctionReturn(0);
std::shared_ptr< boundary::SingleBoundaryBase > SingleBoundary
Definition of type petibm::type::SingleBoundary.
PetscErrorCode createSingleBoundary(const type::Mesh &mesh, const type::BCLoc &loc, const type::Field &field, const PetscReal &value, const type::BCType &bcType, type::SingleBoundary &singleBd)
Factory function for creating a SingleBoundary object.
std::shared_ptr< mesh::MeshBase > Mesh
Type definition of Mesh.
BCType
Type of boundary conditions.
BCLoc
Location of a boundary.
A toolbox for building flow solvers.
Definition of the class SingleBoundaryBase.
Definition of the class SingleBoundaryConvective.
Definition of the class SingleBoundaryDirichlet.
Definition of the class SingleBoundaryNeumann.
Definition of the class SingleBoundaryPeriodic.