OGS
CreateVolumeFractionAverage.cpp
Go to the documentation of this file.
1
10
#include "
BaseLib/ConfigTree.h
"
11
#include "
VolumeFractionAverage.h
"
12
13
namespace
MaterialPropertyLib
14
{
15
std::unique_ptr<VolumeFractionAverage>
createVolumeFractionAverage
(
16
BaseLib::ConfigTree
const
& config)
17
{
19
config.
checkConfigParameter
(
"type"
,
"VolumeFractionAverage"
);
20
21
// Second access for storage.
23
auto
property_name = config.
peekConfigParameter
<std::string>(
"name"
);
24
26
DBUG
(
"Create volume fraction average {:s}."
, property_name);
27
28
// no input parameters required here (taken from phase properties)
29
30
return
std::make_unique<MaterialPropertyLib::VolumeFractionAverage>(
31
std::move(property_name));
32
}
33
}
// namespace MaterialPropertyLib
ConfigTree.h
DBUG
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:30
VolumeFractionAverage.h
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::createVolumeFractionAverage
std::unique_ptr< VolumeFractionAverage > createVolumeFractionAverage(BaseLib::ConfigTree const &config)
Definition
CreateVolumeFractionAverage.cpp:15
MaterialLib
MPL
Properties
CreateVolumeFractionAverage.cpp
Generated by
1.11.0