OGS
CreateCapillaryPressureRegularizedVanGenuchten.cpp
Go to the documentation of this file.
1 
13 
14 #include "BaseLib/ConfigTree.h"
17 
18 namespace MaterialPropertyLib
19 {
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
void DBUG(char const *fmt, Args const &... args)
Definition: Logging.h:27
void checkConfigParameter(std::string const &param, T const &value) const
T getConfigParameter(std::string const &param) const
std::unique_ptr< Property > createCapillaryPressureRegularizedVanGenuchten(BaseLib::ConfigTree const &config)