Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
EvaporationModelConstant Class Reference

#include <evaporation_model.h>

Inheritance diagram for EvaporationModelConstant:
[legend]

Public Member Functions

 EvaporationModelConstant (const Parameters::Evaporation &p_evaporation)
double mass_flux (const std::map< field, double > &) override
void mass_flux (const std::map< field, std::vector< double > > &, std::vector< double > &mass_flux_vector) override
double heat_flux (const std::map< field, double > &) override
void heat_flux (const std::map< field, std::vector< double > > &, std::vector< double > &heat_flux_vector) override
double heat_flux_jacobian (const std::map< field, double > &, const field) override
void heat_flux_jacobian (const std::map< field, std::vector< double > > &, const field, std::vector< double > &jacobian_vector) override
double momentum_flux (const std::map< field, double > &) override
void momentum_flux (const std::map< field, std::vector< double > > &, std::vector< double > &momentum_flux_vector) override
double momentum_flux_jacobian (const std::map< field, double > &, const field) override
void momentum_flux_jacobian (const std::map< field, std::vector< double > > &, const field, std::vector< double > &jacobian_vector) override
Public Member Functions inherited from EvaporationModel
 EvaporationModel ()=default
virtual ~EvaporationModel ()=default
bool depends_on (const field &id)

Private Attributes

const double evaporation_mass_flux
const double latent_heat_evaporation
const double ambient_gas_density_inv
const double liquid_density_inv

Additional Inherited Members

Static Public Member Functions inherited from EvaporationModel
static std::shared_ptr< EvaporationModel > model_cast (const Parameters::Evaporation &evaporation_parameters)
Protected Attributes inherited from EvaporationModel
std::map< field, bool > model_depends_on

Detailed Description

EvaporationModelConstant. Class that allows to calculate the evaporation mass, heat, and momentum fluxes when a constant mass flux is considered.

Parameters
p_evaporationEvaporation model parameters.

Definition at line 203 of file evaporation_model.h.

Constructor & Destructor Documentation

◆ EvaporationModelConstant()

EvaporationModelConstant::EvaporationModelConstant ( const Parameters::Evaporation & p_evaporation)
inline

Member Function Documentation

◆ heat_flux() [1/2]

double EvaporationModelConstant::heat_flux ( const std::map< field, double > & )
inlineoverridevirtual

heat_flux Calculates the value of the evaporation heat flux.

Parameters
field_valuesMap storing the values of the various fields on which the heat flux may depend.
Returns
Value of the heat flux calculated with the field_values.

Implements EvaporationModel.

Definition at line 250 of file evaporation_model.h.

References evaporation_mass_flux, and latent_heat_evaporation.

◆ heat_flux() [2/2]

void EvaporationModelConstant::heat_flux ( const std::map< field, std::vector< double > > & ,
std::vector< double > & heat_flux_vector )
inlineoverridevirtual

heat_flux Calculates the values of the evaporation heat flux for multiple points.

Parameters
field_vectorsMap 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_vectorVectors of the heat flux values.

Implements EvaporationModel.

Definition at line 264 of file evaporation_model.h.

References evaporation_mass_flux, and latent_heat_evaporation.

◆ heat_flux_jacobian() [1/2]

double EvaporationModelConstant::heat_flux_jacobian ( const std::map< field, double > & ,
const field  )
inlineoverridevirtual

heat_flux_jacobian Calculates the jacobian (the partial derivative) of the evaporation heat flux with respect to a field.

Parameters
field_valuesMap storing the values of the various fields on which the heat flux evaluated at a point may depend.
idIdentifier of the field with respect to which the jacobian should be calculated.
Returns
Value of the partial derivative of the heat flux with respect to the field.

Implements EvaporationModel.

Definition at line 282 of file evaporation_model.h.

◆ heat_flux_jacobian() [2/2]

void EvaporationModelConstant::heat_flux_jacobian ( const std::map< field, std::vector< double > > & ,
const field ,
std::vector< double > & jacobian_vector )
inlineoverridevirtual

heat_flux_jacobian Calculates the derivative of the evaporation heat flux with respect to a field.

Parameters
field_vectorsVector for the values of the fields on which the heat flux may depend. Each vector contains the field values at the points of interest.
idIdentifier of the field with respect to which a derivative should be calculated.
jacobian_vectorVector of the values of the derivative of the heat flux with respect to the field.

Implements EvaporationModel.

Definition at line 300 of file evaporation_model.h.

◆ mass_flux() [1/2]

double EvaporationModelConstant::mass_flux ( const std::map< field, double > & )
inlineoverridevirtual

mass_flux Calculates the value of the evaporation mass flux.

Parameters
field_valuesMap storing the values of the various fields on which the mass flux may depend.
Returns
Value of the flux calculated with the field_values.

Implements EvaporationModel.

Definition at line 223 of file evaporation_model.h.

References evaporation_mass_flux.

◆ mass_flux() [2/2]

void EvaporationModelConstant::mass_flux ( const std::map< field, std::vector< double > > & ,
std::vector< double > & mass_flux_vector )
inlineoverridevirtual

mass_flux Calculates the values of the evaporation mass flux for multiple points.

Parameters
field_vectorsMap 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_vectorVector of mass flux values.

Implements EvaporationModel.

Definition at line 237 of file evaporation_model.h.

References evaporation_mass_flux.

◆ momentum_flux() [1/2]

double EvaporationModelConstant::momentum_flux ( const std::map< field, double > & )
inlineoverridevirtual

momentum_flux Calculates the value of the evaporation momentum flux.

Parameters
field_valuesMap storing the values of the various fields on which the momentum flux may depend.
Returns
Value of the momentum flux calculated with the field_values

Implements EvaporationModel.

Definition at line 315 of file evaporation_model.h.

References ambient_gas_density_inv, evaporation_mass_flux, and liquid_density_inv.

◆ momentum_flux() [2/2]

void EvaporationModelConstant::momentum_flux ( const std::map< field, std::vector< double > > & ,
std::vector< double > & momentum_flux_vector )
inlineoverridevirtual

momentum_flux Calculates the values of the evaporation momentum flux for multiple points.

Parameters
field_vectorsMap 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.
momentum_flux_vectorVector of momentum flux values.

Implements EvaporationModel.

Definition at line 330 of file evaporation_model.h.

References ambient_gas_density_inv, evaporation_mass_flux, and liquid_density_inv.

◆ momentum_flux_jacobian() [1/2]

double EvaporationModelConstant::momentum_flux_jacobian ( const std::map< field, double > & ,
const field  )
inlineoverridevirtual

momentum_flux_jacobian Calculates the jacobian (the partial derivative) of the evaporation momentum flux with respect to a field.

Parameters
field_valuesMap storing the values of the various fields on which the momentum flux may depend.
idIdentifier of the field with respect to which the jacobian should be calculated
Returns
Value of the partial derivative of the momentum flux with respect to the field.

Implements EvaporationModel.

Definition at line 351 of file evaporation_model.h.

◆ momentum_flux_jacobian() [2/2]

void EvaporationModelConstant::momentum_flux_jacobian ( const std::map< field, std::vector< double > > & ,
const field ,
std::vector< double > & jacobian_vector )
inlineoverridevirtual

momentum_flux_jacobian Calculates the derivative of the evaporation momentum flux with respect to a field

Parameters
field_vectorsMap 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.
idIdentifier of the field with respect to which a derivative should be calculated.
jacobian_vectorVector of the values of the derivative of the momentum flux with respect to the field.

Implements EvaporationModel.

Definition at line 369 of file evaporation_model.h.

Member Data Documentation

◆ ambient_gas_density_inv

const double EvaporationModelConstant::ambient_gas_density_inv
private

Definition at line 380 of file evaporation_model.h.

◆ evaporation_mass_flux

const double EvaporationModelConstant::evaporation_mass_flux
private

Definition at line 378 of file evaporation_model.h.

◆ latent_heat_evaporation

const double EvaporationModelConstant::latent_heat_evaporation
private

Definition at line 379 of file evaporation_model.h.

◆ liquid_density_inv

const double EvaporationModelConstant::liquid_density_inv
private

Definition at line 381 of file evaporation_model.h.


The documentation for this class was generated from the following file: