10 Point(
double x,
double y) : x_(x), y_(y) {}
12 double getX()
const {
return x_; }
14 double getY()
const {
return y_; }
39 const double specificVolume,
const double density,
const double specificEnthalpy,
40 const double specificEntropy,
const double internalEnergy = 0,
41 const double specificIsobaricHeatCapacity_cp = 0,
const double specificIsochoricHeatCapacity_cv = 0,
42 const double speedOfSound_w = 0,
const double isentropicExponent = 0)
43 : temperature(temperature), pressure(pressure), quality(quality), specificVolume(specificVolume),
44 density(density), specificEnthalpy(specificEnthalpy), specificEntropy(specificEntropy),
45 internalEnergy(internalEnergy),
46 specificIsobaricHeatCapacity_cp(specificIsobaricHeatCapacity_cp), specificIsochoricHeatCapacity_cv(specificIsochoricHeatCapacity_cv),
47 speedOfSound_w(speedOfSound_w), isentropicExponent(isentropicExponent){}
53 double temperature = 0, pressure = 0, quality = 0, specificVolume = 0, density = 0;
54 double specificEnthalpy = 0, specificEntropy = 0, internalEnergy = 0;
55 double specificIsobaricHeatCapacity_cp = 0, specificIsochoricHeatCapacity_cv = 0, speedOfSound_w = 0, isentropicExponent = 0;
74 const double gasSpecificEnthalpy,
const double gasSpecificEntropy,
75 const double liquidSpecificVolume,
const double liquidSpecificEnthalpy,
76 const double liquidSpecificEntropy,
const double evaporationSpecificVolume,
77 const double evaporationSpecificEnthalpy,
const double evaporationSpecificEntropy)
78 : temperature(temperature), pressure(pressure), gasSpecificVolume(gasSpecificVolume),
79 gasSpecificEnthalpy(gasSpecificEnthalpy), gasSpecificEntropy(gasSpecificEntropy),
80 liquidSpecificVolume(liquidSpecificVolume), liquidSpecificEnthalpy(liquidSpecificEnthalpy),
81 liquidSpecificEntropy(liquidSpecificEntropy), evaporationSpecificVolume(evaporationSpecificVolume),
82 evaporationSpecificEnthalpy(evaporationSpecificEnthalpy),
83 evaporationSpecificEntropy(evaporationSpecificEntropy) {}
87 double temperature = 0, pressure = 0;
88 double gasSpecificVolume = 0, gasSpecificEnthalpy = 0, gasSpecificEntropy = 0;
89 double liquidSpecificVolume = 0, liquidSpecificEnthalpy = 0, liquidSpecificEntropy = 0;
90 double evaporationSpecificVolume = 0, evaporationSpecificEnthalpy = 0, evaporationSpecificEntropy = 0;
107 FluidProperties(
const double massFlow,
const double energyFlow,
const double temperature,
const double pressure,
108 const double quality,
const double specificVolume,
const double density,
109 const double specificEnthalpy,
const double specificEntropy,
const double internalEnergy = 0)
111 specificEntropy, internalEnergy),
112 massFlow(massFlow), energyFlow(energyFlow) {}
116 sp.specificEnthalpy, sp.specificEntropy, sp.internalEnergy),
117 massFlow(massFlow), energyFlow(energyFlow) {}
119 friend std::ostream& operator<<(std::ostream& stream,
const FluidProperties& props);
120 friend std::ostream& operator<<(std::ostream& stream,
const std::shared_ptr<FluidProperties>& props);
124 double massFlow = 0, energyFlow = 0;
127 enum class Key { ENTHALPY, ENTROPY };
129 enum class Region { REGION1, REGION2A, REGION2B, REGION2C };
132 static void checkIsentropicExponentLimits(
double& k);
287 static double backwardRegion3Exact(
double pressure,
double X, SteamSystemModelerTool::Key key);
306 static double backwardPressureEnthalpyRegion1Exact(
double pressure,
double enthalpy);
308 static double backwardPressureEntropyRegion1Exact(
double pressure,
double entropy);
368 SteamSystemModelerTool::Region regionFunction,
double pressure,
double var2);
422 return 0.34805185628969E+03 - 0.11671859879975E+01 * t + 0.10192970039326E-02 * std::pow(t, 2.0);
433 return 0.57254459862746E+03 + std::pow((p - 0.13918839778870E+02) / 0.10192970039326E-02, 0.5);