OGS
RelPermLiakopoulos.h
Go to the documentation of this file.
1
12#pragma once
13
16
17namespace MaterialPropertyLib
18{
19class Medium;
20class Phase;
21class Component;
42class RelPermLiakopoulos final : public Property
43{
44private:
54 const double residual_liquid_saturation_ = 0.2;
55 const double maximal_liquid_saturation_ = 1.;
56 const double parameter_a_ = 2.207;
57 const double parameter_b_ = 1.0121;
58
59public:
60 explicit RelPermLiakopoulos(std::string name);
61
62 void checkScale() const override
63 {
64 if (!std::holds_alternative<Medium*>(scale_))
65 {
67 "The property 'RelPermLiakopoulos' is implemented on the "
68 "'media' scale only.");
69 }
70 }
71
74 PropertyDataType value(VariableArray const& variable_array,
76 double const t, double const dt) const override;
77 PropertyDataType dValue(VariableArray const& variable_array,
78 Variable const variable,
80 double const t, double const dt) const override;
81};
82
83} // 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
Relative permeability function for the wetting phase of the Liakopoulos experiment.
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