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