1 #ifndef ABLATELIBRARY_FINITEVOLUME_BOUNDARYCONDITION_HPP
2 #define ABLATELIBRARY_FINITEVOLUME_BOUNDARYCONDITION_HPP
5 #include "domain/fieldDescription.hpp"
6 #include "mathFunctions/mathFunction.hpp"
8 namespace ablate::finiteVolume::boundaryConditions {
11 const std::string boundaryName;
12 const std::string fieldName;
15 BoundaryCondition(
const std::string boundaryName,
const std::string fieldName) : boundaryName(boundaryName), fieldName(fieldName) {}
18 const std::string& GetBoundaryName()
const {
return boundaryName; }
19 const std::string& GetFieldName()
const {
return fieldName; }
22 virtual void SetupBoundary(DM dm, PetscDS problem, PetscInt fieldId) = 0;
Definition: boundaryCondition.hpp:9