OGS
MaterialPropertyLib::LinearWaterVapourLatentHeat Class Referencefinal

Detailed Description

An empirical function for the latent heat of vaporization of liquid water, which is given by [35] p.786f.

\[ L_w(T)=2.501 \cdot 10^6 - 2369.2 (T - 273.15),\,\text{[J/kg]}. \]

A quite simular formula is present on page 81 of [4].

The linear expressions of the latent heat of vaporization of liquid water can be found in some very early references, which are mentioned in [16] (page 79).

The function is used in the energy balance equation for partially saturated zone in porous media [11].

Definition at line 36 of file LinearWaterVapourLatentHeat.h.

#include <LinearWaterVapourLatentHeat.h>

Inheritance diagram for MaterialPropertyLib::LinearWaterVapourLatentHeat:
[legend]
Collaboration diagram for MaterialPropertyLib::LinearWaterVapourLatentHeat:
[legend]

Public Member Functions

 LinearWaterVapourLatentHeat (std::string name)
 
void checkScale () const override
 
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.
 
virtual void setProperties (std::vector< std::unique_ptr< Phase > > const &phases)
 Default implementation:
 
void setScale (std::variant< Medium *, Phase *, Component * > scale)
 
template<typename T >
initialValue (ParameterLib::SpatialPosition const &pos, double const t) const
 
template<typename T >
value () const
 
template<typename 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 >
value (VariableArray const &variable_array, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const
 
template<typename 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 >
dValue (VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const
 
template<typename T >
d2Value (VariableArray const &variable_array, Variable const &variable1, Variable const &variable2, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const
 

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_
 

Constructor & Destructor Documentation

◆ LinearWaterVapourLatentHeat()

MaterialPropertyLib::LinearWaterVapourLatentHeat::LinearWaterVapourLatentHeat ( std::string name)
inlineexplicit

Member Function Documentation

◆ checkScale()

void MaterialPropertyLib::LinearWaterVapourLatentHeat::checkScale ( ) const
inlineoverridevirtual

Reimplemented from MaterialPropertyLib::Property.

Definition at line 44 of file LinearWaterVapourLatentHeat.h.

45 {
46 if (!(std::holds_alternative<Phase*>(scale_) ||
47 std::holds_alternative<Component*>(scale_)))
48 {
50 "The property 'LinearWaterVapourLatentHeat' is "
51 "implemented on the 'phase' and 'component' scale only.");
52 }
53 }
#define OGS_FATAL(...)
Definition Error.h:26
std::variant< Medium *, Phase *, Component * > scale_
Definition Property.h:297

References OGS_FATAL, and MaterialPropertyLib::Property::scale_.

◆ dValue()

PropertyDataType MaterialPropertyLib::LinearWaterVapourLatentHeat::dValue ( VariableArray const & variable_array,
Variable const variable,
ParameterLib::SpatialPosition const & pos,
double const t,
double const dt ) const
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 33 of file LinearWaterVapourLatentHeat.cpp.

37{
38 if (variable == Variable::temperature)
39 {
40 return -2369.2;
41 }
42
44 "LinearWaterVapourLatentHeat::dValue is implemented for the derivative "
45 "with respect to temperature only.");
46}

References OGS_FATAL, and MaterialPropertyLib::temperature.

◆ value()

PropertyDataType MaterialPropertyLib::LinearWaterVapourLatentHeat::value ( VariableArray const & variable_array,
ParameterLib::SpatialPosition const & pos,
double const t,
double const dt ) const
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 22 of file LinearWaterVapourLatentHeat.cpp.

26{
27 const double T = variable_array.temperature;
28
29 return 2.501e+6 -
31}
constexpr double CelsiusZeroInKelvin
Zero degrees Celsius in Kelvin.

References MaterialLib::PhysicalConstant::CelsiusZeroInKelvin, and MaterialPropertyLib::VariableArray::temperature.


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