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

#include <surface_tension_model.h>

Inheritance diagram for SurfaceTensionLinear:
[legend]

Public Member Functions

 SurfaceTensionLinear (const Parameters::SurfaceTensionParameters &p_surface_tension_parameters)
double value (const std::map< field, double > &fields_value) override
void vector_value (const std::map< field, std::vector< double > > &field_vectors, std::vector< double > &property_vector) override
double jacobian (const std::map< field, double > &, field id) override
void vector_jacobian (const std::map< field, std::vector< double > > &, const field id, std::vector< double > &jacobian_vector) override
Public Member Functions inherited from SurfaceTensionModel
bool is_constant_surface_tension_model ()
Public Member Functions inherited from InterfacePropertyModel
 InterfacePropertyModel ()
virtual ~InterfacePropertyModel ()=default
bool depends_on (const field &id)
double numerical_jacobian (const std::map< field, double > &field_values, const field id)
void vector_numerical_jacobian (const std::map< field, std::vector< double > > &field_vectors, const field id, std::vector< double > &jacobian_vector)

Protected Attributes

const double surface_tension_coefficient
const double T_0
const double surface_tension_gradient
Protected Attributes inherited from SurfaceTensionModel
bool surface_tension_is_constant = false
Protected Attributes inherited from InterfacePropertyModel
std::map< field, bool > model_depends_on

Additional Inherited Members

Static Public Member Functions inherited from SurfaceTensionModel
static std::shared_ptr< SurfaceTensionModel > model_cast (const Parameters::MaterialInteractions &material_interaction_parameters)

Detailed Description

Linear surface tension. The surface tension is given by: sigma_0 + dsimga/dT * (T-T_0).

Definition at line 131 of file surface_tension_model.h.

Constructor & Destructor Documentation

◆ SurfaceTensionLinear()

SurfaceTensionLinear::SurfaceTensionLinear ( const Parameters::SurfaceTensionParameters & p_surface_tension_parameters)
inline

Default constructor.

Parameters
p_surface_tension_parametersThe parameters for the surface tension model, including the surface tension coefficient sigma_0 and surface tension gradient dsimga/dT at the reference temperature T_0

Definition at line 140 of file surface_tension_model.h.

References InterfacePropertyModel::model_depends_on, surface_tension_coefficient, surface_tension_gradient, T_0, and temperature.

Member Function Documentation

◆ jacobian()

double SurfaceTensionLinear::jacobian ( const std::map< field, double > & ,
field id )
inlineoverridevirtual

jacobian Calculates the jacobian (the partial derivative) of the surface tension coefficient with respect to a field

Parameters
field_valuesValue of the various fields on which the property may depend.
idIndicator of the field with respect to which the jacobian should be calculated.
Returns
value of the partial derivative of the surface tension coefficient with respect to the field.

Implements InterfacePropertyModel.

Reimplemented in SurfaceTensionPhaseChange.

Definition at line 199 of file surface_tension_model.h.

References surface_tension_gradient, and temperature.

◆ value()

double SurfaceTensionLinear::value ( const std::map< field, double > & fields_value)
inlineoverridevirtual

value Calculates the surface tension coefficient

Parameters
field_vectorsVectors of the fields on which the surface tension depends. In this case, it depends on the temperature.
Returns
value of the physical property calculated with the fields_value

Implements InterfacePropertyModel.

Reimplemented in SurfaceTensionPhaseChange.

Definition at line 158 of file surface_tension_model.h.

References surface_tension_coefficient, surface_tension_gradient, T_0, and temperature.

◆ vector_jacobian()

void SurfaceTensionLinear::vector_jacobian ( const std::map< field, std::vector< double > > & ,
const field id,
std::vector< double > & jacobian_vector )
inlineoverridevirtual

vector_jacobian Calculates the derivative of the surface tension coefficient with respect to a field.

Parameters
field_vectorsVector for the values of the fields used to evaluate the property.
idIdentifier of the field with respect to which a derivative should be calculated.
jacobianvector of the value of the derivative of the surface tension coefficient with respect to the field id.

Implements InterfacePropertyModel.

Reimplemented in SurfaceTensionPhaseChange.

Definition at line 218 of file surface_tension_model.h.

References surface_tension_gradient, and temperature.

◆ vector_value()

void SurfaceTensionLinear::vector_value ( const std::map< field, std::vector< double > > & field_vectors,
std::vector< double > & property_vector )
inlineoverridevirtual

vector_value Calculates the vector of surface tension coefficient.

Parameters
field_vectorsVectors of the fields on which the surface tension depends. In this case, it depends on the temperature.
property_vectorVectors of the surface tension coefficient values

Implements InterfacePropertyModel.

Reimplemented in SurfaceTensionPhaseChange.

Definition at line 175 of file surface_tension_model.h.

References surface_tension_coefficient, surface_tension_gradient, T_0, and temperature.

Member Data Documentation

◆ surface_tension_coefficient

const double SurfaceTensionLinear::surface_tension_coefficient
protected

Definition at line 230 of file surface_tension_model.h.

◆ surface_tension_gradient

const double SurfaceTensionLinear::surface_tension_gradient
protected

Definition at line 232 of file surface_tension_model.h.

◆ T_0

const double SurfaceTensionLinear::T_0
protected

Definition at line 231 of file surface_tension_model.h.


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