OGS
WaterVapourLatentHeatWithCriticalTemperature.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#pragma once
5
6
#include "
MaterialLib/MPL/Property.h
"
7
#include "
MaterialLib/PhysicalConstant.h
"
8
9
namespace
MaterialPropertyLib
10
{
11
class
Phase
;
12
52
class
WaterVapourLatentHeatWithCriticalTemperature
final :
public
Property
53
{
54
public
:
55
explicit
WaterVapourLatentHeatWithCriticalTemperature
(std::string
name
)
56
{
57
name_
= std::move(
name
);
58
}
59
60
void
checkScale
()
const override
61
{
62
if
(!std::holds_alternative<Phase*>(
scale_
))
63
{
64
OGS_FATAL
(
65
"The property 'WaterVapourLatentHeatWithCriticalTemperature' "
66
"is "
67
"implemented on the 'phase' scale only."
);
68
}
69
}
70
71
PropertyDataType
value
(
VariableArray
const
& variable_array,
72
ParameterLib::SpatialPosition
const
& pos,
73
double
const
t,
74
double
const
dt)
const override
;
75
76
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
77
Variable
const
variable,
78
ParameterLib::SpatialPosition
const
& pos,
79
double
const
t,
double
const
dt)
const override
;
80
};
81
82
}
// namespace MaterialPropertyLib
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:19
Property.h
PhysicalConstant.h
MaterialPropertyLib::Phase
Definition
Phase.h:24
MaterialPropertyLib::Property
Definition
MaterialLib/MPL/Property.h:44
MaterialPropertyLib::Property::value
virtual PropertyDataType value() const
Definition
MaterialLib/MPL/Property.cpp:67
MaterialPropertyLib::Property::name_
std::string name_
Definition
MaterialLib/MPL/Property.h:283
MaterialPropertyLib::Property::scale_
std::variant< Medium *, Phase *, Component * > scale_
Definition
MaterialLib/MPL/Property.h:290
MaterialPropertyLib::VariableArray
Definition
VariableType.h:94
MaterialPropertyLib::WaterVapourLatentHeatWithCriticalTemperature::WaterVapourLatentHeatWithCriticalTemperature
WaterVapourLatentHeatWithCriticalTemperature(std::string name)
Definition
WaterVapourLatentHeatWithCriticalTemperature.h:55
MaterialPropertyLib::WaterVapourLatentHeatWithCriticalTemperature::checkScale
void checkScale() const override
Definition
WaterVapourLatentHeatWithCriticalTemperature.h:60
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:65
ParameterLib::SpatialPosition
Definition
SpatialPosition.h:21
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:98
MaterialPropertyLib::Variable
Variable
Definition
VariableType.h:21
MaterialPropertyLib::name
@ name
Definition
PropertyType.h:57
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
MaterialLib/MPL/Property.h:24
MaterialLib
MPL
Properties
Enthalpy
WaterVapourLatentHeatWithCriticalTemperature.h
Generated by
1.14.0