OGS
RelPermLiakopoulos.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
8
10{
11class Medium;
12class Phase;
13class Component;
34class RelPermLiakopoulos final : public Property
35{
36private:
46 const double residual_liquid_saturation_ = 0.2;
47 const double maximal_liquid_saturation_ = 1.;
48 const double parameter_a_ = 2.207;
49 const double parameter_b_ = 1.0121;
50
51public:
52 explicit RelPermLiakopoulos(std::string name);
53
54 void checkScale() const override
55 {
56 if (!std::holds_alternative<Medium*>(scale_))
57 {
59 "The property 'RelPermLiakopoulos' is implemented on the "
60 "'media' scale only.");
61 }
62 }
63
66 PropertyDataType value(VariableArray const& variable_array,
68 double const t, double const dt) const override;
69 PropertyDataType dValue(VariableArray const& variable_array,
70 Variable const variable,
72 double const t, double const dt) const override;
73};
74
75} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:19
This class defines components (substances).
Definition Component.h:18
virtual PropertyDataType value() const
std::variant< Medium *, Phase *, Component * > scale_
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