OGS
Applications/DataHolderLib/SourceTerm.h
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#pragma once
5#include "FemCondition.h"
6
7namespace DataHolderLib
8{
10class SourceTerm final : public FemCondition
11{
12public:
13 enum class ConditionType
14 {
18 };
19
20 SourceTerm(ProcessVariable const& process_var,
21 std::string const& param_name, ConditionType type);
22
23 std::string const getConditionClassStr() const override
24 {
25 return "Source Term";
26 }
27
29 ConditionType getType() const { return _type; }
30
32 static std::string convertTypeToString(ConditionType type);
33
35 static ConditionType convertStringToType(std::string const& str);
36
37private:
39};
40
41} // namespace DataHolderLib
FemCondition(ProcessVariable const &process_var, std::string const &param_name)
std::string const getConditionClassStr() const override
Returns the type of condition for displaying purposes.
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.
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.