OGS
CreateIdealGasLawBinaryMixture.cpp
Go to the documentation of this file.
1
13
#include "
BaseLib/ConfigTree.h
"
14
#include "
IdealGasLawBinaryMixture.h
"
15
16
namespace
MaterialPropertyLib
17
{
18
std::unique_ptr<IdealGasLawBinaryMixture>
createIdealGasLawBinaryMixture
(
19
BaseLib::ConfigTree
const
& config)
20
{
22
config.
checkConfigParameter
(
"type"
,
"IdealGasLawBinaryMixture"
);
23
24
// Second access for storage.
26
auto
property_name = config.
peekConfigParameter
<std::string>(
"name"
);
27
28
DBUG
(
"Create IdealGasLawBinaryMixture medium property {:s}."
,
29
property_name);
30
32
return
std::make_unique<IdealGasLawBinaryMixture>(std::move(property_name));
33
}
34
}
// namespace MaterialPropertyLib
ConfigTree.h
IdealGasLawBinaryMixture.h
DBUG
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:30
BaseLib::ConfigTree
Definition
ConfigTree.h:107
BaseLib::ConfigTree::peekConfigParameter
T peekConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:126
BaseLib::ConfigTree::checkConfigParameter
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
Definition
ConfigTree.cpp:151
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::createIdealGasLawBinaryMixture
std::unique_ptr< IdealGasLawBinaryMixture > createIdealGasLawBinaryMixture(BaseLib::ConfigTree const &config)
Definition
CreateIdealGasLawBinaryMixture.cpp:18
MaterialLib
MPL
Properties
CreateIdealGasLawBinaryMixture.cpp
Generated by
1.11.0