OGS
WaterDensityIAPWSIF97Region1.h
Go to the documentation of this file.
1
12
#pragma once
13
14
#include "
MaterialLib/Fluid/GibbsFreeEnergy/DimensionLessGibbsFreeEnergyRegion1.h
"
15
#include "
MaterialLib/MPL/Property.h
"
16
17
namespace
MaterialPropertyLib
18
{
19
class
Phase;
20
25
class
WaterDensityIAPWSIF97Region1
final :
public
Property
26
{
27
public
:
28
explicit
WaterDensityIAPWSIF97Region1
(std::string
name
)
29
:
gibbs_free_energy_
(
30
MaterialLib
::Fluid::DimensionLessGibbsFreeEnergyRegion1())
31
{
32
name_
= std::move(
name
);
33
}
34
void
checkScale
()
const override
35
{
36
if
(!std::holds_alternative<Phase*>(
scale_
))
37
{
38
OGS_FATAL
(
39
"The property 'WaterDensityIAPWSIF97Region1' is "
40
"implemented on the 'Phase' scale only."
);
41
}
42
}
43
45
PropertyDataType
value
(
VariableArray
const
& variable_array,
46
ParameterLib::SpatialPosition
const
& pos,
47
double
const
t,
double
const
dt)
const override
;
50
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
51
Variable
const
variable,
52
ParameterLib::SpatialPosition
const
& pos,
53
double
const
t,
double
const
dt)
const override
;
54
55
private
:
56
const
MaterialLib::Fluid::DimensionLessGibbsFreeEnergyRegion1
57
gibbs_free_energy_
;
58
59
static
constexpr
double
ref_T_
= 1386;
60
static
constexpr
double
ref_p_
= 1.653e7;
61
};
62
}
// namespace MaterialPropertyLib
DimensionLessGibbsFreeEnergyRegion1.h
Declare a class for dimensionless Gibbs free energy, region1.
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::WaterDensityIAPWSIF97Region1
Definition
WaterDensityIAPWSIF97Region1.h:26
MaterialPropertyLib::WaterDensityIAPWSIF97Region1::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
WaterDensityIAPWSIF97Region1.cpp:38
MaterialPropertyLib::WaterDensityIAPWSIF97Region1::WaterDensityIAPWSIF97Region1
WaterDensityIAPWSIF97Region1(std::string name)
Definition
WaterDensityIAPWSIF97Region1.h:28
MaterialPropertyLib::WaterDensityIAPWSIF97Region1::ref_p_
static constexpr double ref_p_
reference pressure in Pa.
Definition
WaterDensityIAPWSIF97Region1.h:60
MaterialPropertyLib::WaterDensityIAPWSIF97Region1::gibbs_free_energy_
const MaterialLib::Fluid::DimensionLessGibbsFreeEnergyRegion1 gibbs_free_energy_
Definition
WaterDensityIAPWSIF97Region1.h:57
MaterialPropertyLib::WaterDensityIAPWSIF97Region1::ref_T_
static constexpr double ref_T_
reference temperature in K.
Definition
WaterDensityIAPWSIF97Region1.h:59
MaterialPropertyLib::WaterDensityIAPWSIF97Region1::checkScale
void checkScale() const override
Definition
WaterDensityIAPWSIF97Region1.h:34
ParameterLib::SpatialPosition
Definition
SpatialPosition.h:27
MaterialLib
Definition
ConstantFluidProperty.h:18
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::Fluid::DimensionLessGibbsFreeEnergyRegion1
Definition
DimensionLessGibbsFreeEnergyRegion1.h:34
MaterialLib
MPL
Properties
Density
WaterDensityIAPWSIF97Region1.h
Generated by
1.12.0