1#ifndef TOOLS_SUITE_STEAMSYSTEMMODELERTOOL_H
2#define TOOLS_SUITE_STEAMSYSTEMMODELERTOOL_H
11 Point(
double x,
double y) : x_(x), y_(y) {}
13 double getX()
const {
return x_; }
15 double getY()
const {
return y_; }
36 const double specificVolume,
const double density,
const double specificEnthalpy,
37 const double specificEntropy,
const double internalEnergy = 0)
38 : temperature(temperature), pressure(pressure), quality(quality), specificVolume(specificVolume),
39 density(density), specificEnthalpy(specificEnthalpy), specificEntropy(specificEntropy),
40 internalEnergy(internalEnergy) {}
46 double temperature = 0, pressure = 0, quality = 0, specificVolume = 0, density = 0;
47 double specificEnthalpy = 0, specificEntropy = 0, internalEnergy = 0;
66 const double gasSpecificEnthalpy,
const double gasSpecificEntropy,
67 const double liquidSpecificVolume,
const double liquidSpecificEnthalpy,
68 const double liquidSpecificEntropy,
const double evaporationSpecificVolume,
69 const double evaporationSpecificEnthalpy,
const double evaporationSpecificEntropy)
70 : temperature(temperature), pressure(pressure), gasSpecificVolume(gasSpecificVolume),
71 gasSpecificEnthalpy(gasSpecificEnthalpy), gasSpecificEntropy(gasSpecificEntropy),
72 liquidSpecificVolume(liquidSpecificVolume), liquidSpecificEnthalpy(liquidSpecificEnthalpy),
73 liquidSpecificEntropy(liquidSpecificEntropy), evaporationSpecificVolume(evaporationSpecificVolume),
74 evaporationSpecificEnthalpy(evaporationSpecificEnthalpy),
75 evaporationSpecificEntropy(evaporationSpecificEntropy) {}
79 double temperature = 0, pressure = 0;
80 double gasSpecificVolume = 0, gasSpecificEnthalpy = 0, gasSpecificEntropy = 0;
81 double liquidSpecificVolume = 0, liquidSpecificEnthalpy = 0, liquidSpecificEntropy = 0;
82 double evaporationSpecificVolume = 0, evaporationSpecificEnthalpy = 0, evaporationSpecificEntropy = 0;
99 FluidProperties(
const double massFlow,
const double energyFlow,
const double temperature,
const double pressure,
100 const double quality,
const double specificVolume,
const double density,
101 const double specificEnthalpy,
const double specificEntropy,
const double internalEnergy = 0)
103 specificEntropy, internalEnergy),
104 massFlow(massFlow), energyFlow(energyFlow) {}
108 sp.specificEnthalpy, sp.specificEntropy, sp.internalEnergy),
109 massFlow(massFlow), energyFlow(energyFlow) {}
111 friend std::ostream& operator<<(std::ostream& stream,
const FluidProperties& props);
112 friend std::ostream& operator<<(std::ostream& stream,
const std::shared_ptr<FluidProperties>& props);
116 double massFlow = 0, energyFlow = 0;
119 enum class Key { ENTHALPY, ENTROPY };
121 enum class Region { REGION1, REGION2A, REGION2B, REGION2C };
277 static double backwardRegion3Exact(
double pressure,
double X, SteamSystemModelerTool::Key key);
296 static double backwardPressureEnthalpyRegion1Exact(
double pressure,
double enthalpy);
298 static double backwardPressureEntropyRegion1Exact(
double pressure,
double entropy);
358 SteamSystemModelerTool::Region regionFunction,
double pressure,
double var2);
412 return 0.34805185628969E+03 - 0.11671859879975E+01 * t + 0.10192970039326E-02 * std::pow(t, 2.0);
423 return 0.57254459862746E+03 + std::pow((p - 0.13918839778870E+02) / 0.10192970039326E-02, 0.5);