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

#include <thermal_expansion_model.h>

Inheritance diagram for ThermalExpansionPhaseChange:
[legend]

Public Member Functions

 ThermalExpansionPhaseChange (const Parameters::PhaseChange phase_change_params)
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_values, field id) override
void vector_jacobian (const std::map< field, std::vector< double > > &field_vectors, const field id, std::vector< double > &jacobian_vector) override
Public Member Functions inherited from PhysicalPropertyModel
 PhysicalPropertyModel ()
virtual ~PhysicalPropertyModel ()=default
bool depends_on (const field &id)
void provide_simulation_control (std::shared_ptr< SimulationControl > &p_simulation_control)
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)

Private Attributes

Parameters::PhaseChange p_phase_change_params

Additional Inherited Members

Public Types inherited from PhysicalPropertyModel
enum class  ComplexComponent : std::int8_t { real , imag }
Static Public Member Functions inherited from ThermalExpansionModel
static std::shared_ptr< ThermalExpansionModel > model_cast (const Parameters::Material &material_properties)
Protected Member Functions inherited from PhysicalPropertyModel
std::shared_ptr< SimulationControl > & get_simulation_control ()
Protected Attributes inherited from PhysicalPropertyModel
std::map< field, bool > model_depends_on

Detailed Description

Implements a phase-dependent thermal expansion coefficient.

Definition at line 104 of file thermal_expansion_model.h.

Constructor & Destructor Documentation

◆ ThermalExpansionPhaseChange()

ThermalExpansionPhaseChange::ThermalExpansionPhaseChange ( const Parameters::PhaseChange phase_change_params)
inline

Default constructor.

Definition at line 110 of file thermal_expansion_model.h.

References PhysicalPropertyModel::model_depends_on, p_phase_change_params, and temperature.

Member Function Documentation

◆ jacobian()

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

jacobian Calculates the jacobian (the partial derivative) of the thermal expansion 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 thermal expansion with respect to the field.

Implements PhysicalPropertyModel.

Definition at line 166 of file thermal_expansion_model.h.

References PhysicalPropertyModel::numerical_jacobian(), and temperature.

◆ value()

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

value Calculates the value of the thermal expansion coefficient

Parameters
fields_valueValue of the various field on which the thermal expansion coefficient depends.
Returns
value of the thermal expansion coefficient calculated with the fields_value.

Implements PhysicalPropertyModel.

Definition at line 122 of file thermal_expansion_model.h.

References p_phase_change_params, and temperature.

◆ vector_jacobian()

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

vector_jacobian Calculate the derivative of the thermal expansion 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 thermal expansion with respect to the field id

Implements PhysicalPropertyModel.

Definition at line 187 of file thermal_expansion_model.h.

References temperature, and PhysicalPropertyModel::vector_numerical_jacobian().

◆ vector_value()

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

vector_value Calculates the vector value of thermal expansion coefficients

Parameters
field_vectorsVector of properties on which the thermal expansion coefficients depend
property_vectorValues of the thermal expansion coefficients

Implements PhysicalPropertyModel.

Definition at line 139 of file thermal_expansion_model.h.

References p_phase_change_params, and temperature.

Member Data Documentation

◆ p_phase_change_params

Parameters::PhaseChange ThermalExpansionPhaseChange::p_phase_change_params
private

Definition at line 198 of file thermal_expansion_model.h.


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