8 Point(
double x,
double y) : x_(x), y_(y) {}
10 double getX()
const {
return x_; }
12 double getY()
const {
return y_; }
37 const double specificVolume,
const double density,
const double specificEnthalpy,
38 const double specificEntropy,
const double internalEnergy = 0,
39 const double specificIsobaricHeatCapacity_cp = 0,
const double specificIsochoricHeatCapacity_cv = 0,
40 const double speedOfSound_w = 0,
const double isentropicExponent = 0)
41 : temperature(temperature), pressure(pressure), quality(quality), specificVolume(specificVolume),
42 density(density), specificEnthalpy(specificEnthalpy), specificEntropy(specificEntropy),
43 internalEnergy(internalEnergy),
44 specificIsobaricHeatCapacity_cp(specificIsobaricHeatCapacity_cp), specificIsochoricHeatCapacity_cv(specificIsochoricHeatCapacity_cv),
45 speedOfSound_w(speedOfSound_w), isentropicExponent(isentropicExponent){}
51 double temperature = 0, pressure = 0, quality = 0, specificVolume = 0, density = 0;
52 double specificEnthalpy = 0, specificEntropy = 0, internalEnergy = 0;
53 double specificIsobaricHeatCapacity_cp = 0, specificIsochoricHeatCapacity_cv = 0, speedOfSound_w = 0, isentropicExponent = 0;
72 const double gasSpecificEnthalpy,
const double gasSpecificEntropy,
73 const double liquidSpecificVolume,
const double liquidSpecificEnthalpy,
74 const double liquidSpecificEntropy,
const double evaporationSpecificVolume,
75 const double evaporationSpecificEnthalpy,
const double evaporationSpecificEntropy)
76 : temperature(temperature), pressure(pressure), gasSpecificVolume(gasSpecificVolume),
77 gasSpecificEnthalpy(gasSpecificEnthalpy), gasSpecificEntropy(gasSpecificEntropy),
78 liquidSpecificVolume(liquidSpecificVolume), liquidSpecificEnthalpy(liquidSpecificEnthalpy),
79 liquidSpecificEntropy(liquidSpecificEntropy), evaporationSpecificVolume(evaporationSpecificVolume),
80 evaporationSpecificEnthalpy(evaporationSpecificEnthalpy),
81 evaporationSpecificEntropy(evaporationSpecificEntropy) {}
85 double temperature = 0, pressure = 0;
86 double gasSpecificVolume = 0, gasSpecificEnthalpy = 0, gasSpecificEntropy = 0;
87 double liquidSpecificVolume = 0, liquidSpecificEnthalpy = 0, liquidSpecificEntropy = 0;
88 double evaporationSpecificVolume = 0, evaporationSpecificEnthalpy = 0, evaporationSpecificEntropy = 0;
105 FluidProperties(
const double massFlow,
const double energyFlow,
const double temperature,
const double pressure,
106 const double quality,
const double specificVolume,
const double density,
107 const double specificEnthalpy,
const double specificEntropy,
const double internalEnergy = 0)
109 specificEntropy, internalEnergy),
110 massFlow(massFlow), energyFlow(energyFlow) {}
114 sp.specificEnthalpy, sp.specificEntropy, sp.internalEnergy),
115 massFlow(massFlow), energyFlow(energyFlow) {}
117 friend std::ostream& operator<<(std::ostream& stream,
const FluidProperties& props);
118 friend std::ostream& operator<<(std::ostream& stream,
const std::shared_ptr<FluidProperties>& props);
122 double massFlow = 0, energyFlow = 0;
125 enum class Key { ENTHALPY, ENTROPY };
127 enum class Region { REGION1, REGION2A, REGION2B, REGION2C };
130 static void checkIsentropicExponentLimits(
double& k);
284 static double backwardRegion3Exact(
double pressure,
double X, SteamSystemModelerTool::Key key);
302 static double backwardPressureEnthalpyRegion1Exact(
double pressure,
double enthalpy);
304 static double backwardPressureEntropyRegion1Exact(
double pressure,
double entropy);
364 SteamSystemModelerTool::Region regionFunction,
double pressure,
double var2);
428 return 0.34805185628969E+03 - 0.11671859879975E+01 * t + 0.10192970039326E-02 * std::pow(t, 2.0);
439 return 0.57254459862746E+03 + std::pow((p - 0.13918839778870E+02) / 0.10192970039326E-02, 0.5);