OGS
CreateFluidThermalConductivityModel.cpp
Go to the documentation of this file.
1 
14 
15 #include "BaseLib/ConfigTree.h"
16 #include "BaseLib/Error.h"
19 
20 namespace MaterialLib
21 {
22 namespace Fluid
23 {
24 std::unique_ptr<FluidProperty> createFluidThermalConductivityModel(
25  BaseLib::ConfigTree const& config)
26 {
28  auto const type = config.getConfigParameter<std::string>("type");
29 
30  if (type == "Constant")
31  {
32  return std::make_unique<ConstantFluidProperty>(
34  config.getConfigParameter<double>("value"));
35  }
36  // TODO: add more models
37 
38  OGS_FATAL(
39  "The viscosity type {:s} is unavailable.\n"
40  "The available type is \n\tConstant\n",
41  type.data());
42 }
43 
44 } // namespace Fluid
45 } // namespace MaterialLib
A function for creating a thermal conductivity model for fluid.
#define OGS_FATAL(...)
Definition: Error.h:26
T getConfigParameter(std::string const &param) const
std::unique_ptr< FluidProperty > createFluidThermalConductivityModel(BaseLib::ConfigTree const &config)