OGS
|
A class for viscosity model that is defined by The International Association for the Properties of Water and Steam IAPWS
With the definition, the viscosity is a function of temperature and water density
\[ T (\mbox{in K}) \in (645.91, 650.77) \]
and\[ \rho (\mbox{in kg m}^{-3}) \in (245.8, 405.3)\]
, is not considered.Definition at line 35 of file WaterViscosityIAPWS.h.
#include <WaterViscosityIAPWS.h>
Public Member Functions | |
WaterViscosityIAPWS (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 > | |
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 |
Static Private Attributes | |
static constexpr double | ref_T_ = 647.096 |
reference temperature in K | |
static constexpr double | ref_rho_ |
reference density in kg/m^3 | |
static constexpr double | ref_mu_ = 1.0e-6 |
reference viscosity in Pa.s | |
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_ |
|
inlineexplicit |
Definition at line 38 of file WaterViscosityIAPWS.h.
References MaterialPropertyLib::name, and MaterialPropertyLib::Property::name_.
|
inlineoverridevirtual |
Reimplemented from MaterialPropertyLib::Property.
Definition at line 39 of file WaterViscosityIAPWS.h.
References OGS_FATAL, and MaterialPropertyLib::Property::scale_.
|
overridevirtual |
Reimplemented from MaterialPropertyLib::Property.
Definition at line 59 of file WaterViscosityIAPWS.cpp.
References MaterialPropertyLib::computedBarMu_dbarRho(), MaterialPropertyLib::computedBarMu_dbarT(), MaterialPropertyLib::density, MaterialPropertyLib::VariableArray::density, OGS_FATAL, ref_mu_, ref_rho_, ref_T_, MaterialPropertyLib::temperature, and MaterialPropertyLib::VariableArray::temperature.
|
overridevirtual |
Reimplemented from MaterialPropertyLib::Property.
Definition at line 41 of file WaterViscosityIAPWS.cpp.
References MaterialPropertyLib::computeBarMu0Factor(), MaterialPropertyLib::computeBarMu1Factor(), MaterialPropertyLib::computeSeriesFactorRhoForMu1(), MaterialPropertyLib::computeSeriesFactorTForMu1(), MaterialPropertyLib::VariableArray::density, ref_mu_, ref_rho_, ref_T_, and MaterialPropertyLib::VariableArray::temperature.
|
staticconstexprprivate |
reference viscosity in Pa.s
Definition at line 64 of file WaterViscosityIAPWS.h.
|
staticconstexprprivate |
reference density in kg/m^3
Definition at line 62 of file WaterViscosityIAPWS.h.
|
staticconstexprprivate |
reference temperature in K
Definition at line 61 of file WaterViscosityIAPWS.h.