OGS
RelPermVanGenuchten.h
Go to the documentation of this file.
1
10#pragma once
11
14
15namespace MaterialPropertyLib
16{
17class Medium;
18class Phase;
19class Component;
20
25class RelPermVanGenuchten final : public Property
26{
27private:
28 double const S_L_res_;
29 double const S_L_max_;
30 double const k_rel_min_;
31 double const m_;
32
33public:
34 RelPermVanGenuchten(std::string name,
35 double const residual_liquid_saturation,
36 double const residual_gas_saturation,
37 double const min_relative_permeability_liquid,
38 double const exponent);
39
40 void checkScale() const override
41 {
42 if (!std::holds_alternative<Medium*>(scale_))
43 {
45 "The property 'RelativePermeabilityVanGenuchten' is "
46 "implemented on the 'media' scale only.");
47 }
48 }
49
52 PropertyDataType value(VariableArray const& variable_array,
54 double const t, double const dt) const override;
55 PropertyDataType dValue(VariableArray const& variable_array,
56 Variable const variable,
58 double const t, double const dt) const override;
59};
60} // 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
RelPermVanGenuchten(std::string name, double const residual_liquid_saturation, double const residual_gas_saturation, double const min_relative_permeability_liquid, double const exponent)
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