OGS
WaterViscosityIAPWS.h
Go to the documentation of this file.
1
12
#pragma once
13
14
#include "
MaterialLib/MPL/Property.h
"
15
16
namespace
MaterialPropertyLib
17
{
18
class
Phase;
19
35
class
WaterViscosityIAPWS
final :
public
Property
36
{
37
public
:
38
explicit
WaterViscosityIAPWS
(std::string
name
) {
name_
= std::move(
name
); }
39
void
checkScale
()
const override
40
{
41
if
(!std::holds_alternative<Phase*>(
scale_
))
42
{
43
OGS_FATAL
(
44
"The property 'WaterViscosityIAPWS' is "
45
"implemented on the 'Phase' scale only."
);
46
}
47
}
48
50
PropertyDataType
value
(
VariableArray
const
& variable_array,
51
ParameterLib::SpatialPosition
const
& pos,
52
double
const
t,
double
const
dt)
const override
;
55
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
56
Variable
const
variable,
57
ParameterLib::SpatialPosition
const
& pos,
58
double
const
t,
double
const
dt)
const override
;
59
60
private
:
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
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
Property.h
MaterialPropertyLib::Property
Definition
Property.h:51
MaterialPropertyLib::Property::value
virtual PropertyDataType value() const
Definition
Property.cpp:76
MaterialPropertyLib::Property::name_
std::string name_
Definition
Property.h:290
MaterialPropertyLib::Property::scale_
std::variant< Medium *, Phase *, Component * > scale_
Definition
Property.h:297
MaterialPropertyLib::VariableArray
Definition
VariableType.h:99
MaterialPropertyLib::WaterViscosityIAPWS
A class for viscosity model that is defined by The International Association for the Properties of Wa...
Definition
WaterViscosityIAPWS.h:36
MaterialPropertyLib::WaterViscosityIAPWS::WaterViscosityIAPWS
WaterViscosityIAPWS(std::string name)
Definition
WaterViscosityIAPWS.h:38
MaterialPropertyLib::WaterViscosityIAPWS::ref_mu_
static constexpr double ref_mu_
reference viscosity in Pa.s
Definition
WaterViscosityIAPWS.h:64
MaterialPropertyLib::WaterViscosityIAPWS::checkScale
void checkScale() const override
Definition
WaterViscosityIAPWS.h:39
MaterialPropertyLib::WaterViscosityIAPWS::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
WaterViscosityIAPWS.cpp:59
MaterialPropertyLib::WaterViscosityIAPWS::ref_T_
static constexpr double ref_T_
reference temperature in K
Definition
WaterViscosityIAPWS.h:61
MaterialPropertyLib::WaterViscosityIAPWS::ref_rho_
static constexpr double ref_rho_
reference density in kg/m^3
Definition
WaterViscosityIAPWS.h:62
ParameterLib::SpatialPosition
Definition
SpatialPosition.h:27
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::Variable
Variable
Definition
VariableType.h:30
MaterialPropertyLib::name
@ name
Definition
PropertyType.h:66
MaterialPropertyLib::PropertyDataType
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
MaterialLib
MPL
Properties
Viscosity
WaterViscosityIAPWS.h
Generated by
1.11.0