OGS
CreateSpecificHeatCapacityWithLatentHeat.cpp
Go to the documentation of this file.
1
10
#include "
CreateSpecificHeatCapacityWithLatentHeat.h
"
11
12
#include "
BaseLib/ConfigTree.h
"
13
#include "
ParameterLib/Utils.h
"
14
#include "
SpecificHeatCapacityWithLatentHeat.h
"
15
16
namespace
MaterialPropertyLib
17
{
18
std::unique_ptr<SpecificHeatCapacityWithLatentHeat>
19
createSpecificHeatCapacityWithLatentHeat
(
BaseLib::ConfigTree
const
& config)
20
{
22
config.
checkConfigParameter
(
"type"
,
"SpecificHeatCapacityWithLatentHeat"
);
23
24
// Second access for storage.
26
auto
property_name = config.
peekConfigParameter
<std::string>(
"name"
);
27
28
DBUG
(
"Create temperature dependent specific heat capacity {:s}."
,
29
property_name);
30
31
auto
const
l =
33
config.
getConfigParameter
<
double
>(
"specific_latent_heat"
);
34
35
return
std::make_unique<
36
MaterialPropertyLib::SpecificHeatCapacityWithLatentHeat
>(
37
std::move(property_name), l);
38
}
39
}
// namespace MaterialPropertyLib
ConfigTree.h
CreateSpecificHeatCapacityWithLatentHeat.h
DBUG
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:30
Utils.h
SpecificHeatCapacityWithLatentHeat.h
BaseLib::ConfigTree
Definition
ConfigTree.h:107
BaseLib::ConfigTree::peekConfigParameter
T peekConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:126
BaseLib::ConfigTree::getConfigParameter
T getConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:41
BaseLib::ConfigTree::checkConfigParameter
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
Definition
ConfigTree.cpp:151
MaterialPropertyLib::SpecificHeatCapacityWithLatentHeat
Definition
SpecificHeatCapacityWithLatentHeat.h:38
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::createSpecificHeatCapacityWithLatentHeat
std::unique_ptr< SpecificHeatCapacityWithLatentHeat > createSpecificHeatCapacityWithLatentHeat(BaseLib::ConfigTree const &config)
Definition
CreateSpecificHeatCapacityWithLatentHeat.cpp:19
MaterialLib
MPL
Properties
CreateSpecificHeatCapacityWithLatentHeat.cpp
Generated by
1.11.0