OGS
CubicLawPermeability.h
Go to the documentation of this file.
1
10#pragma once
11
12#include <limits>
13#include <string>
14
19
20namespace MaterialPropertyLib
21{
42struct CubicLawPermeability final : public Property
43{
44 CubicLawPermeability(std::string name,
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' scale only.");
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
Predefined fracture aperture.
CubicLawPermeability(std::string name, ParameterLib::Parameter< double > const *b)