OGS
WaterViscosityIAPWS.h
Go to the documentation of this file.
1
17#pragma once
18
19#include <string>
20
22
23namespace MaterialLib
24{
25namespace Fluid
26{
43{
44public:
46
48 std::string getName() const override
49 {
50 return "IAPWS temperature-density dependent viscosity model";
51 }
52
62 double getValue(const ArrayType& var_vals) const override;
63
74 double getdValue(const ArrayType& var_vals,
75 const PropertyVariableType var_type) const override;
76
77private:
78 const double _ref_T = 647.096;
79 const double _ref_rho = 322.0;
80 const double _ref_mu = 1.0e-6;
81
82 // Coefficients Hi and Hij are given in two static arrays in the cpp file.
83};
84
85} // namespace Fluid
86} // namespace MaterialLib
Base class of fluid properties.
Definition: FluidProperty.h:26
std::array< double, PropertyVariableNumber > ArrayType
Definition: FluidProperty.h:28
A class for viscosity model that is defined by The International Association for the Properties of Wa...
double getValue(const ArrayType &var_vals) const override
const double _ref_mu
reference viscosity in Pa.s
double getdValue(const ArrayType &var_vals, const PropertyVariableType var_type) const override
const double _ref_rho
reference density in kg/m^3
const double _ref_T
reference temperature in K
std::string getName() const override
Get model name.
PropertyVariableType
Variable that determine the property.