11#ifndef TOOLS_SUITE_TURBINE_H
12#define TOOLS_SUITE_TURBINE_H
16#include "SteamProperties.h"
27 enum class Solve { OutletProperties, IsentropicEfficiency };
51 double inletQuantityValue,
TurbineProperty turbineProperty,
double isentropicEfficiency,
52 double generatorEfficiency,
double massFlowOrPowerOut,
double outletSteamPressure);
78 double inletQuantityValue,
TurbineProperty turbineProperty,
double generatorEfficiency,
79 double massFlowOrPowerOut,
double outletSteamPressure,
88 friend std::ostream&
operator<<(std::ostream& stream,
const std::shared_ptr<Turbine>& turbine);
90 Solve getSolveFor()
const {
return solveFor; }
294 double inletPressure, isentropicEfficiency, generatorEfficiency, massFlowOrPowerOut, outletSteamPressure;
296 double inletQuantityValue, outletQuantityValue = 0;
301 double inletEnergyFlow, outletEnergyFlow = 0, energyOut, powerOut, massFlow;
ThermodynamicQuantity
enum class for ThermodynamicQuantity
void setInletPressure(double inletPressure)
SteamSystemModelerTool::SteamPropertiesOutput const & getInletProperties() const
double getEnergyOut() const
double getInletPressure() const
TurbineProperty getTurbineProperty() const
double getOutletSteamPressure() const
Turbine(Solve solveFor, double inletPressure, SteamProperties::ThermodynamicQuantity inletQuantity, double inletQuantityValue, TurbineProperty turbineProperty, double generatorEfficiency, double massFlowOrPowerOut, double outletSteamPressure, SteamProperties::ThermodynamicQuantity outletQuantity, double outletQuantityValue)
Turbine(Solve solveFor, double inletPressure, SteamProperties::ThermodynamicQuantity inletQuantity, double inletQuantityValue, TurbineProperty turbineProperty, double isentropicEfficiency, double generatorEfficiency, double massFlowOrPowerOut, double outletSteamPressure)
double getInletQuantityValue() const
double getMassFlow() const
void setGeneratorEfficiency(double generatorEfficiency)
double getIsentropicEfficiency() const
TurbineProperty
enum class for TurbineProperty
void setMassFlowOrPowerOut(double massFlowOrPowerOut)
Sets the Mass Flow Or Power Out.
void solveForIsentropicEfficiency()
double getMassFlowOrPowerOut() const
double getPowerOut() const
double getGeneratorEfficiency() const
void setSolveFor(Solve solveFor)
Solve
enum class for Solve
double getOutletEnergyFlow() const
void setOutletQuantityValue(double outletQuantityValue)
void setOutletSteamPressure(double outletSteamPressure)
void setTurbineProperty(TurbineProperty turbineProperty)
void setInletQuantityValue(double inletQuantityValue)
SteamProperties::ThermodynamicQuantity getInletQuantity() const
double getOutletQuantityValue() const
SteamProperties::ThermodynamicQuantity getOutletQuantity() const
void setOutletQuantity(SteamProperties::ThermodynamicQuantity outletQuantity)
void solveForOutletProperties()
double getInletEnergyFlow() const
void setIsentropicEfficiency(double isentropicEfficiency)
void setInletQuantity(SteamProperties::ThermodynamicQuantity inletQuantity)
void calculateTurbineProperties(double inletSpecificEnthalpy, double outletSpecificEnthalpy)
friend std::ostream & operator<<(std::ostream &stream, const Turbine &turbine)
SteamSystemModelerTool::SteamPropertiesOutput const & getOutletProperties() const