OGS
LiquidViscosityVogels.h
Go to the documentation of this file.
1
12#pragma once
13
15
16namespace MaterialPropertyLib
17{
18class Phase;
19
24template <typename VogelsConstants>
25class LiquidViscosityVogels final : public Property
26{
27public:
28 explicit LiquidViscosityVogels(std::string name, VogelsConstants constants)
29 : constants_(std::move(constants))
30 {
31 name_ = std::move(name);
32 };
33
34 void checkScale() const override
35 {
36 if (!std::holds_alternative<Phase*>(scale_))
37 {
39 "The property 'LiquidViscosityVogels' is "
40 "implemented on the 'Phase' scale only.");
41 }
42 }
43
45 PropertyDataType value(VariableArray const& variable_array,
47 double const t, double const dt) const override;
50 PropertyDataType dValue(VariableArray const& variable_array,
51 Variable const variable,
53 double const t, double const dt) const override;
54
55private:
56 const VogelsConstants constants_;
57 // Coefficients Hi and Hij are given in two static arrays in the cpp file.
58};
59
65{
67 const double A = -3.7188;
68 const double B = 578.919;
69 const double C = -137.546;
70};
71
73{
75 const double A = -24.0592;
76 const double B = 28535.2;
77 const double C = 1037.41;
78};
79
81{
83 const double A = -25.5947;
84 const double B = 25392;
85 const double C = 969.306;
86};
87
91} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:26
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
LiquidViscosityVogels(std::string name, VogelsConstants constants)
virtual PropertyDataType value() const
Definition Property.cpp:76
std::variant< Medium *, Phase *, Component * > scale_
Definition Property.h:297
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