OGS
CreateWaterEnthalpyIAPWSIF97Region1.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 "
CreateWaterEnthalpyIAPWSIF97Region1.h
"
5
6
#include "
BaseLib/ConfigTree.h
"
7
#include "
MaterialLib/MPL/Property.h
"
8
#include "
WaterEnthalpyIAPWSIF97Region1.h
"
9
10
namespace
MaterialPropertyLib
11
{
12
std::unique_ptr<Property>
createWaterEnthalpyIAPWSIF97Region1
(
13
BaseLib::ConfigTree
const
& config)
14
{
16
config.
checkConfigParameter
(
"type"
,
"WaterEnthalpyIAPWSIF97Region1"
);
17
DBUG
(
"Create WaterEnthalpyIAPWSIF97Region1 phase property"
);
18
19
// Second access for storage.
21
auto
property_name = config.
peekConfigParameter
<std::string>(
"name"
);
22
24
return
std::make_unique<WaterEnthalpyIAPWSIF97Region1>(
25
std::move(property_name));
26
}
27
}
// namespace MaterialPropertyLib
ConfigTree.h
CreateWaterEnthalpyIAPWSIF97Region1.h
DBUG
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:22
Property.h
WaterEnthalpyIAPWSIF97Region1.h
BaseLib::ConfigTree
Definition
ConfigTree.h:101
BaseLib::ConfigTree::peekConfigParameter
T peekConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:116
BaseLib::ConfigTree::checkConfigParameter
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
Definition
ConfigTree.cpp:166
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:98
MaterialPropertyLib::createWaterEnthalpyIAPWSIF97Region1
std::unique_ptr< Property > createWaterEnthalpyIAPWSIF97Region1(BaseLib::ConfigTree const &config)
Definition
CreateWaterEnthalpyIAPWSIF97Region1.cpp:12
MaterialLib
MPL
Properties
Enthalpy
CreateWaterEnthalpyIAPWSIF97Region1.cpp
Generated by
1.14.0