OGS
CreateCapillaryPressureVanGenuchten.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 "
CreateCapillaryPressureVanGenuchten.h
"
5
6
#include "
BaseLib/ConfigTree.h
"
7
#include "
CapillaryPressureVanGenuchten.h
"
8
#include "
MaterialLib/MPL/Property.h
"
9
10
namespace
MaterialPropertyLib
11
{
12
std::unique_ptr<Property>
createCapillaryPressureVanGenuchten
(
13
BaseLib::ConfigTree
const
& config)
14
{
16
config.
checkConfigParameter
(
"type"
,
"CapillaryPressureVanGenuchten"
);
17
18
// Second access for storage.
20
auto
property_name = config.
peekConfigParameter
<std::string>(
"name"
);
21
22
DBUG
(
"Create CapillaryPressureVanGenuchten medium property {:s}."
,
23
property_name);
24
25
auto
const
residual_liquid_saturation
=
27
config.
getConfigParameter
<
double
>(
"residual_liquid_saturation"
);
28
auto
const
residual_gas_saturation
=
30
config.
getConfigParameter
<
double
>(
"residual_gas_saturation"
);
31
auto
const
exponent =
33
config.
getConfigParameter
<
double
>(
"exponent"
);
34
auto
const
p_b =
36
config.
getConfigParameter
<
double
>(
"p_b"
);
37
auto
const
maximum_capillary_pressure =
39
config.
getConfigParameter
<
double
>(
"maximum_capillary_pressure"
);
40
41
return
std::make_unique<CapillaryPressureVanGenuchten>(
42
std::move(property_name),
residual_liquid_saturation
,
43
residual_gas_saturation
, exponent, p_b, maximum_capillary_pressure);
44
}
45
}
// namespace MaterialPropertyLib
CapillaryPressureVanGenuchten.h
ConfigTree.h
CreateCapillaryPressureVanGenuchten.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::peekConfigParameter
T peekConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:116
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::createCapillaryPressureVanGenuchten
std::unique_ptr< Property > createCapillaryPressureVanGenuchten(BaseLib::ConfigTree const &config)
Definition
CreateCapillaryPressureVanGenuchten.cpp:12
MaterialPropertyLib::residual_liquid_saturation
@ residual_liquid_saturation
Definition
PropertyType.h:72
MaterialPropertyLib::residual_gas_saturation
@ residual_gas_saturation
Definition
PropertyType.h:71
MaterialLib
MPL
Properties
CapillaryPressureSaturation
CreateCapillaryPressureVanGenuchten.cpp
Generated by
1.14.0