![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <evaporation_model.h>
Public Member Functions | |
| EvaporationModel ()=default | |
| virtual | ~EvaporationModel ()=default |
| bool | depends_on (const field &id) |
| virtual double | mass_flux (const std::map< field, double > &field_values)=0 |
| virtual void | mass_flux (const std::map< field, std::vector< double > > &field_vectors, std::vector< double > &mass_flux_vector)=0 |
| virtual double | heat_flux (const std::map< field, double > &field_values)=0 |
| virtual void | heat_flux (const std::map< field, std::vector< double > > &field_vectors, std::vector< double > &heat_flux_vector)=0 |
| virtual double | heat_flux_jacobian (const std::map< field, double > &field_values, const field id)=0 |
| virtual void | heat_flux_jacobian (const std::map< field, std::vector< double > > &field_vectors, const field id, std::vector< double > &jacobian_vector)=0 |
| virtual double | momentum_flux (const std::map< field, double > &field_values)=0 |
| virtual void | momentum_flux (const std::map< field, std::vector< double > > &field_vectors, std::vector< double > &momentum_flux_vector)=0 |
| virtual double | momentum_flux_jacobian (const std::map< field, double > &field_values, const field id)=0 |
| virtual void | momentum_flux_jacobian (const std::map< field, std::vector< double > > &field_vectors, const field id, std::vector< double > &jacobian_vector)=0 |
Static Public Member Functions | |
| static std::shared_ptr< EvaporationModel > | model_cast (const Parameters::Evaporation &evaporation_parameters) |
Protected Attributes | |
| std::map< field, bool > | model_depends_on |
EvaporationModel. Abstract class that allows to calculate the evaporation mass, heat and momentum fluxes. This model computes all the terms required for the assembly of the governing equations, i.e., Navier-Stokes momentum and energy, when evaporation is considered. The former terms are the momentum flux (i.e., pressure) acting on the evaporative front in the normal direction, the heat flux, acting at the same location as a cooling term, and the fluxes' jacobian, if required.
The EvaporativeModel is the parent class, and its children are specific types of evaporative models, e.g., constant, temperature dependent. The selected model is instantiated in the assemblers' constructor (NavierStokesCLSAssemblerEvaporation and/or HeatTransferAssemblerCLSEvaporation), using the model_cast method according to the evaporation model parameters.
The assemblers call the required method of the EvaporationModel for either the assembly of the rhs or matrix terms. Hence, no matter the selected evaporation model, the same assembler is called, avoiding repetitions of the assembler classes.
Definition at line 36 of file evaporation_model.h.
|
default |
|
virtualdefault |
Default virual destructor. Does not do anything.
|
inline |
Returns true if the EvaporationModel depends on a field, false if not.
| id | Identifier of the field for which the function is called. |
Definition at line 62 of file evaporation_model.h.
References model_depends_on.
|
pure virtual |
heat_flux Calculates the value of the evaporation heat flux.
| field_values | Map storing the values of the various fields on which the heat flux may depend. |
Implemented in EvaporationModelConstant, and EvaporationModelTemperature.
|
pure virtual |
heat_flux Calculates the values of the evaporation heat flux for multiple points.
| field_vectors | Map storing the vectors of the values for each field on which the heat flux may depend. Each vector contains the field values at the points of interest. |
| heat_flux_vector | Vector of heat flux values. |
Implemented in EvaporationModelConstant, and EvaporationModelTemperature.
|
pure virtual |
heat_flux_jacobian Calculates the jacobian (the partial derivative) of the evaporation heat flux with respect to a field.
| field_values | Map storing the values of the various fields on which the heat flux evaluated at a point may depend. |
| id | Identifier of the field with respect to which the jacobian should be calculated. |
Implemented in EvaporationModelConstant, and EvaporationModelTemperature.
|
pure virtual |
heat_flux_jacobian Calculates the derivative of the evaporation heat flux with respect to a field for multiple points.
| field_vectors | Map storing the vectors of the values for each field on which the heat flux may depend. Each vector contains the field values at the points of interest. |
| id | Identifier of the field with respect to which a derivative should be calculated. |
| jacobian_vector | Vector of the values of the derivative of the heat flux with respect to the field. |
Implemented in EvaporationModelConstant, and EvaporationModelTemperature.
|
pure virtual |
mass_flux Calculates the value of the evaporation mass flux.
| field_values | Map storing the values of the various fields on which the mass flux may depend. |
Implemented in EvaporationModelConstant, and EvaporationModelTemperature.
|
pure virtual |
mass_flux Calculates the values of the evaporation mass flux for multiple points.
| field_vectors | Map storing the vectors of the values for each field on which the mass flux may depend. Each vector contains the field values at the points of interest. |
| mass_flux_vector | Vector of mass flux values. |
Implemented in EvaporationModelConstant, and EvaporationModelTemperature.
|
static |
Instantiates and returns a pointer to an EvaporationModel object by casting it to the proper child class.
| evaporation_parameters | Evaporation model parameters. |
Definition at line 7 of file evaporation_model.cc.
References Parameters::Evaporation::evaporative_mass_flux_model_type.
|
pure virtual |
momentum_flux Calculates the value of the evaporation momentum flux.
| field_values | Map storing the values of the various fields on which the momentum flux may depend. |
Implemented in EvaporationModelConstant, and EvaporationModelTemperature.
|
pure virtual |
momentum_flux Calculates the values of the evaporation momentum flux for multiple points.
| field_vectors | Map storing the vectors of the values for each field on which the evaporation momentum flux may depend. Each vector contains the field values at the points of interest. |
| momentum_flux_vector | Vector of momentum flux values. |
Implemented in EvaporationModelConstant, and EvaporationModelTemperature.
|
pure virtual |
momentum_flux_jacobian Calculates the jacobian (the partial derivative) of the evaporation momentum flux with respect to a field.
| field_values | Map storing the values of the various fields on which the momentum flux may depend. |
| id | Identifier of the field with respect to which the jacobian should be calculated. |
Implemented in EvaporationModelConstant, and EvaporationModelTemperature.
|
pure virtual |
momentum_flux_jacobian Calculates the derivative of the evaporation momentum flux with respect to a field for multiple points.
| field_vectors | Map storing the vectors of the values for each field on which the momentum flux may depend. Each vector contains the field values at the points of interest. |
| id | Identifier of the field with respect to which a derivative should be calculated. |
| jacobian_vector | Vector of the value of the derivative of the momentum flux with respect to the field. |
Implemented in EvaporationModelConstant, and EvaporationModelTemperature.
|
protected |
Definition at line 193 of file evaporation_model.h.