OGS
RelPermUdell.h
Go to the documentation of this file.
1
13#pragma once
14
16
17namespace MaterialPropertyLib
18{
19class Medium;
20class Phase;
21class Component;
42class RelPermUdell final : public Property
43{
44private:
48
49public:
50 RelPermUdell(std::string name, const double residual_liquid_saturation,
51 const double residual_gas_saturation,
52 const double min_relative_permeability);
53
54 void checkScale() const override
55 {
56 if (!std::holds_alternative<Medium*>(scale_))
57 {
59 "The property 'RelativePermeabilityUdell' is implemented on "
60 "the 'media' scale only.");
61 }
62 }
63
64 PropertyDataType value(VariableArray const& variable_array,
66 double const t, double const dt) const override;
67 PropertyDataType dValue(VariableArray const& variable_array,
68 Variable const variable,
70 double const t, double const dt) const override;
71};
72
73} // 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
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
RelPermUdell(std::string name, const double residual_liquid_saturation, const double residual_gas_saturation, const double min_relative_permeability)
void checkScale() 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