Lethe Open-Source Library
version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
source
core
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
4
#include <
core/thermal_expansion_model.h
>
5
6
std::shared_ptr<ThermalExpansionModel>
7
ThermalExpansionModel::model_cast
(
8
const
Parameters::Material
&material_properties)
9
{
10
if
(material_properties.
thermal_expansion_model
==
11
Parameters::Material::ThermalExpansionModel::phase_change
)
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
}
Parameters::Material
Material - Class that defines the physical property of a material. Generally a material will be a flu...
Definition
parameters.h:594
Parameters::Material::ThermalExpansionModel::phase_change
@ phase_change
Definition
parameters.h:684
Parameters::Material::thermal_expansion_model
enum Parameters::Material::ThermalExpansionModel thermal_expansion_model
Parameters::Material::thermal_expansion
double thermal_expansion
Definition
parameters.h:634
Parameters::Material::phase_change_parameters
PhaseChange phase_change_parameters
Definition
parameters.h:649
ThermalExpansionModel::model_cast
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...
Definition
thermal_expansion_model.cc:7
thermal_expansion_model.h
Generated by
1.15.0