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