OGS
CreateCapillaryPressureRegularizedVanGenuchten.cpp
Go to the documentation of this file.
1
12
#include "
CreateCapillaryPressureRegularizedVanGenuchten.h
"
13
14
#include "
BaseLib/ConfigTree.h
"
15
#include "
CapillaryPressureRegularizedVanGenuchten.h
"
16
#include "
MaterialLib/MPL/Property.h
"
17
18
namespace
MaterialPropertyLib
19
{
20
std::unique_ptr<Property>
createCapillaryPressureRegularizedVanGenuchten
(
21
BaseLib::ConfigTree
const
& config)
22
{
24
config.
checkConfigParameter
(
"type"
,
25
"CapillaryPressureRegularizedVanGenuchten"
);
26
27
DBUG
(
"Create CapillaryPressureRegularizedVanGenuchten medium property"
);
28
29
auto
const
residual_liquid_saturation
=
31
config.
getConfigParameter
<
double
>(
"residual_liquid_saturation"
);
32
auto
const
maximum_liquid_saturation =
33
1.0 -
35
config.
getConfigParameter
<
double
>(
"residual_gas_saturation"
);
36
auto
const
exponent =
38
config.
getConfigParameter
<
double
>(
"exponent"
);
39
auto
const
p_b =
41
config.
getConfigParameter
<
double
>(
"p_b"
);
42
43
return
std::make_unique<CapillaryPressureRegularizedVanGenuchten>(
44
residual_liquid_saturation
, maximum_liquid_saturation, exponent, p_b);
45
}
46
}
// namespace MaterialPropertyLib
CapillaryPressureRegularizedVanGenuchten.h
ConfigTree.h
CreateCapillaryPressureRegularizedVanGenuchten.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::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::createCapillaryPressureRegularizedVanGenuchten
std::unique_ptr< Property > createCapillaryPressureRegularizedVanGenuchten(BaseLib::ConfigTree const &config)
Definition
CreateCapillaryPressureRegularizedVanGenuchten.cpp:20
MaterialPropertyLib::residual_liquid_saturation
@ residual_liquid_saturation
Definition
PropertyType.h:81
MaterialLib
MPL
Properties
CapillaryPressureSaturation
CreateCapillaryPressureRegularizedVanGenuchten.cpp
Generated by
1.12.0