OGS
|
Model for the apparent specific heat capacity including latent heat \(\ell\)
This model is for media with a phase change. This property must be a medium property, it computes the apparent specific heat capacity based on a phase transition spread over a temperature interval:
\[ C_{\mathrm{app}} = \left[C - \varrho_\mathrm{fR} \ell \frac{\partial \phi_\mathrm{f}}{\partial T} \right] \quad\rightarrow\quad c_{\mathrm{app}} = \frac{C_{\mathrm{app}}}{\varrho} \]
with \(\ell\) as specific enthalpy of melting, \(C\) as effective volumetric heat capacity and \(\varrho\) as the effective density of the mixture, \(\varrho_\mathrm{fR}\) as the real density of the frozen phase as well as \(\phi_\mathrm{f}\) as the temperature-dependent frozen liquid volume fraction.
Definition at line 37 of file SpecificHeatCapacityWithLatentHeat.h.
#include <SpecificHeatCapacityWithLatentHeat.h>
Classes | |
struct | PhaseProperties |
Public Member Functions | |
SpecificHeatCapacityWithLatentHeat (std::string name, double const l) | |
void | checkScale () const override |
void | setProperties (std::vector< std::unique_ptr< Phase > > const &phases) override |
Default implementation: | |
double | effectiveVolumetricHeatCapacity (VariableArray const &variable_array, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
PropertyDataType | value (VariableArray const &variable_array, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override |
PropertyDataType | dValue (VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override |
Public Member Functions inherited from MaterialPropertyLib::Property | |
virtual | ~Property () |
virtual PropertyDataType | initialValue (ParameterLib::SpatialPosition const &pos, double const t) const |
virtual PropertyDataType | value () const |
virtual PropertyDataType | value (VariableArray const &variable_array, VariableArray const &variable_array_prev, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
virtual PropertyDataType | dValue (VariableArray const &variable_array, VariableArray const &variable_array_prev, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
virtual PropertyDataType | d2Value (VariableArray const &variable_array, Variable const variable1, Variable const variable2, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
Default implementation: 2nd derivative of any constant property is zero. | |
void | setScale (std::variant< Medium *, Phase *, Component * > scale) |
template<typename T > | |
T | initialValue (ParameterLib::SpatialPosition const &pos, double const t) const |
template<typename T > | |
T | value () const |
template<typename T > | |
T | value (VariableArray const &variable_array, VariableArray const &variable_array_prev, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
template<typename T > | |
T | value (VariableArray const &variable_array, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
template<typename T > | |
T | dValue (VariableArray const &variable_array, VariableArray const &variable_array_prev, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
template<typename T > | |
T | dValue (VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
template<typename T > | |
T | d2Value (VariableArray const &variable_array, Variable const &variable1, Variable const &variable2, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
Private Attributes | |
double const | l_ |
PhaseProperties | densities_ |
Pointers to the properties in each phase. | |
PhaseProperties | spec_heat_capacities_ |
Pointers to the properties in each phase. | |
Additional Inherited Members | |
Protected Attributes inherited from MaterialPropertyLib::Property | |
std::string | name_ |
PropertyDataType | value_ |
The single value of a property. | |
PropertyDataType | dvalue_ |
std::variant< Medium *, Phase *, Component * > | scale_ |
MaterialPropertyLib::SpecificHeatCapacityWithLatentHeat::SpecificHeatCapacityWithLatentHeat | ( | std::string | name, |
double const | l ) |
Definition at line 18 of file SpecificHeatCapacityWithLatentHeat.cpp.
References MaterialPropertyLib::name, and MaterialPropertyLib::Property::name_.
|
overridevirtual |
Reimplemented from MaterialPropertyLib::Property.
Definition at line 25 of file SpecificHeatCapacityWithLatentHeat.cpp.
References OGS_FATAL, and MaterialPropertyLib::Property::scale_.
|
overridevirtual |
This virtual method will compute the property derivative value based on the variables that are passed as arguments with the default implementation using empty variables array for the previous time step.
The default implementation of this method only returns the property value derivative without altering it.
Reimplemented from MaterialPropertyLib::Property.
Definition at line 134 of file SpecificHeatCapacityWithLatentHeat.cpp.
References densities_, MaterialPropertyLib::density, effectiveVolumetricHeatCapacity(), MaterialPropertyLib::SpecificHeatCapacityWithLatentHeat::PhaseProperties::frozen, l_, MaterialPropertyLib::SpecificHeatCapacityWithLatentHeat::PhaseProperties::liquid, MaterialPropertyLib::Property::scale_, spec_heat_capacities_, MaterialPropertyLib::temperature, MaterialPropertyLib::Property::value(), and MaterialPropertyLib::volume_fraction.
double MaterialPropertyLib::SpecificHeatCapacityWithLatentHeat::effectiveVolumetricHeatCapacity | ( | VariableArray const & | variable_array, |
ParameterLib::SpatialPosition const & | pos, | ||
double const | t, | ||
double const | dt ) const |
Definition at line 72 of file SpecificHeatCapacityWithLatentHeat.cpp.
References densities_, MaterialPropertyLib::SpecificHeatCapacityWithLatentHeat::PhaseProperties::frozen, MaterialPropertyLib::SpecificHeatCapacityWithLatentHeat::PhaseProperties::liquid, MaterialPropertyLib::porosity, MaterialPropertyLib::SpecificHeatCapacityWithLatentHeat::PhaseProperties::porous, MaterialPropertyLib::Property::scale_, spec_heat_capacities_, MaterialPropertyLib::Property::value(), and MaterialPropertyLib::volume_fraction.
|
overridevirtual |
Default implementation:
This virtual method will collect the properties of the phases in order to access them from the medium property level.
Reimplemented from MaterialPropertyLib::Property.
Definition at line 35 of file SpecificHeatCapacityWithLatentHeat.cpp.
References densities_, MaterialPropertyLib::density, MaterialPropertyLib::SpecificHeatCapacityWithLatentHeat::PhaseProperties::frozen, MaterialPropertyLib::SpecificHeatCapacityWithLatentHeat::PhaseProperties::liquid, OGS_FATAL, MaterialPropertyLib::SpecificHeatCapacityWithLatentHeat::PhaseProperties::porous, spec_heat_capacities_, and MaterialPropertyLib::specific_heat_capacity.
|
overridevirtual |
This virtual method will compute the property value based on the variables that are passed as arguments with the default implementation using empty variables array for the previous time step.
Reimplemented from MaterialPropertyLib::Property.
Definition at line 109 of file SpecificHeatCapacityWithLatentHeat.cpp.
References densities_, MaterialPropertyLib::density, effectiveVolumetricHeatCapacity(), MaterialPropertyLib::SpecificHeatCapacityWithLatentHeat::PhaseProperties::frozen, l_, MaterialPropertyLib::Property::scale_, MaterialPropertyLib::temperature, MaterialPropertyLib::Property::value(), and MaterialPropertyLib::volume_fraction.
|
private |
Pointers to the properties in each phase.
Definition at line 76 of file SpecificHeatCapacityWithLatentHeat.h.
Referenced by dValue(), effectiveVolumetricHeatCapacity(), setProperties(), and value().
|
private |
Definition at line 73 of file SpecificHeatCapacityWithLatentHeat.h.
|
private |
Pointers to the properties in each phase.
Definition at line 78 of file SpecificHeatCapacityWithLatentHeat.h.
Referenced by dValue(), effectiveVolumetricHeatCapacity(), and setProperties().