OGS
BoundaryCondition.h
Go to the documentation of this file.
1
12#pragma once
13#include "FemCondition.h"
14
15namespace DataHolderLib
16{
17class BoundaryCondition final : public FemCondition
18{
19public:
20 enum class ConditionType
21 {
22 NONE,
24 NEUMANN,
25 ROBIN
26 };
27
28 BoundaryCondition(ProcessVariable const& process_var,
29 std::string const& param_name, ConditionType type);
30
31 std::string const getConditionClassStr() const override
32 {
33 return "Boundary Condition";
34 }
35
37 ConditionType getType() const { return _type; }
38
40 static ConditionType convertStringToType(std::string const& str);
41
43 static std::string convertTypeToString(ConditionType type);
44
45private:
47};
48
49} // namespace DataHolderLib
ConditionType getType() const
Returns the type of boundary condition this is.
static std::string convertTypeToString(ConditionType type)
Converts a string specifying the type into an enum.
BoundaryCondition(ProcessVariable const &process_var, std::string const &param_name, ConditionType type)
Managing data associated with a boundary condition.
static ConditionType convertStringToType(std::string const &str)
Converts the type enum into a string.
std::string const getConditionClassStr() const override
Returns the type of condition for displaying purposes.
Base class for boundary conditions, initial conditions and source terms.