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
5
9
10namespace MaterialPropertyLib
11{
13 BaseLib::ConfigTree const& config)
14{
16 config.checkConfigParameter("type",
17 "CapillaryPressureRegularizedVanGenuchten");
18
19 DBUG("Create CapillaryPressureRegularizedVanGenuchten medium property");
20
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
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:22
T getConfigParameter(std::string const &param) const
void checkConfigParameter(std::string const &param, std::string_view const value) const
std::unique_ptr< Property > createCapillaryPressureRegularizedVanGenuchten(BaseLib::ConfigTree const &config)