OGS
WaterVapourDensityIAPWSIF97Region4.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
23
class
WaterVapourDensityIAPWSIF97Region4
final :
public
Property
24
{
25
public
:
26
explicit
WaterVapourDensityIAPWSIF97Region4
(std::string
name
)
27
{
28
name_
= std::move(
name
);
29
}
30
void
checkScale
()
const override
31
{
32
if
(!std::holds_alternative<Phase*>(
scale_
))
33
{
34
OGS_FATAL
(
35
"The property 'WaterVapourDensityIAPWSIF97Region4' is "
36
"implemented on the 'Phase' scale only."
);
37
}
38
}
39
41
PropertyDataType
value
(
VariableArray
const
& variable_array,
42
ParameterLib::SpatialPosition
const
& pos,
43
double
const
t,
double
const
dt)
const override
;
46
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
47
Variable
const
variable,
48
ParameterLib::SpatialPosition
const
& pos,
49
double
const
t,
double
const
dt)
const override
;
50
};
51
}
// 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::WaterVapourDensityIAPWSIF97Region4
Definition
WaterVapourDensityIAPWSIF97Region4.h:24
MaterialPropertyLib::WaterVapourDensityIAPWSIF97Region4::WaterVapourDensityIAPWSIF97Region4
WaterVapourDensityIAPWSIF97Region4(std::string name)
Definition
WaterVapourDensityIAPWSIF97Region4.h:26
MaterialPropertyLib::WaterVapourDensityIAPWSIF97Region4::checkScale
void checkScale() const override
Definition
WaterVapourDensityIAPWSIF97Region4.h:30
MaterialPropertyLib::WaterVapourDensityIAPWSIF97Region4::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
WaterVapourDensityIAPWSIF97Region4.cpp:61
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
Density
WaterVapourDensityIAPWSIF97Region4.h
Generated by
1.12.0