![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <parameters.h>
Public Member Functions | |
| void | parse_parameters (ParameterHandler &prm, const Dimensionality &dimensions) |
Static Public Member Functions | |
| static void | declare_parameters (ParameterHandler &prm) |
Public Attributes | |
| double | T_solidus = 0. |
| double | T_liquidus = 1. |
| double | latent_enthalpy = 1. |
| double | cp_l = 1. |
| double | cp_s = 1. |
| double | thermal_conductivity_l = 1. |
| double | thermal_conductivity_s = 1. |
| double | thermal_expansion_l = 1. |
| double | thermal_expansion_s = 0. |
| double | kinematic_viscosity_l = 1. |
| double | kinematic_viscosity_s = 1. |
| double | penalty_l = 0. |
| double | penalty_s = 0. |
Phase change model for melting/freezing liquids The model assumes that the phase change occurs between a solidus and liquidus temperature. This defines a solidification interval which is used to smooth the non-linearity of the melting problem or to fit the real thermodynamics of the melting process.
Definition at line 263 of file parameters.h.
|
static |
Declare the phase change parameters.
| [in,out] | prm | The parameter handler object. |
Definition at line 1075 of file parameters.cc.
References cp_l, cp_s, kinematic_viscosity_l, kinematic_viscosity_s, latent_enthalpy, penalty_l, penalty_s, T_liquidus, T_solidus, thermal_conductivity_l, thermal_conductivity_s, thermal_expansion_l, and thermal_expansion_s.
| void Parameters::PhaseChange::parse_parameters | ( | ParameterHandler & | prm, |
| const Dimensionality & | dimensions ) |
Parse the phase change parameters.
| [in] | prm | The parameter handler object. |
| [in] | dimensions | Dimensionality used to interpret the parameter units. |
Definition at line 1021 of file parameters.cc.
References cp_l, cp_s, Parameters::Dimensionality::enthalpy_scaling, kinematic_viscosity_l, kinematic_viscosity_s, latent_enthalpy, penalty_l, penalty_s, Parameters::Dimensionality::specific_heat_scaling, T_liquidus, T_solidus, Parameters::Dimensionality::temperature, thermal_conductivity_l, thermal_conductivity_s, Parameters::Dimensionality::thermal_conductivity_scaling, thermal_expansion_l, thermal_expansion_s, Parameters::Dimensionality::thermal_expansion_scaling, and Parameters::Dimensionality::viscosity_scaling.
| double Parameters::PhaseChange::cp_l = 1. |
Specific heat of liquid - Units in J/(kg*K).
Definition at line 275 of file parameters.h.
| double Parameters::PhaseChange::cp_s = 1. |
Specific heat of solid - Units in J/(kg*K).
Definition at line 278 of file parameters.h.
| double Parameters::PhaseChange::kinematic_viscosity_l = 1. |
kinematic viscosity of liquid - Units in m^2/(s)
Definition at line 293 of file parameters.h.
| double Parameters::PhaseChange::kinematic_viscosity_s = 1. |
kinematic viscosity of solid - Units in m^2/(s)
Definition at line 296 of file parameters.h.
| double Parameters::PhaseChange::latent_enthalpy = 1. |
Latent enthalpy for the phase change - Units in J/kg.
Definition at line 272 of file parameters.h.
| double Parameters::PhaseChange::penalty_l = 0. |
Darcy penalty of liquid - Units in 1/(s).
Definition at line 299 of file parameters.h.
| double Parameters::PhaseChange::penalty_s = 0. |
Darcy penalty of solid - Units in 1/(s).
Definition at line 302 of file parameters.h.
| double Parameters::PhaseChange::T_liquidus = 1. |
Liquidus temperature - Units in K.
Definition at line 269 of file parameters.h.
| double Parameters::PhaseChange::T_solidus = 0. |
Solidus temperature - Units in K.
Definition at line 266 of file parameters.h.
| double Parameters::PhaseChange::thermal_conductivity_l = 1. |
Thermal conductivity of liquid - Units in W/(m*K).
Definition at line 281 of file parameters.h.
| double Parameters::PhaseChange::thermal_conductivity_s = 1. |
Thermal conductivity of solid - Units in W/(m*K).
Definition at line 284 of file parameters.h.
| double Parameters::PhaseChange::thermal_expansion_l = 1. |
Thermal expansion coefficient of liquid - Units in 1/K.
Definition at line 287 of file parameters.h.
| double Parameters::PhaseChange::thermal_expansion_s = 0. |
Thermal expansion coefficient of solid - Units in 1/K.
Definition at line 290 of file parameters.h.