OGS
CubicLawPermeability.h
Go to the documentation of this file.
1
10
#pragma once
11
12
#include "
MaterialLib/MPL/Property.h
"
13
#include "
MaterialLib/MPL/VariableType.h
"
14
#include "
ParameterLib/Parameter.h
"
15
16
namespace
MaterialPropertyLib
17
{
38
struct
CubicLawPermeability
final :
public
Property
39
{
40
explicit
CubicLawPermeability
(std::string
name
,
41
ParameterLib::Parameter<double>
const
& b)
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
{
51
OGS_FATAL
(
52
"The property 'CubicLawPermeability' is implemented on the "
53
"'media' scaleonly."
);
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
;
70
};
71
}
// namespace MaterialPropertyLib
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::name_
std::string name_
Definition
Property.h:290
MaterialPropertyLib::Property::scale_
std::variant< Medium *, Phase *, Component * > scale_
Definition
Property.h:297
MaterialPropertyLib::VariableArray
Definition
VariableType.h:97
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:39
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:23
MaterialPropertyLib::CubicLawPermeability::_b
ParameterLib::Parameter< double > const & _b
fracture aperture
Definition
CubicLawPermeability.h:69
MaterialPropertyLib::CubicLawPermeability::checkScale
void checkScale() const override
Definition
CubicLawPermeability.h:47
MaterialPropertyLib::CubicLawPermeability::CubicLawPermeability
CubicLawPermeability(std::string name, ParameterLib::Parameter< double > const &b)
Definition
CubicLawPermeability.h:40
ParameterLib::Parameter
Definition
WellboreGeometry.h:23
MaterialLib
MPL
Properties
CubicLawPermeability.h
Generated by
1.12.0