OGS
SourceTerm.cpp
Go to the documentation of this file.
1
12#include "SourceTerm.h"
13
14namespace DataHolderLib
15{
17 std::string const& param_name, ConditionType type)
18 : FemCondition(process_var, param_name), _type(type)
19{
20}
21
23 std::string const& str)
24{
25 if (str == "Nodal")
26 {
28 }
29 if (str == "Volume")
30 {
32 }
33
35}
36
38{
39 if (type == ConditionType::NODAL)
40 {
41 return "Nodal";
42 }
43 if (type == ConditionType::VOLUME)
44 {
45 return "Volume";
46 }
47
48 return "";
49}
50
51} // namespace DataHolderLib
Base class for boundary conditions, initial conditions and source terms.
static ConditionType convertStringToType(std::string const &str)
Converts a string specifying the type into an enum.
SourceTerm(ProcessVariable const &process_var, std::string const &param_name, ConditionType type)
static std::string convertTypeToString(ConditionType type)
Converts the type enum into a string.