OGS
WaterVapourLatentHeatWithCriticalTemperature.h
Go to the documentation of this file.
1
12
#pragma once
13
14
#include "
MaterialLib/MPL/Property.h
"
15
#include "
MaterialLib/PhysicalConstant.h
"
16
17
namespace
MaterialPropertyLib
18
{
19
class
Phase;
20
60
class
WaterVapourLatentHeatWithCriticalTemperature
final :
public
Property
61
{
62
public
:
63
explicit
WaterVapourLatentHeatWithCriticalTemperature
(std::string
name
)
64
{
65
name_
= std::move(
name
);
66
}
67
68
void
checkScale
()
const override
69
{
70
if
(!std::holds_alternative<Phase*>(
scale_
))
71
{
72
OGS_FATAL
(
73
"The property 'WaterVapourLatentHeatWithCriticalTemperature' "
74
"is "
75
"implemented on the 'phase' scale only."
);
76
}
77
}
78
79
PropertyDataType
value
(
VariableArray
const
& variable_array,
80
ParameterLib::SpatialPosition
const
& pos,
81
double
const
t,
82
double
const
dt)
const override
;
83
84
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
85
Variable
const
variable,
86
ParameterLib::SpatialPosition
const
& pos,
87
double
const
t,
double
const
dt)
const override
;
88
};
89
90
}
// namespace MaterialPropertyLib
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
Property.h
PhysicalConstant.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::WaterVapourLatentHeatWithCriticalTemperature
A latent heat model of vaporisation of water considering the critical temperature.
Definition
WaterVapourLatentHeatWithCriticalTemperature.h:61
MaterialPropertyLib::WaterVapourLatentHeatWithCriticalTemperature::WaterVapourLatentHeatWithCriticalTemperature
WaterVapourLatentHeatWithCriticalTemperature(std::string name)
Definition
WaterVapourLatentHeatWithCriticalTemperature.h:63
MaterialPropertyLib::WaterVapourLatentHeatWithCriticalTemperature::checkScale
void checkScale() const override
Definition
WaterVapourLatentHeatWithCriticalTemperature.h:68
MaterialPropertyLib::WaterVapourLatentHeatWithCriticalTemperature::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
WaterVapourLatentHeatWithCriticalTemperature.cpp:73
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
Enthalpy
WaterVapourLatentHeatWithCriticalTemperature.h
Generated by
1.10.0