OGS
SaturationWeightedThermalConductivity.h
Go to the documentation of this file.
1
12
#pragma once
13
14
#include "
BaseLib/Error.h
"
15
#include "
MaterialLib/MPL/Property.h
"
16
17
namespace
ParameterLib
18
{
19
struct
CoordinateSystem;
20
template
<
typename
T>
21
struct
Parameter;
22
}
// namespace ParameterLib
23
24
namespace
MaterialPropertyLib
25
{
26
class
Medium;
27
28
enum class
MeanType
29
{
30
ARITHMETIC_LINEAR
,
31
ARITHMETIC_SQUAREROOT
,
32
GEOMETRIC
33
};
34
53
template
<MeanType MeantType,
int
GlobalDimension>
54
class
SaturationWeightedThermalConductivity
final :
public
Property
55
{
56
public
:
57
SaturationWeightedThermalConductivity
(
58
std::string
name
,
59
ParameterLib::Parameter<double>
const
& dry_thermal_conductivity,
60
ParameterLib::Parameter<double>
const
& wet_thermal_conductivity);
61
62
void
checkScale
()
const override
63
{
64
if
(!std::holds_alternative<Medium*>(
scale_
))
65
{
66
OGS_FATAL
(
67
"The property 'SaturationWeightedThermalConductivity' is "
68
"implemented on the 'media' scale only."
);
69
}
70
}
71
72
PropertyDataType
value
(
VariableArray
const
& variable_array,
73
ParameterLib::SpatialPosition
const
& pos,
74
double
const
t,
75
double
const
dt)
const override
;
76
77
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
78
Variable
const
variable,
79
ParameterLib::SpatialPosition
const
& pos,
80
double
const
t,
81
double
const
dt)
const override
;
82
83
private
:
85
ParameterLib::Parameter<double>
const
&
dry_thermal_conductivity_
;
87
ParameterLib::Parameter<double>
const
&
wet_thermal_conductivity_
;
88
};
89
90
extern
template
class
SaturationWeightedThermalConductivity
<
91
MeanType::ARITHMETIC_LINEAR
,
92
1>;
93
extern
template
class
SaturationWeightedThermalConductivity
<
94
MeanType::ARITHMETIC_SQUAREROOT
,
95
1>;
96
extern
template
class
SaturationWeightedThermalConductivity
<
MeanType::GEOMETRIC
,
97
1>;
98
extern
template
class
SaturationWeightedThermalConductivity
<
99
MeanType::ARITHMETIC_LINEAR
,
100
2>;
101
extern
template
class
SaturationWeightedThermalConductivity
<
102
MeanType::ARITHMETIC_SQUAREROOT
,
103
2>;
104
extern
template
class
SaturationWeightedThermalConductivity
<
MeanType::GEOMETRIC
,
105
2>;
106
extern
template
class
SaturationWeightedThermalConductivity
<
107
MeanType::ARITHMETIC_LINEAR
,
108
3>;
109
extern
template
class
SaturationWeightedThermalConductivity
<
110
MeanType::ARITHMETIC_SQUAREROOT
,
111
3>;
112
extern
template
class
SaturationWeightedThermalConductivity
<
MeanType::GEOMETRIC
,
113
3>;
114
115
}
// namespace MaterialPropertyLib
Error.h
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
Property.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::SaturationWeightedThermalConductivity
Saturation dependent thermal conductivity model for soil.
Definition
SaturationWeightedThermalConductivity.h:55
MaterialPropertyLib::SaturationWeightedThermalConductivity::SaturationWeightedThermalConductivity
SaturationWeightedThermalConductivity(std::string name, ParameterLib::Parameter< double > const &dry_thermal_conductivity, ParameterLib::Parameter< double > const &wet_thermal_conductivity)
Definition
SaturationWeightedThermalConductivity.cpp:85
MaterialPropertyLib::SaturationWeightedThermalConductivity::wet_thermal_conductivity_
ParameterLib::Parameter< double > const & wet_thermal_conductivity_
Thermal conductivity of soil at the fully water saturated state.
Definition
SaturationWeightedThermalConductivity.h:87
MaterialPropertyLib::SaturationWeightedThermalConductivity::dry_thermal_conductivity_
ParameterLib::Parameter< double > const & dry_thermal_conductivity_
Thermal conductivity of soil at the dry state.
Definition
SaturationWeightedThermalConductivity.h:85
MaterialPropertyLib::SaturationWeightedThermalConductivity::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
SaturationWeightedThermalConductivity.cpp:164
MaterialPropertyLib::SaturationWeightedThermalConductivity::checkScale
void checkScale() const override
Definition
SaturationWeightedThermalConductivity.h:62
MaterialPropertyLib::VariableArray
Definition
VariableType.h:97
ParameterLib::SpatialPosition
Definition
SpatialPosition.h:27
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::MeanType
MeanType
Definition
SaturationWeightedThermalConductivity.h:29
MaterialPropertyLib::MeanType::ARITHMETIC_SQUAREROOT
@ ARITHMETIC_SQUAREROOT
MaterialPropertyLib::MeanType::GEOMETRIC
@ GEOMETRIC
MaterialPropertyLib::MeanType::ARITHMETIC_LINEAR
@ ARITHMETIC_LINEAR
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
ParameterLib
Definition
ChemicalSolverInterface.h:26
ParameterLib::Parameter
Definition
WellboreGeometry.h:23
MaterialLib
MPL
Properties
ThermalConductivity
SaturationWeightedThermalConductivity.h
Generated by
1.12.0