OGS
CubicLawPermeability.cpp
Go to the documentation of this file.
1
10
#include "
CubicLawPermeability.h
"
11
12
namespace
MaterialPropertyLib
13
{
14
CubicLawPermeability::CubicLawPermeability
(
15
std::string
name
,
ParameterLib::Parameter<double>
const
* b)
16
: _b(b)
17
{
18
name_
= std::move(
name
);
19
}
20
21
PropertyDataType
CubicLawPermeability::value
(
22
VariableArray
const
& variable_array,
23
ParameterLib::SpatialPosition
const
& pos,
double
const
t,
24
double
const
/*dt*/
)
const
25
{
26
double
const
aperture_m =
27
_b
? (*_b)(t, pos)[0] : variable_array.
fracture_aperture
;
28
29
return
aperture_m * aperture_m / 12;
30
}
31
32
PropertyDataType
CubicLawPermeability::dValue
(
33
VariableArray
const
& variable_array,
Variable
const
variable,
34
ParameterLib::SpatialPosition
const
&
/*pos*/
,
double
const
/*t*/
,
35
double
const
/*dt*/
)
const
36
{
37
if
(variable !=
Variable::fracture_aperture
||
_b
)
38
{
39
return
0.0;
40
}
41
42
return
variable_array.
fracture_aperture
/ 6.0;
43
}
44
}
// namespace MaterialPropertyLib
CubicLawPermeability.h
MaterialPropertyLib::Property::value
virtual PropertyDataType value() const
Definition
Property.cpp:76
MaterialPropertyLib::Property::name_
std::string name_
Definition
Property.h:290
MaterialPropertyLib::VariableArray
Definition
VariableType.h:99
MaterialPropertyLib::VariableArray::fracture_aperture
double fracture_aperture
Definition
VariableType.h:179
ParameterLib::SpatialPosition
Definition
SpatialPosition.h:27
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::Variable
Variable
Definition
VariableType.h:30
MaterialPropertyLib::Variable::fracture_aperture
@ fracture_aperture
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::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::_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.cpp
Generated by
1.11.0