OGS
CreateSaturationDependentThermalConductivity.cpp
Go to the documentation of this file.
1 
10 #include "BaseLib/ConfigTree.h"
12 
13 namespace MaterialPropertyLib
14 {
15 std::unique_ptr<SaturationDependentThermalConductivity>
17 {
19  config.checkConfigParameter("type",
20  "SaturationDependentThermalConductivity");
21 
22  // Second access for storage.
24  auto property_name = config.peekConfigParameter<std::string>("name");
25 
26  DBUG("Create saturation dependent thermal_conductivity property {:s}.",
27  property_name);
28 
29  auto const K_dry =
31  config.getConfigParameter<double>("dry");
32 
33  auto const K_wet =
35  config.getConfigParameter<double>("wet");
36 
37  return std::make_unique<
39  std::move(property_name), K_dry, K_wet);
40 }
41 } // 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< SaturationDependentThermalConductivity > createSaturationDependentThermalConductivity(BaseLib::ConfigTree const &config)