Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
specific_heat_model.cc
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2022-2023 The Lethe Authors
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
3
5
6std::shared_ptr<SpecificHeatModel>
8{
9 if (material_properties.specific_heat_model ==
11 return std::make_shared<PhaseChangeSpecificHeat>(
12 material_properties.phase_change_parameters);
13
14 else
15 return std::make_shared<ConstantSpecificHeat>(
16 material_properties.specific_heat);
17}
Material - Class that defines the physical property of a material. Generally a material will be a flu...
Definition parameters.h:594
enum Parameters::Material::SpecificHeatModel specific_heat_model
PhaseChange phase_change_parameters
Definition parameters.h:649
static std::shared_ptr< SpecificHeatModel > model_cast(const Parameters::Material &material_properties)
Instantiates and returns a pointer to a SpecificHeatModel object by casting it to the proper child cl...