OGS
CreateTemperatureDependentDiffusion.cpp
Go to the documentation of this file.
1
10
#include "
BaseLib/ConfigTree.h
"
11
#include "
ParameterLib/Utils.h
"
12
#include "
TemperatureDependentDiffusion.h
"
13
14
namespace
MaterialPropertyLib
15
{
16
std::unique_ptr<Property>
createTemperatureDependentDiffusion
(
17
BaseLib::ConfigTree
const
& config,
18
std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const
& parameters)
19
{
21
config.
checkConfigParameter
(
"type"
,
"TemperatureDependentDiffusion"
);
22
23
auto
const
& D0 =
ParameterLib::findParameter<double>
(
25
config.
getConfigParameter
<std::string>(
"reference_diffusion"
),
26
parameters, 0,
nullptr
);
27
28
auto
const
Ea =
30
config.
getConfigParameter
<
double
>(
"activation_energy"
);
31
32
auto
const
T0 =
34
config.
getConfigParameter
<
double
>(
"reference_temperature"
);
35
36
return
std::make_unique<TemperatureDependentDiffusion>(D0, Ea, T0);
37
}
38
}
// namespace MaterialPropertyLib
ConfigTree.h
Utils.h
TemperatureDependentDiffusion.h
BaseLib::ConfigTree
Definition
ConfigTree.h:107
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
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::createTemperatureDependentDiffusion
std::unique_ptr< Property > createTemperatureDependentDiffusion(BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const ¶meters)
Definition
CreateTemperatureDependentDiffusion.cpp:16
ParameterLib::findParameter
OGS_NO_DANGLING Parameter< ParameterDataType > & findParameter(std::string const ¶meter_name, std::vector< std::unique_ptr< ParameterBase > > const ¶meters, int const num_components, MeshLib::Mesh const *const mesh=nullptr)
Definition
Utils.h:102
MaterialLib
MPL
Properties
CreateTemperatureDependentDiffusion.cpp
Generated by
1.12.0