10 Point(
double x,
double y) : x_(x), y_(y) {}
12 double getX()
const {
return x_; }
14 double getY()
const {
return y_; }
35 const double specificVolume,
const double density,
const double specificEnthalpy,
36 const double specificEntropy,
const double internalEnergy = 0)
37 : temperature(temperature), pressure(pressure), quality(quality), specificVolume(specificVolume),
38 density(density), specificEnthalpy(specificEnthalpy), specificEntropy(specificEntropy),
39 internalEnergy(internalEnergy) {}
45 double temperature = 0, pressure = 0, quality = 0, specificVolume = 0, density = 0;
46 double specificEnthalpy = 0, specificEntropy = 0, internalEnergy = 0;
65 const double gasSpecificEnthalpy,
const double gasSpecificEntropy,
66 const double liquidSpecificVolume,
const double liquidSpecificEnthalpy,
67 const double liquidSpecificEntropy,
const double evaporationSpecificVolume,
68 const double evaporationSpecificEnthalpy,
const double evaporationSpecificEntropy)
69 : temperature(temperature), pressure(pressure), gasSpecificVolume(gasSpecificVolume),
70 gasSpecificEnthalpy(gasSpecificEnthalpy), gasSpecificEntropy(gasSpecificEntropy),
71 liquidSpecificVolume(liquidSpecificVolume), liquidSpecificEnthalpy(liquidSpecificEnthalpy),
72 liquidSpecificEntropy(liquidSpecificEntropy), evaporationSpecificVolume(evaporationSpecificVolume),
73 evaporationSpecificEnthalpy(evaporationSpecificEnthalpy),
74 evaporationSpecificEntropy(evaporationSpecificEntropy) {}
78 double temperature = 0, pressure = 0;
79 double gasSpecificVolume = 0, gasSpecificEnthalpy = 0, gasSpecificEntropy = 0;
80 double liquidSpecificVolume = 0, liquidSpecificEnthalpy = 0, liquidSpecificEntropy = 0;
81 double evaporationSpecificVolume = 0, evaporationSpecificEnthalpy = 0, evaporationSpecificEntropy = 0;
98 FluidProperties(
const double massFlow,
const double energyFlow,
const double temperature,
const double pressure,
99 const double quality,
const double specificVolume,
const double density,
100 const double specificEnthalpy,
const double specificEntropy,
const double internalEnergy = 0)
102 specificEntropy, internalEnergy),
103 massFlow(massFlow), energyFlow(energyFlow) {}
107 sp.specificEnthalpy, sp.specificEntropy, sp.internalEnergy),
108 massFlow(massFlow), energyFlow(energyFlow) {}
110 friend std::ostream& operator<<(std::ostream& stream,
const FluidProperties& props);
111 friend std::ostream& operator<<(std::ostream& stream,
const std::shared_ptr<FluidProperties>& props);
115 double massFlow = 0, energyFlow = 0;
118 enum class Key { ENTHALPY, ENTROPY };
120 enum class Region { REGION1, REGION2A, REGION2B, REGION2C };
276 static double backwardRegion3Exact(
double pressure,
double X, SteamSystemModelerTool::Key key);
295 static double backwardPressureEnthalpyRegion1Exact(
double pressure,
double enthalpy);
297 static double backwardPressureEntropyRegion1Exact(
double pressure,
double entropy);
357 SteamSystemModelerTool::Region regionFunction,
double pressure,
double var2);
411 return 0.34805185628969E+03 - 0.11671859879975E+01 * t + 0.10192970039326E-02 * std::pow(t, 2.0);
422 return 0.57254459862746E+03 + std::pow((p - 0.13918839778870E+02) / 0.10192970039326E-02, 0.5);