OGS
RelPermNonWettingPhaseVanGenuchtenMualem.h
Go to the documentation of this file.
1
12#pragma once
13
14#include <limits>
15
18
19namespace MaterialPropertyLib
20{
21class Medium;
22
48{
49public:
61 const double S_L_r,
62 const double S_n_r,
63 const double m,
64 const double krel_min);
65
66 void checkScale() const override
67 {
68 if (!std::holds_alternative<Medium*>(scale_))
69 {
71 "The property 'RelPermNonWettingPhaseVanGenuchtenMualem' is "
72 "implemented on the 'media' scale only.");
73 }
74 }
75
77 PropertyDataType value(VariableArray const& variable_array,
79 double const t, double const dt) const override;
80
82 PropertyDataType dValue(VariableArray const& variable_array,
83 Variable const variable,
85 double const t, double const dt) const override;
86
93
94private:
95 const double S_L_r_;
96 const double S_L_max_;
97 const double m_;
98 const double krel_min_;
99 const double
101};
102} // 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
RelPermNonWettingPhaseVanGenuchtenMualem(std::string name, const double S_L_r, const double S_n_r, const double m, const double krel_min)
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
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