39 const bool is_mu_density_dependent =
40 (viscosity->getName().find(
"density dependent") != std::string::npos);
42 bool is_cp_density_dependent =
false;
43 std::unique_ptr<MaterialLib::Fluid::FluidProperty> specific_heat_capacity =
45 auto heat_capacity__opt_conf =
48 if (heat_capacity__opt_conf)
50 const auto& heat_capacity_conf = *heat_capacity__opt_conf;
51 specific_heat_capacity =
53 is_cp_density_dependent =
54 (specific_heat_capacity->getName().find(
"density dependent") !=
58 bool is_KT_density_dependent =
false;
59 std::unique_ptr<MaterialLib::Fluid::FluidProperty> thermal_conductivity =
61 auto const& thermal_conductivity_opt_conf =
64 if (thermal_conductivity_opt_conf)
66 auto const& thermal_conductivity_conf = *thermal_conductivity_opt_conf;
67 thermal_conductivity =
69 thermal_conductivity_conf);
70 is_KT_density_dependent =
71 (specific_heat_capacity->getName().find(
"density dependent") !=
75 if (is_mu_density_dependent || is_cp_density_dependent ||
76 is_KT_density_dependent)
78 return std::make_unique<
80 std::move(liquid_density), std::move(viscosity),
81 std::move(specific_heat_capacity), std::move(thermal_conductivity),
82 is_mu_density_dependent, is_cp_density_dependent,
83 is_KT_density_dependent);
86 return std::make_unique<
88 std::move(liquid_density), std::move(viscosity),
89 std::move(specific_heat_capacity), std::move(thermal_conductivity));