Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
thermal_expansion_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<ThermalExpansionModel>
8 const Parameters::Material &material_properties)
9{
10 if (material_properties.thermal_expansion_model ==
12 return std::make_shared<ThermalExpansionPhaseChange>(
13 material_properties.phase_change_parameters);
14 else
15 return std::make_shared<ConstantThermalExpansion>(
16 material_properties.thermal_expansion);
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::ThermalExpansionModel thermal_expansion_model
PhaseChange phase_change_parameters
Definition parameters.h:649
static std::shared_ptr< ThermalExpansionModel > model_cast(const Parameters::Material &material_properties)
Instantiates and returns a pointer to a ThermalExpansionModel object by casting it to the proper chil...