6std::shared_ptr<DensityModel>
12 return std::make_shared<DensityIsothermalIdealGas>(
18 return std::make_shared<DensityConstant>(material_properties.
density);
static std::shared_ptr< DensityModel > model_cast(const Parameters::Material &material_properties)
Instantiate and return a pointer to a DensityModel object by casting it to the proper child class.
Material - Class that defines the physical property of a material. Generally a material will be a flu...
enum Parameters::Material::DensityModel density_model
IsothermalIdealGasDensityParameters isothermal_ideal_gas_density_parameters
double density_ref
Reference state density of the gas in kg/m^3.
double R
Specific gas constant in J/kg/K.
double T
Absolute temperature of the ideal gas in K.