OGS
WaterThermalConductivityIAPWS.h
Go to the documentation of this file.
1
12
#pragma once
13
14
#include "
MaterialLib/MPL/Property.h
"
15
16
namespace
MaterialPropertyLib
17
{
18
class
Phase;
19
34
class
WaterThermalConductivityIAPWS
final :
public
Property
35
{
36
public
:
37
explicit
WaterThermalConductivityIAPWS
(std::string
name
)
38
{
39
name_
= std::move(
name
);
40
}
41
void
checkScale
()
const override
42
{
43
if
(!std::holds_alternative<Phase*>(
scale_
))
44
{
45
OGS_FATAL
(
46
"The property 'WaterThermalConductivityIAPWS' is "
47
"implemented on the 'Phase' scale only."
);
48
}
49
}
50
52
PropertyDataType
value
(
VariableArray
const
& variable_array,
53
ParameterLib::SpatialPosition
const
& pos,
54
double
const
t,
double
const
dt)
const override
;
57
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
58
Variable
const
variable,
59
ParameterLib::SpatialPosition
const
& pos,
60
double
const
t,
double
const
dt)
const override
;
61
62
private
:
63
static
constexpr
double
ref_T_
= 647.096;
64
static
constexpr
double
ref_rho_
=
65
322.0;
66
static
constexpr
double
ref_lambda_
=
67
1.0e-3;
68
};
69
}
// namespace MaterialPropertyLib
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::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
MaterialPropertyLib::WaterThermalConductivityIAPWS
A class for thermal conductivity model that is defined by The International Association for the Prope...
Definition
WaterThermalConductivityIAPWS.h:35
MaterialPropertyLib::WaterThermalConductivityIAPWS::ref_lambda_
static constexpr double ref_lambda_
reference thermal conductivity in W.K^-1.m^-1
Definition
WaterThermalConductivityIAPWS.h:66
MaterialPropertyLib::WaterThermalConductivityIAPWS::ref_T_
static constexpr double ref_T_
reference temperature in K
Definition
WaterThermalConductivityIAPWS.h:63
MaterialPropertyLib::WaterThermalConductivityIAPWS::WaterThermalConductivityIAPWS
WaterThermalConductivityIAPWS(std::string name)
Definition
WaterThermalConductivityIAPWS.h:37
MaterialPropertyLib::WaterThermalConductivityIAPWS::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
WaterThermalConductivityIAPWS.cpp:64
MaterialPropertyLib::WaterThermalConductivityIAPWS::checkScale
void checkScale() const override
Definition
WaterThermalConductivityIAPWS.h:41
MaterialPropertyLib::WaterThermalConductivityIAPWS::ref_rho_
static constexpr double ref_rho_
reference density in kg/m^3
Definition
WaterThermalConductivityIAPWS.h:64
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
MaterialLib
MPL
Properties
ThermalConductivity
WaterThermalConductivityIAPWS.h
Generated by
1.12.0