OGS
CubicLawPermeability.h
Go to the documentation of this file.
1
10
#pragma once
11
12
#include <limits>
13
#include <string>
14
15
#include "
MaterialLib/MPL/Property.h
"
16
#include "
MaterialLib/MPL/VariableType.h
"
17
#include "
ParameterLib/ConstantParameter.h
"
18
#include "
ParameterLib/Parameter.h
"
19
20
namespace
MaterialPropertyLib
21
{
42
struct
CubicLawPermeability
final :
public
Property
43
{
44
CubicLawPermeability
(std::string
name
,
45
ParameterLib::Parameter<double>
const
* b);
46
47
void
checkScale
()
const override
48
{
49
if
(!std::holds_alternative<Medium*>(
scale_
))
50
{
51
OGS_FATAL
(
52
"The property 'CubicLawPermeability' is implemented on the "
53
"'media' scale only."
);
54
}
55
}
56
58
PropertyDataType
value
(
VariableArray
const
& variable_array,
59
ParameterLib::SpatialPosition
const
& pos,
60
double
const
t,
double
const
dt)
const override
;
62
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
63
Variable
const
variable,
64
ParameterLib::SpatialPosition
const
& pos,
65
double
const
t,
double
const
dt)
const override
;
66
67
private
:
69
ParameterLib::Parameter<double>
const
*
_b
=
nullptr
;
70
};
71
}
// namespace MaterialPropertyLib
ConstantParameter.h
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
Property.h
Parameter.h
VariableType.h
MaterialPropertyLib::Property
Definition
Property.h:51
MaterialPropertyLib::Property::value
virtual PropertyDataType value() const
Definition
Property.cpp:76
MaterialPropertyLib::Property::scale_
std::variant< Medium *, Phase *, Component * > scale_
Definition
Property.h:297
MaterialPropertyLib::VariableArray
Definition
VariableType.h:99
ParameterLib::SpatialPosition
Definition
SpatialPosition.h:27
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::Variable
Variable
Definition
VariableType.h:30
MaterialPropertyLib::name
@ name
Definition
PropertyType.h:66
MaterialPropertyLib::PropertyDataType
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
MaterialPropertyLib::CubicLawPermeability
Definition
CubicLawPermeability.h:43
MaterialPropertyLib::CubicLawPermeability::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
CubicLawPermeability.cpp:32
MaterialPropertyLib::CubicLawPermeability::checkScale
void checkScale() const override
Definition
CubicLawPermeability.h:47
MaterialPropertyLib::CubicLawPermeability::_b
ParameterLib::Parameter< double > const * _b
Predefined fracture aperture.
Definition
CubicLawPermeability.h:69
MaterialPropertyLib::CubicLawPermeability::CubicLawPermeability
CubicLawPermeability(std::string name, ParameterLib::Parameter< double > const *b)
Definition
CubicLawPermeability.cpp:14
ParameterLib::Parameter
Definition
WellboreGeometry.h:23
MaterialLib
MPL
Properties
CubicLawPermeability.h
Generated by
1.11.0