OGS
CubicLawPermeability.h
Go to the documentation of this file.
1
10#pragma once
11
15
16namespace MaterialPropertyLib
17{
38struct CubicLawPermeability final : public Property
39{
40 explicit CubicLawPermeability(std::string name,
42 : _b(b)
43 {
44 name_ = std::move(name);
45 }
46
47 void checkScale() const override
48 {
49 if (!std::holds_alternative<Medium*>(scale_))
50 {
52 "The property 'CubicLawPermeability' is implemented on the "
53 "'media' scaleonly.");
54 }
55 }
56
58 PropertyDataType value(VariableArray const& variable_array,
60 double const t, double const dt) const override;
62 PropertyDataType dValue(VariableArray const& variable_array,
63 Variable const variable,
65 double const t, double const dt) const override;
66
67private:
70};
71} // 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
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
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
ParameterLib::Parameter< double > const & _b
fracture aperture
CubicLawPermeability(std::string name, ParameterLib::Parameter< double > const &b)