OGS
CreateCapillaryPressureVanGenuchten.cpp
Go to the documentation of this file.
1
12
#include "
CreateCapillaryPressureVanGenuchten.h
"
13
14
#include "
BaseLib/ConfigTree.h
"
15
#include "
CapillaryPressureVanGenuchten.h
"
16
#include "
MaterialLib/MPL/Property.h
"
17
18
namespace
MaterialPropertyLib
19
{
20
std::unique_ptr<Property>
createCapillaryPressureVanGenuchten
(
21
BaseLib::ConfigTree
const
& config)
22
{
24
config.
checkConfigParameter
(
"type"
,
"CapillaryPressureVanGenuchten"
);
25
26
// Second access for storage.
28
auto
property_name = config.
peekConfigParameter
<std::string>(
"name"
);
29
30
DBUG
(
"Create CapillaryPressureVanGenuchten medium property {:s}."
,
31
property_name);
32
33
auto
const
residual_liquid_saturation
=
35
config.
getConfigParameter
<
double
>(
"residual_liquid_saturation"
);
36
auto
const
residual_gas_saturation
=
38
config.
getConfigParameter
<
double
>(
"residual_gas_saturation"
);
39
auto
const
exponent =
41
config.
getConfigParameter
<
double
>(
"exponent"
);
42
auto
const
p_b =
44
config.
getConfigParameter
<
double
>(
"p_b"
);
45
auto
const
maximum_capillary_pressure =
47
config.
getConfigParameter
<
double
>(
"maximum_capillary_pressure"
);
48
49
return
std::make_unique<CapillaryPressureVanGenuchten>(
50
std::move(property_name),
residual_liquid_saturation
,
51
residual_gas_saturation
, exponent, p_b, maximum_capillary_pressure);
52
}
53
}
// namespace MaterialPropertyLib
CapillaryPressureVanGenuchten.h
ConfigTree.h
CreateCapillaryPressureVanGenuchten.h
DBUG
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:30
Property.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
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::createCapillaryPressureVanGenuchten
std::unique_ptr< Property > createCapillaryPressureVanGenuchten(BaseLib::ConfigTree const &config)
Definition
CreateCapillaryPressureVanGenuchten.cpp:20
MaterialPropertyLib::residual_liquid_saturation
@ residual_liquid_saturation
Definition
PropertyType.h:81
MaterialPropertyLib::residual_gas_saturation
@ residual_gas_saturation
Definition
PropertyType.h:80
MaterialLib
MPL
Properties
CapillaryPressureSaturation
CreateCapillaryPressureVanGenuchten.cpp
Generated by
1.11.0