Loading [MathJax]/jax/input/TeX/config.js
OGS
CreateRelPermNonWettingPhaseVanGenuchtenMualem.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(
25  "type", "RelativePermeabilityNonWettingPhaseVanGenuchtenMualem");
26  DBUG("Create RelPermNonWettingPhaseVanGenuchtenMualem medium property");
27 
28  // Second access for storage.
30  auto property_name = config.peekConfigParameter<std::string>("name");
31 
32  auto const residual_liquid_saturation =
34  config.getConfigParameter<double>("residual_liquid_saturation");
35  auto const residual_gas_saturation =
37  config.getConfigParameter<double>("residual_gas_saturation");
38 
39  auto const exponent =
41  config.getConfigParameter<double>("exponent");
42 
43  auto const min_relative_permeability =
45  config.getConfigParameter<double>("min_relative_permeability");
46 
47  return std::make_unique<RelPermNonWettingPhaseVanGenuchtenMualem>(
49  exponent, min_relative_permeability);
50 }
51 } // namespace MaterialPropertyLib
void DBUG(char const *fmt, Args const &... args)
Definition: Logging.h:27
T peekConfigParameter(std::string const &param) const
void checkConfigParameter(std::string const &param, T const &value) const
T getConfigParameter(std::string const &param) const
std::unique_ptr< Property > createRelPermNonWettingPhaseVanGenuchtenMualem(BaseLib::ConfigTree const &config)