OGS
Applications/DataHolderLib/BoundaryCondition.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{
9class BoundaryCondition final : public FemCondition
10{
11public:
19
20 BoundaryCondition(ProcessVariable const& process_var,
21 std::string const& param_name, ConditionType type);
22
23 std::string const getConditionClassStr() const override
24 {
25 return "Boundary Condition";
26 }
27
29 ConditionType getType() const { return _type; }
30
32 static ConditionType convertStringToType(std::string const& str);
33
35 static std::string convertTypeToString(ConditionType type);
36
37private:
39};
40
41} // namespace DataHolderLib
ConditionType getType() const
Returns the type of boundary condition this is.
static std::string convertTypeToString(ConditionType type)
Converts a string specifying the type into an enum.
BoundaryCondition(ProcessVariable const &process_var, std::string const &param_name, ConditionType type)
Managing data associated with a boundary condition.
static ConditionType convertStringToType(std::string const &str)
Converts the type enum into a string.
std::string const getConditionClassStr() const override
Returns the type of condition for displaying purposes.
FemCondition(ProcessVariable const &process_var, std::string const &param_name)