OGS
LiquidViscosityVogels.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
7
9{
10class Phase;
11
16template <typename VogelsConstants>
17class LiquidViscosityVogels final : public Property
18{
19public:
20 explicit LiquidViscosityVogels(std::string name, VogelsConstants constants)
21 : constants_(std::move(constants))
22 {
23 name_ = std::move(name);
24 };
25
26 void checkScale() const override
27 {
28 if (!std::holds_alternative<Phase*>(scale_))
29 {
31 "The property 'LiquidViscosityVogels' is "
32 "implemented on the 'Phase' scale only.");
33 }
34 }
35
37 PropertyDataType value(VariableArray const& variable_array,
39 double const t, double const dt) const override;
42 PropertyDataType dValue(VariableArray const& variable_array,
43 Variable const variable,
45 double const t, double const dt) const override;
46
47private:
48 const VogelsConstants constants_;
49 // Coefficients Hi and Hij are given in two static arrays in the cpp file.
50};
51
57{
59 const double A = -3.7188;
60 const double B = 578.919;
61 const double C = -137.546;
62};
63
65{
67 const double A = -24.0592;
68 const double B = 28535.2;
69 const double C = 1037.41;
70};
71
73{
75 const double A = -25.5947;
76 const double B = 25392;
77 const double C = 969.306;
78};
79
83} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:19
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
std::variant< Medium *, Phase *, Component * > scale_
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