OGS
CreateCapillaryPressureRegularizedVanGenuchten.cpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#include "
CreateCapillaryPressureRegularizedVanGenuchten.h
"
5
6
#include "
BaseLib/ConfigTree.h
"
7
#include "
CapillaryPressureRegularizedVanGenuchten.h
"
8
#include "
MaterialLib/MPL/Property.h
"
9
10
namespace
MaterialPropertyLib
11
{
12
std::unique_ptr<Property>
createCapillaryPressureRegularizedVanGenuchten
(
13
BaseLib::ConfigTree
const
& config)
14
{
16
config.
checkConfigParameter
(
"type"
,
17
"CapillaryPressureRegularizedVanGenuchten"
);
18
19
DBUG
(
"Create CapillaryPressureRegularizedVanGenuchten medium property"
);
20
21
auto
const
residual_liquid_saturation
=
23
config.
getConfigParameter
<
double
>(
"residual_liquid_saturation"
);
24
auto
const
maximum_liquid_saturation =
25
1.0 -
27
config.
getConfigParameter
<
double
>(
"residual_gas_saturation"
);
28
auto
const
exponent =
30
config.
getConfigParameter
<
double
>(
"exponent"
);
31
auto
const
p_b =
33
config.
getConfigParameter
<
double
>(
"p_b"
);
34
35
return
std::make_unique<CapillaryPressureRegularizedVanGenuchten>(
36
residual_liquid_saturation
, maximum_liquid_saturation, exponent, p_b);
37
}
38
}
// namespace MaterialPropertyLib
CapillaryPressureRegularizedVanGenuchten.h
ConfigTree.h
CreateCapillaryPressureRegularizedVanGenuchten.h
DBUG
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:22
Property.h
BaseLib::ConfigTree
Definition
ConfigTree.h:101
BaseLib::ConfigTree::getConfigParameter
T getConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:35
BaseLib::ConfigTree::checkConfigParameter
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
Definition
ConfigTree.cpp:166
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:98
MaterialPropertyLib::createCapillaryPressureRegularizedVanGenuchten
std::unique_ptr< Property > createCapillaryPressureRegularizedVanGenuchten(BaseLib::ConfigTree const &config)
Definition
CreateCapillaryPressureRegularizedVanGenuchten.cpp:12
MaterialPropertyLib::residual_liquid_saturation
@ residual_liquid_saturation
Definition
PropertyType.h:72
MaterialLib
MPL
Properties
CapillaryPressureSaturation
CreateCapillaryPressureRegularizedVanGenuchten.cpp
Generated by
1.14.0