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