Lethe Open-Source Library
version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
source
core
evaporation_model.cc
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) 2023 The Lethe Authors
2
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
3
4
#include <
core/evaporation_model.h
>
5
6
std::shared_ptr<EvaporationModel>
7
EvaporationModel::model_cast
(
8
const
Parameters::Evaporation
&evaporation_parameters)
9
{
10
if
(evaporation_parameters.
evaporative_mass_flux_model_type
==
11
Parameters::Evaporation::EvaporativeMassFluxModelType
::
12
temperature_dependent)
13
return
std::make_shared<EvaporationModelTemperature>(
14
evaporation_parameters);
15
else
16
return
std::make_shared<EvaporationModelConstant>(evaporation_parameters);
17
}
EvaporationModel::model_cast
static std::shared_ptr< EvaporationModel > model_cast(const Parameters::Evaporation &evaporation_parameters)
Instantiates and returns a pointer to an EvaporationModel object by casting it to the proper child cl...
Definition
evaporation_model.cc:7
evaporation_model.h
Parameters::Evaporation
Evaporation - Defines the subparameters for the evaporation cooling and recoil pressure at the free s...
Definition
parameters.h:2547
Parameters::Evaporation::EvaporativeMassFluxModelType
EvaporativeMassFluxModelType
Definition
parameters.h:2549
Parameters::Evaporation::evaporative_mass_flux_model_type
enum Parameters::Evaporation::EvaporativeMassFluxModelType evaporative_mass_flux_model_type
Generated by
1.15.0