|
MEASUR-Tools-Suite v1.0.11
The MEASUR Tools Suite is a collection of industrial efficiency calculations written in C++ and with bindings for compilation to WebAssembly.
|
#include <Turbine.h>
Public Types | |
| enum class | Solve { OutletProperties , IsentropicEfficiency } |
| enum class for Solve More... | |
| enum class | TurbineProperty { MassFlow , PowerOut } |
| enum class for TurbineProperty More... | |
Public Member Functions | |
| Turbine (Solve solveFor, double inletPressure, SteamProperties::ThermodynamicQuantity inletQuantity, double inletQuantityValue, TurbineProperty turbineProperty, double isentropicEfficiency, double generatorEfficiency, double massFlowOrPowerOut, double outletSteamPressure) | |
| Turbine (Solve solveFor, double inletPressure, SteamProperties::ThermodynamicQuantity inletQuantity, double inletQuantityValue, TurbineProperty turbineProperty, double generatorEfficiency, double massFlowOrPowerOut, double outletSteamPressure, SteamProperties::ThermodynamicQuantity outletQuantity, double outletQuantityValue) | |
| Solve | getSolveFor () const |
| double | getInletPressure () const |
| double | getIsentropicEfficiency () const |
| double | getGeneratorEfficiency () const |
| double | getMassFlowOrPowerOut () const |
| double | getOutletSteamPressure () const |
| SteamProperties::ThermodynamicQuantity | getInletQuantity () const |
| SteamProperties::ThermodynamicQuantity | getOutletQuantity () const |
| double | getInletQuantityValue () const |
| double | getOutletQuantityValue () const |
| TurbineProperty | getTurbineProperty () const |
| SteamSystemModelerTool::SteamPropertiesOutput const & | getInletProperties () const |
| SteamSystemModelerTool::SteamPropertiesOutput const & | getOutletProperties () const |
| double | getInletEnergyFlow () const |
| double | getOutletEnergyFlow () const |
| double | getPowerOut () const |
| double | getEnergyOut () const |
| double | getMassFlow () const |
| void | setSolveFor (Solve solveFor) |
| void | setInletPressure (double inletPressure) |
| void | setIsentropicEfficiency (double isentropicEfficiency) |
| void | setGeneratorEfficiency (double generatorEfficiency) |
| void | setMassFlowOrPowerOut (double massFlowOrPowerOut) |
| Sets the Mass Flow Or Power Out. | |
| void | setOutletSteamPressure (double outletSteamPressure) |
| void | setInletQuantity (SteamProperties::ThermodynamicQuantity inletQuantity) |
| void | setOutletQuantity (SteamProperties::ThermodynamicQuantity outletQuantity) |
| void | setInletQuantityValue (double inletQuantityValue) |
| void | setOutletQuantityValue (double outletQuantityValue) |
| void | setTurbineProperty (TurbineProperty turbineProperty) |
Private Member Functions | |
| void | calculate () |
| void | solveForOutletProperties () |
| void | solveForIsentropicEfficiency () |
| void | calculateTurbineProperties (double inletSpecificEnthalpy, double outletSpecificEnthalpy) |
Private Attributes | |
| Solve | solveFor |
| double | inletPressure |
| double | isentropicEfficiency |
| double | generatorEfficiency |
| double | massFlowOrPowerOut |
| double | outletSteamPressure |
| SteamProperties::ThermodynamicQuantity | inletQuantity |
| SteamProperties::ThermodynamicQuantity | outletQuantity |
| double | inletQuantityValue |
| double | outletQuantityValue = 0 |
| TurbineProperty | turbineProperty |
| SteamSystemModelerTool::SteamPropertiesOutput | inletProperties |
| SteamSystemModelerTool::SteamPropertiesOutput | outletProperties |
| double | inletEnergyFlow |
| double | outletEnergyFlow = 0 |
| double | energyOut |
| double | powerOut |
| double | massFlow |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const Turbine &turbine) |
| std::ostream & | operator<< (std::ostream &stream, const std::shared_ptr< Turbine > &turbine) |
Turbine calculator class Used to calculateThermalResistance turbine properties
|
strong |
|
strong |
| Turbine::Turbine | ( | Solve | solveFor, |
| double | inletPressure, | ||
| SteamProperties::ThermodynamicQuantity | inletQuantity, | ||
| double | inletQuantityValue, | ||
| TurbineProperty | turbineProperty, | ||
| double | isentropicEfficiency, | ||
| double | generatorEfficiency, | ||
| double | massFlowOrPowerOut, | ||
| double | outletSteamPressure | ||
| ) |
Constructor for the turbine calculator
| solveFor,solves | for unknown value |
| inletPressure | double, inlet pressure in MPa |
| quantityType | SteamProperties::ThermodynamicQuantity, type of quantity (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless) |
| inletQuantity,type | of quantity for water (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless) |
| inletQuantityValue | double, Thermodynamic Property of the Inlet used for calculations- Temperature (K), Enthalpy (kJ/kg), Entropy (kJ/kg-K), or Quality (unitless) |
| TurbineProperty,known | turbine property: mass flow rate (kg/hr) or power output (kW) |
| turbineProperty,known | turbine property: mass flow rate (kg/hr) or power output (kW) |
| isentropicEfficiency | double, Isentropic Efficiency of Turbine, fraction |
| generatorEfficiency | double, Conversion Efficiency of Turbine, fraction |
| massFlowOrPowerOut | double, known turbine property: mass flow rate (kg/hr) or power output (kW) |
| outletSteamPressure | double, outlet pressure of the steam in MPa |
| Turbine::Turbine | ( | Solve | solveFor, |
| double | inletPressure, | ||
| SteamProperties::ThermodynamicQuantity | inletQuantity, | ||
| double | inletQuantityValue, | ||
| TurbineProperty | turbineProperty, | ||
| double | generatorEfficiency, | ||
| double | massFlowOrPowerOut, | ||
| double | outletSteamPressure, | ||
| SteamProperties::ThermodynamicQuantity | outletQuantity, | ||
| double | outletQuantityValue | ||
| ) |
Constructor for the turbine calculator
| solveFor,solves | for the unknown value |
| inletPressure | double, inlet pressure in MPa |
| quantityType | SteamProperties::ThermodynamicQuantity, type of quantity (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless) |
| inletQuantity,type | of quantity for water (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless) |
| inletQuantityValue | double, Thermodynamic Property of the Inlet used for calculations- Temperature (K), Enthalpy (kJ/kg), Entropy (kJ/kg-K), or Quality (unitless) |
| TurbineProperty,known | turbine property: mass flow rate (kg/hr) or power output (kW) |
| turbineProperty,known | turbine property: mass flow rate (kg/hr) or power output (kW) |
| generatorEfficiency | double, Conversion Efficiency of Turbine, fraction |
| massFlowOrPowerOut | double, known turbine property: mass flow rate (kg/hr) or power output (kW) |
| outletSteamPressure | double, outlet pressure of the steam in MPa |
| outletQuantity,type | of quantity for water (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless) |
| outletQuantityValue | double, Thermodynamic Property of the outlet used for calculations- Temperature (K), Enthalpy (kJ/kg), Entropy (kJ/kg-K), or Quality (unitless) |
|
private |
| calculate,calculates | the needed value |
|
private |
Calculates Turbine Properties
| inletSpecificEnthalpy,double | in kJ/kg |
| outletSpecificEnthalpy,double | in kJ/kg/K |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Gets the Inlet Properties
|
inline |
Gets the Inlet Quantity
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Gets the Outlet Properties
|
inline |
Gets the Outlet Quantity
|
inline |
|
inline |
|
inline |
|
inline |
| void Turbine::setGeneratorEfficiency | ( | double | generatorEfficiency | ) |
Sets the Generator Efficiency
| generatorEfficiency | double, Conversion Efficiency of Turbine, fraction |
| void Turbine::setInletPressure | ( | double | inletPressure | ) |
Sets the inlet pressure
| inletPressure | double, inlet pressure in MPa |
| void Turbine::setInletQuantity | ( | SteamProperties::ThermodynamicQuantity | inletQuantity | ) |
Sets the Inlet Quantity
| inletQuantity,inlet | type of quantity for water (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless) |
| void Turbine::setInletQuantityValue | ( | double | inletQuantityValue | ) |
| void Turbine::setIsentropicEfficiency | ( | double | isentropicEfficiency | ) |
Sets the Isentropic Efficiency
| isentropicEfficiency | double, Isentropic Efficiency of Turbine, fraction |
| void Turbine::setMassFlowOrPowerOut | ( | double | massFlowOrPowerOut | ) |
| massFlowOrPowerOut | double, known turbine property: mass flow rate (kg/hr) or power output (kW) |
| void Turbine::setOutletQuantity | ( | SteamProperties::ThermodynamicQuantity | outletQuantity | ) |
Sets the Outlet Quantity
| outletQuantity,outlet | type of quantity for water (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless) |
| void Turbine::setOutletQuantityValue | ( | double | outletQuantityValue | ) |
Sets the Outlet Quantity Value
| outletQuantityValue | double, Thermodynamic Property of the Inlet used for calculations- Temperature (K), Enthalpy (kJ/kg), Entropy (kJ/kg-K), or Quality (unitless) |
| void Turbine::setOutletSteamPressure | ( | double | outletSteamPressure | ) |
Sets the Outlet Steam Pressure
| outletSteamPressure | double, outlet pressure of the steam in MPa |
| void Turbine::setSolveFor | ( | Solve | solveFor | ) |
Sets the Solve For value
| solveFor,solves | for the unknown value |
| void Turbine::setTurbineProperty | ( | TurbineProperty | turbineProperty | ) |
Sets the Turbine Property
| Turbineproperty,known | turbine property: mass flow rate (kg/hr) or power output (kW) |
| turbineProperty,known | turbine property: mass flow rate (kg/hr) or power output (kW) |
|
private |
| solveForIsentropicEfficiency,solves | for Isentropic Efficiency |
|
private |
| solveFOrOutletProperties,solves | for outlet properties |
|
friend |
Solves for the unknown value
|
private |
|
private |
|
private |
|
private |
|
private |