OGS
WaterDensityIAPWSIF97Region1.h
Go to the documentation of this file.
1
12#pragma once
13
16
17namespace MaterialPropertyLib
18{
19class Phase;
20
26{
27public:
28 explicit WaterDensityIAPWSIF97Region1(std::string name)
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 {
39 "The property 'WaterDensityIAPWSIF97Region1' is "
40 "implemented on the 'Phase' scale only.");
41 }
42 }
43
45 PropertyDataType value(VariableArray const& variable_array,
47 double const t, double const dt) const override;
50 PropertyDataType dValue(VariableArray const& variable_array,
51 Variable const variable,
53 double const t, double const dt) const override;
54
55private:
58
59 static constexpr double ref_T_ = 1386;
60 static constexpr double ref_p_ = 1.653e7;
61};
62} // namespace MaterialPropertyLib
Declare a class for dimensionless Gibbs free energy, region1.
#define OGS_FATAL(...)
Definition Error.h:26
virtual PropertyDataType value() const
Definition Property.cpp:76
std::variant< Medium *, Phase *, Component * > scale_
Definition Property.h:297
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
static constexpr double ref_p_
reference pressure in Pa.
const MaterialLib::Fluid::DimensionLessGibbsFreeEnergyRegion1 gibbs_free_energy_
static constexpr double ref_T_
reference temperature in K.
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