46 return std::make_unique<LinearPressureDependentViscosity>(mu0, p0, gamma);
69 return std::make_unique<TemperatureDependentViscosity>(mu0, Tc, Tv);
78 if (type ==
"Constant")
82 return std::make_unique<ConstantFluidProperty>(
86 if (type ==
"LinearPressure")
90 if (type ==
"TemperatureDependent")
99 INFO(
"Using Vogels model, which gives viscosity in SI unit, Pa s");
100 auto const fluid_type =
103 if (fluid_type ==
"Water")
109 return std::make_unique<
113 if (fluid_type ==
"CO2")
118 return std::make_unique<
122 if (fluid_type ==
"CH4")
127 return std::make_unique<
133 "The fluid type {:s} for Vogels model is unavailable.\n"
134 "The available fluid types are Water, CO2 and CH4\n",
139 "The viscosity type {:s} is unavailable.\n"
140 "The available types are \n\tConstant, \n\tLinearPressure "
141 "\n\tTemperatureDependent, \n\tVogels\n",
A function for creating viscosity model.
Declaration of class for the pressure dependent viscosity model.
void INFO(fmt::format_string< Args... > fmt, Args &&... args)
A linear temperature dependent viscosity model.
Declaration of class for the pressure dependent viscosity model.
T peekConfigParameter(std::string const ¶m) const
T getConfigParameter(std::string const ¶m) const
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
static std::unique_ptr< FluidProperty > createLinearPressureDependentViscosity(BaseLib::ConfigTree const &config)
std::unique_ptr< FluidProperty > createViscosityModel(BaseLib::ConfigTree const &config)
static std::unique_ptr< FluidProperty > createTemperatureDependentViscosity(BaseLib::ConfigTree const &config)