OGS
CreateSaturationBrooksCorey.cpp
Go to the documentation of this file.
1
11#include "BaseLib/ConfigTree.h"
13
14namespace MaterialPropertyLib
15{
16std::unique_ptr<SaturationBrooksCorey> createSaturationBrooksCorey(
17 BaseLib::ConfigTree const& config)
18{
20 config.checkConfigParameter("type", "SaturationBrooksCorey");
21
22 // Second access for storage.
24 auto property_name = config.peekConfigParameter<std::string>("name");
25
26 DBUG("Create SaturationBrooksCorey medium property {:s}.", property_name);
27
30 config.getConfigParameter<double>("residual_liquid_saturation");
31 auto const residual_gas_saturation =
33 config.getConfigParameter<double>("residual_gas_saturation");
34 auto const exponent =
36 config.getConfigParameter<double>("lambda");
37 auto const entry_pressure =
39 config.getConfigParameter<double>("entry_pressure");
40
41 return std::make_unique<SaturationBrooksCorey>(
42 std::move(property_name), residual_liquid_saturation,
44}
45} // namespace MaterialPropertyLib
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:30
T peekConfigParameter(std::string const &param) const
T getConfigParameter(std::string const &param) const
void checkConfigParameter(std::string const &param, std::string_view const value) const
std::unique_ptr< SaturationBrooksCorey > createSaturationBrooksCorey(BaseLib::ConfigTree const &config)