25template<
typename ValueType>
28 VolumeBoundaryFactory<ValueType>,
29 Parameters<const UnstructuredMesh&, const Dictionary&, localIdx>>,
34 static std::string
name() {
return "VolumeBoundaryFactory"; }
48 virtual std::unique_ptr<VolumeBoundaryFactory>
clone()
const = 0;
63template<
typename ValueType>
71 mesh.boundaryMesh().offset()[static_cast<
size_t>(
patchID) + 1],
75 dict.get<std::string>(
"type"), mesh, dict,
patchID
81 boundaryCorrectionStrategy_(other.boundaryCorrectionStrategy_->clone())
86 boundaryCorrectionStrategy_->correctBoundaryCondition(domainVector);
91 return boundaryCorrectionStrategy_->attributes();
97 std::unique_ptr<NeoN::finiteVolume::cellCentred::VolumeBoundaryFactory<ValueType>>
98 boundaryCorrectionStrategy_;
A class representing a dictionary that stores key-value pairs.
Represents the domain fields for a computational domain.
A factory class for runtime selection of derived classes.
Represents an unstructured mesh in NeoN.
A base class for implementing derived boundary conditions.
virtual std::unique_ptr< VolumeBoundaryFactory > clone() const =0
static std::string name()
virtual ~VolumeBoundaryFactory()=default
virtual void correctBoundaryCondition(Field< ValueType > &domainVector)=0
BoundaryAttributes attributes() const
VolumeBoundaryFactory(const UnstructuredMesh &mesh, const Dictionary &dict, localIdx patchID, BoundaryAttributes attributes)
BoundaryAttributes attributes_
The attributes of the patch.
Represents a volume boundary field for a cell-centered finite volume method.
VolumeBoundary(const VolumeBoundary &other)
VolumeBoundary(const UnstructuredMesh &mesh, const Dictionary &dict, localIdx patchID)
virtual void correctBoundaryCondition(Field< ValueType > &domainVector)
const BoundaryAttributes attributes() const
bool assignable
whether values can be assigned to the boundary patch