OGS
WaterViscosityIAPWS.h
Go to the documentation of this file.
1
12#pragma once
13
15
16namespace MaterialPropertyLib
17{
18class Phase;
19
35class WaterViscosityIAPWS final : public Property
36{
37public:
38 explicit WaterViscosityIAPWS(std::string name) { name_ = std::move(name); }
39 void checkScale() const override
40 {
41 if (!std::holds_alternative<Phase*>(scale_))
42 {
44 "The property 'WaterViscosityIAPWS' is "
45 "implemented on the 'Phase' scale only.");
46 }
47 }
48
50 PropertyDataType value(VariableArray const& variable_array,
52 double const t, double const dt) const override;
55 PropertyDataType dValue(VariableArray const& variable_array,
56 Variable const variable,
58 double const t, double const dt) const override;
59
60private:
61 static constexpr double ref_T_ = 647.096;
62 static constexpr double ref_rho_ =
63 322.0;
64 static constexpr double ref_mu_ = 1.0e-6;
65
66 // Coefficients Hi and Hij are given in two static arrays in the cpp file.
67};
68} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:26
virtual PropertyDataType value() const
Definition Property.cpp:76
std::variant< Medium *, Phase *, Component * > scale_
Definition Property.h:297
A class for viscosity model that is defined by The International Association for the Properties of Wa...
static constexpr double ref_mu_
reference viscosity in Pa.s
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
static constexpr double ref_T_
reference temperature in K
static constexpr double ref_rho_
reference density in kg/m^3
std::variant< double, Eigen::Matrix< double, 2, 1 >, Eigen::Matrix< double, 3, 1 >, Eigen::Matrix< double, 2, 2 >, Eigen::Matrix< double, 3, 3 >, Eigen::Matrix< double, 4, 1 >, Eigen::Matrix< double, 6, 1 >, Eigen::MatrixXd > PropertyDataType
Definition Property.h:31