OGS
SourceTerm.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#include "SourceTerm.h"
5
6namespace DataHolderLib
7{
9 std::string const& param_name, ConditionType type)
10 : FemCondition(process_var, param_name), _type(type)
11{
12}
13
15 std::string const& str)
16{
17 if (str == "Nodal")
18 {
20 }
21 if (str == "Volume")
22 {
24 }
25
27}
28
30{
31 if (type == ConditionType::NODAL)
32 {
33 return "Nodal";
34 }
35 if (type == ConditionType::VOLUME)
36 {
37 return "Volume";
38 }
39
40 return "";
41}
42
43} // namespace DataHolderLib
FemCondition(ProcessVariable const &process_var, std::string const &param_name)
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)
Definition SourceTerm.cpp:8
static std::string convertTypeToString(ConditionType type)
Converts the type enum into a string.