Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
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
5
6std::shared_ptr<EvaporationModel>
8 const Parameters::Evaporation &evaporation_parameters)
9{
10 if (evaporation_parameters.evaporative_mass_flux_model_type ==
12 temperature_dependent)
13 return std::make_shared<EvaporationModelTemperature>(
14 evaporation_parameters);
15 else
16 return std::make_shared<EvaporationModelConstant>(evaporation_parameters);
17}
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...
Evaporation - Defines the subparameters for the evaporation cooling and recoil pressure at the free s...
enum Parameters::Evaporation::EvaporativeMassFluxModelType evaporative_mass_flux_model_type