OGS
WaterVapourDensity.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
56
class
WaterVapourDensity
final :
public
Property
57
{
58
public
:
59
explicit
WaterVapourDensity
(std::string
name
) {
name_
= std::move(
name
); }
60
void
checkScale
()
const override
61
{
62
if
(!std::holds_alternative<Phase*>(
scale_
))
63
{
64
OGS_FATAL
(
65
"The property 'WaterVapourDensity' is "
66
"implemented on the 'Phase' scale only."
);
67
}
68
}
69
71
PropertyDataType
value
(
VariableArray
const
& variable_array,
72
ParameterLib::SpatialPosition
const
& pos,
73
double
const
t,
double
const
dt)
const override
;
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
}
// 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:99
MaterialPropertyLib::WaterVapourDensity
A model for water vapour density in the unsaturated porous media.
Definition
WaterVapourDensity.h:57
MaterialPropertyLib::WaterVapourDensity::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
WaterVapourDensity.cpp:56
MaterialPropertyLib::WaterVapourDensity::checkScale
void checkScale() const override
Definition
WaterVapourDensity.h:60
MaterialPropertyLib::WaterVapourDensity::WaterVapourDensity
WaterVapourDensity(std::string name)
Definition
WaterVapourDensity.h:59
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
WaterVapourDensity.h
Generated by
1.11.0