OGS
RelPermGeneralizedPowerNonwettingPhase.h
Go to the documentation of this file.
1
10#pragma once
11
13
14namespace MaterialPropertyLib
15{
16class Medium;
17class Phase;
18class Component;
38{
39private:
43 const double a_;
44 const double lambda_;
45
46public:
48 std::string name,
49 const double residual_liquid_saturation,
50 const double residual_gas_saturation,
51 const double min_relative_permeability,
52 const double a,
53 const double lambda);
54
55 void checkScale() const override
56 {
57 if (!std::holds_alternative<Medium*>(scale_))
58 {
60 "The property "
61 "'RelativePermeabilityGeneralizedPowerNonwettingPhase' is "
62 "implemented on the 'media' scale only.");
63 }
64 }
65
66 PropertyDataType value(VariableArray const& variable_array,
68 double const t, double const dt) const override;
69 PropertyDataType dValue(VariableArray const& variable_array,
70 Variable const variable,
72 double const t, double const dt) const override;
73};
74
75} // 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
RelPermGeneralizedPowerNonwettingPhase(std::string name, const double residual_liquid_saturation, const double residual_gas_saturation, const double min_relative_permeability, const double a, const double lambda)
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