OGS
CreateCapillaryPressureRegularizedVanGenuchten.cpp
Go to the documentation of this file.
1
13
14#include "BaseLib/ConfigTree.h"
17
18namespace MaterialPropertyLib
19{
21 BaseLib::ConfigTree const& config)
22{
24 config.checkConfigParameter("type",
25 "CapillaryPressureRegularizedVanGenuchten");
26
27 DBUG("Create CapillaryPressureRegularizedVanGenuchten medium property");
28
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
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:30
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)