![]() |
OGS
|
Vapour pressure as function of temperature based on Clausius-Clapeyron equation. This property must be either a phase or a component property, it computes the saturation vapour pressure of a substance
Definition at line 29 of file ClausiusClapeyron.h.
#include <ClausiusClapeyron.h>
Public Member Functions | |
ClausiusClapeyron (std::string name, const double triple_temperature, const double triple_pressure, const double critical_temperature, const double critical_pressure, const double ref_temperature, const double ref_pressure) | |
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 primary_variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override |
PropertyDataType | d2Value (VariableArray const &variable_array, Variable const primary_variable1, Variable const primary_variable2, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override |
Default implementation: 2nd derivative of any constant property is zero. More... | |
![]() | |
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 |
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 Member Functions | |
double | molarMass (std::variant< Medium *, Phase *, Component * > const scale, VariableArray const &variable_array, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
double | dMolarMass (std::variant< Medium *, Phase *, Component * > const scale, VariableArray const &variable_array, Variable const primary_variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
Private Attributes | |
double | T_triple_ |
double | p_triple_ |
double | T_critical_ |
double | p_critical_ |
double | T_ref_ |
double | p_ref_ |
Additional Inherited Members | |
![]() | |
std::string | name_ |
PropertyDataType | value_ |
The single value of a property. More... | |
PropertyDataType | dvalue_ |
std::variant< Medium *, Phase *, Component * > | scale_ |
|
explicit |
Definition at line 23 of file ClausiusClapeyron.cpp.
References MaterialPropertyLib::name, and MaterialPropertyLib::Property::name_.
|
overridevirtual |
Reimplemented from MaterialPropertyLib::Property.
Definition at line 40 of file ClausiusClapeyron.cpp.
References OGS_FATAL, and MaterialPropertyLib::Property::scale_.
|
overridevirtual |
Default implementation: 2nd derivative of any constant property is zero.
This virtual method will compute the second derivative of a property with respect to the given variables pv1 and pv2.
Reimplemented from MaterialPropertyLib::Property.
Definition at line 147 of file ClausiusClapeyron.cpp.
References OGS_FATAL.
|
private |
Definition at line 66 of file ClausiusClapeyron.cpp.
References MaterialPropertyLib::molar_mass, and MathLib::LinAlg::scale().
Referenced by dValue().
|
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 108 of file ClausiusClapeyron.cpp.
References dMolarMass(), MaterialPropertyLib::enthalpy_of_evaporation, MaterialLib::PhysicalConstant::IdealGasConstant, molarMass(), OGS_FATAL, MaterialPropertyLib::phase_pressure, MaterialPropertyLib::Property::scale_, T_critical_, T_ref_, T_triple_, MaterialPropertyLib::temperature, and MaterialPropertyLib::Property::value().
|
private |
Definition at line 51 of file ClausiusClapeyron.cpp.
References MaterialPropertyLib::molar_mass, and MathLib::LinAlg::scale().
|
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 82 of file ClausiusClapeyron.cpp.
References MaterialPropertyLib::enthalpy_of_evaporation, MaterialLib::PhysicalConstant::IdealGasConstant, molarMass(), p_critical_, p_ref_, p_triple_, MaterialPropertyLib::Property::scale_, T_critical_, T_ref_, T_triple_, and MaterialPropertyLib::temperature.
|
private |
Definition at line 62 of file ClausiusClapeyron.h.
Referenced by value().
|
private |
Definition at line 64 of file ClausiusClapeyron.h.
Referenced by value().
|
private |
Definition at line 60 of file ClausiusClapeyron.h.
Referenced by value().
|
private |
Definition at line 61 of file ClausiusClapeyron.h.
|
private |
Definition at line 63 of file ClausiusClapeyron.h.
|
private |
Definition at line 59 of file ClausiusClapeyron.h.