OGS
FemCondition.h
Go to the documentation of this file.
1
12#pragma once
13
14#include <string>
15
16namespace DataHolderLib
17{
19{
20 std::string name;
21 std::size_t order;
22 std::size_t components;
23};
24
25enum class BaseObjType
26{
27 MESH = 0,
28 GEOMETRY = 1
29};
30
31enum class ParameterType
32{
33 NONE = 0,
36};
37
40{
41public:
42 FemCondition(ProcessVariable const& process_var,
43 std::string const& param_name);
44 virtual ~FemCondition() = default;
45
47 std::string const getProcessVarName() const { return _process_var.name; }
48
50 ProcessVariable const& getProcessVar() const { return _process_var; }
51
53 std::string const getParamName() const { return _param_name; }
54
57
59 std::string getBaseObjName() const { return _base_obj_name; }
60
62 std::string const getObjName() const { return _obj_name; }
63
65 void setMesh(std::string const& mesh_name);
66
68 virtual void setGeoObject(std::string const& geo_name,
69 std::string const& obj_name);
70
72 virtual std::string const getConditionClassStr() const = 0;
73
74private:
77 std::string _param_name;
78 std::string _base_obj_name;
79 std::string _obj_name;
80};
81
82} // namespace DataHolderLib
Base class for boundary conditions, initial conditions and source terms.
virtual void setGeoObject(std::string const &geo_name, std::string const &obj_name)
Sets a geometric object as corresponding object for the condition.
virtual std::string const getConditionClassStr() const =0
Returns the type of condition for displaying purposes.
std::string getBaseObjName() const
Returns the name of the base object (i.e. geometry or mesh)
virtual ~FemCondition()=default
void setMesh(std::string const &mesh_name)
Sets a mesh as corresponding object for the condition.
BaseObjType getBaseObjType() const
Specifies if the condition is set a geometry or on a mesh.
std::string const getObjName() const
Returns the name of the geometric object.
FemCondition(ProcessVariable const &process_var, std::string const &param_name)
std::string const getProcessVarName() const
Returns the name of the associated process variable.
ProcessVariable _process_var
ProcessVariable const & getProcessVar() const
Returns the numerical order of the process variable.
std::string const getParamName() const
Returns the name of the parameter associated with the condition.