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.
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Turbine Class Reference

#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)
 

Detailed Description

Turbine calculator class Used to calculateThermalResistance turbine properties

Definition at line 24 of file Turbine.h.

Member Enumeration Documentation

◆ Solve

enum class Turbine::Solve
strong

Definition at line 27 of file Turbine.h.

◆ TurbineProperty

enum class Turbine::TurbineProperty
strong

Definition at line 29 of file Turbine.h.

Constructor & Destructor Documentation

◆ Turbine() [1/2]

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

Parameters
solveFor,solvesfor unknown value
inletPressuredouble, inlet pressure in MPa
quantityTypeSteamProperties::ThermodynamicQuantity, type of quantity (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless)
inletQuantity,typeof quantity for water (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless)
inletQuantityValuedouble, Thermodynamic Property of the Inlet used for calculations- Temperature (K), Enthalpy (kJ/kg), Entropy (kJ/kg-K), or Quality (unitless)
TurbineProperty,knownturbine property: mass flow rate (kg/hr) or power output (kW)
turbineProperty,knownturbine property: mass flow rate (kg/hr) or power output (kW)
isentropicEfficiencydouble, Isentropic Efficiency of Turbine, fraction
generatorEfficiencydouble, Conversion Efficiency of Turbine, fraction
massFlowOrPowerOutdouble, known turbine property: mass flow rate (kg/hr) or power output (kW)
outletSteamPressuredouble, outlet pressure of the steam in MPa

◆ Turbine() [2/2]

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

Parameters
solveFor,solvesfor the unknown value
inletPressuredouble, inlet pressure in MPa
quantityTypeSteamProperties::ThermodynamicQuantity, type of quantity (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless)
inletQuantity,typeof quantity for water (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless)
inletQuantityValuedouble, Thermodynamic Property of the Inlet used for calculations- Temperature (K), Enthalpy (kJ/kg), Entropy (kJ/kg-K), or Quality (unitless)
TurbineProperty,knownturbine property: mass flow rate (kg/hr) or power output (kW)
turbineProperty,knownturbine property: mass flow rate (kg/hr) or power output (kW)
generatorEfficiencydouble, Conversion Efficiency of Turbine, fraction
massFlowOrPowerOutdouble, known turbine property: mass flow rate (kg/hr) or power output (kW)
outletSteamPressuredouble, outlet pressure of the steam in MPa
outletQuantity,typeof quantity for water (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless)
outletQuantityValuedouble, Thermodynamic Property of the outlet used for calculations- Temperature (K), Enthalpy (kJ/kg), Entropy (kJ/kg-K), or Quality (unitless)

Member Function Documentation

◆ calculate()

void Turbine::calculate ( )
private
Parameters
calculate,calculatesthe needed value

◆ calculateTurbineProperties()

void Turbine::calculateTurbineProperties ( double  inletSpecificEnthalpy,
double  outletSpecificEnthalpy 
)
private

Calculates Turbine Properties

Parameters
inletSpecificEnthalpy,doublein kJ/kg
outletSpecificEnthalpy,doublein kJ/kg/K

◆ getEnergyOut()

double Turbine::getEnergyOut ( ) const
inline

Gets the Energy Out

Returns
double, energy output in MJ/hr

Definition at line 190 of file Turbine.h.

◆ getGeneratorEfficiency()

double Turbine::getGeneratorEfficiency ( ) const
inline

Gets the Generator Efficiency

Returns
double, Conversion Efficiency of Turbine, fraction

Definition at line 108 of file Turbine.h.

◆ getInletEnergyFlow()

double Turbine::getInletEnergyFlow ( ) const
inline

Gets the Inlet Energy Flow

Returns
double, inlet steam energy flow in MJ/hr

Definition at line 172 of file Turbine.h.

◆ getInletPressure()

double Turbine::getInletPressure ( ) const
inline

Gets the inlet pressure

Returns
double, Pressure of the inlet steam in MPa

Definition at line 96 of file Turbine.h.

◆ getInletProperties()

SteamSystemModelerTool::SteamPropertiesOutput const & Turbine::getInletProperties ( ) const
inline

Gets the Inlet Properties

Returns
SteamSystemModelerTool::SteamPropertiesOutput, inlet steam properties

Definition at line 160 of file Turbine.h.

◆ getInletQuantity()

SteamProperties::ThermodynamicQuantity Turbine::getInletQuantity ( ) const
inline

Gets the Inlet Quantity

Returns
SteamProperties::ThermodynamicQuantity, type of quantity for water (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless)

Definition at line 127 of file Turbine.h.

◆ getInletQuantityValue()

double Turbine::getInletQuantityValue ( ) const
inline

Gets the Inlet Quantity Value

Returns
double, Thermodynamic Property of the Inlet used for calculations- Temperature (K), Enthalpy (kJ/kg), Entropy (kJ/kg-K), or Quality (unitless)

Definition at line 141 of file Turbine.h.

◆ getIsentropicEfficiency()

double Turbine::getIsentropicEfficiency ( ) const
inline

Gets the Isentropic Efficiency

Returns
double, Isentropic Efficiency of Turbine, fraction

Definition at line 102 of file Turbine.h.

◆ getMassFlow()

double Turbine::getMassFlow ( ) const
inline

Gets the Mass Flow

Returns
double, Mass flow rate in kg/hr

Definition at line 196 of file Turbine.h.

◆ getMassFlowOrPowerOut()

double Turbine::getMassFlowOrPowerOut ( ) const
inline

Gets the Mass Flow Or Power Out

Returns
double, known turbine property: mass flow rate (kg/hr) or power output (kW)

Definition at line 114 of file Turbine.h.

◆ getOutletEnergyFlow()

double Turbine::getOutletEnergyFlow ( ) const
inline

Gets the Outlet Energy Flow note: without desuperheating, it is the same as inletMassFlow because outlet == inlet.

Returns
double, outlet steam energy flow in MJ/hr

Definition at line 178 of file Turbine.h.

◆ getOutletProperties()

SteamSystemModelerTool::SteamPropertiesOutput const & Turbine::getOutletProperties ( ) const
inline

Gets the Outlet Properties

Returns
SteamSystemModelerTool::SteamPropertiesOutput, outlet steam properties

Definition at line 166 of file Turbine.h.

◆ getOutletQuantity()

SteamProperties::ThermodynamicQuantity Turbine::getOutletQuantity ( ) const
inline

Gets the Outlet Quantity

Returns
SteamProperties::ThermodynamicQuantity, type of quantity for water (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless)

Definition at line 134 of file Turbine.h.

◆ getOutletQuantityValue()

double Turbine::getOutletQuantityValue ( ) const
inline

Gets the Outlet Quantity Value

Returns
double, Thermodynamic Property of the outlet used for calculations- Temperature (K), Enthalpy (kJ/kg), Entropy (kJ/kg-K), or Quality (unitless)

Definition at line 148 of file Turbine.h.

◆ getOutletSteamPressure()

double Turbine::getOutletSteamPressure ( ) const
inline

Gets the Outlet Steam Pressure

Returns
double, outlet pressure of the steam in MPa

Definition at line 120 of file Turbine.h.

◆ getPowerOut()

double Turbine::getPowerOut ( ) const
inline

Gets the Power Out

Returns
double, power output in kW

Definition at line 184 of file Turbine.h.

◆ getSolveFor()

Solve Turbine::getSolveFor ( ) const
inline

Definition at line 90 of file Turbine.h.

◆ getTurbineProperty()

TurbineProperty Turbine::getTurbineProperty ( ) const
inline

Gets the Turbine Property

Returns
known turbine property: mass flow rate (kg/hr) or power output (kW)

Definition at line 154 of file Turbine.h.

◆ setGeneratorEfficiency()

void Turbine::setGeneratorEfficiency ( double  generatorEfficiency)

Sets the Generator Efficiency

Parameters
generatorEfficiencydouble, Conversion Efficiency of Turbine, fraction

◆ setInletPressure()

void Turbine::setInletPressure ( double  inletPressure)

Sets the inlet pressure

Parameters
inletPressuredouble, inlet pressure in MPa

◆ setInletQuantity()

void Turbine::setInletQuantity ( SteamProperties::ThermodynamicQuantity  inletQuantity)

Sets the Inlet Quantity

Parameters
inletQuantity,inlettype of quantity for water (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless)

◆ setInletQuantityValue()

void Turbine::setInletQuantityValue ( double  inletQuantityValue)

Sets the Inlet Quantity Value

Parameters
inletQuantityValuedouble, Thermodynamic Property of the Inlet used for calculations- Temperature (K), Enthalpy (kJ/kg), Entropy (kJ/kg-K), or Quality (unitless)

◆ setIsentropicEfficiency()

void Turbine::setIsentropicEfficiency ( double  isentropicEfficiency)

Sets the Isentropic Efficiency

Parameters
isentropicEfficiencydouble, Isentropic Efficiency of Turbine, fraction

◆ setMassFlowOrPowerOut()

void Turbine::setMassFlowOrPowerOut ( double  massFlowOrPowerOut)
Parameters
massFlowOrPowerOutdouble, known turbine property: mass flow rate (kg/hr) or power output (kW)

◆ setOutletQuantity()

void Turbine::setOutletQuantity ( SteamProperties::ThermodynamicQuantity  outletQuantity)

Sets the Outlet Quantity

Parameters
outletQuantity,outlettype of quantity for water (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless)

◆ setOutletQuantityValue()

void Turbine::setOutletQuantityValue ( double  outletQuantityValue)

Sets the Outlet Quantity Value

Parameters
outletQuantityValuedouble, Thermodynamic Property of the Inlet used for calculations- Temperature (K), Enthalpy (kJ/kg), Entropy (kJ/kg-K), or Quality (unitless)

◆ setOutletSteamPressure()

void Turbine::setOutletSteamPressure ( double  outletSteamPressure)

Sets the Outlet Steam Pressure

Parameters
outletSteamPressuredouble, outlet pressure of the steam in MPa

◆ setSolveFor()

void Turbine::setSolveFor ( Solve  solveFor)

Sets the Solve For value

Parameters
solveFor,solvesfor the unknown value

◆ setTurbineProperty()

void Turbine::setTurbineProperty ( TurbineProperty  turbineProperty)

Sets the Turbine Property

Parameters
Turbineproperty,knownturbine property: mass flow rate (kg/hr) or power output (kW)
turbineProperty,knownturbine property: mass flow rate (kg/hr) or power output (kW)

◆ solveForIsentropicEfficiency()

void Turbine::solveForIsentropicEfficiency ( )
private
Parameters
solveForIsentropicEfficiency,solvesfor Isentropic Efficiency

◆ solveForOutletProperties()

void Turbine::solveForOutletProperties ( )
private
Parameters
solveFOrOutletProperties,solvesfor outlet properties

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  stream,
const Turbine turbine 
)
friend

Solves for the unknown value

Returns
unknown value

Member Data Documentation

◆ energyOut

double Turbine::energyOut
private

Definition at line 301 of file Turbine.h.

◆ generatorEfficiency

double Turbine::generatorEfficiency
private

Definition at line 294 of file Turbine.h.

◆ inletEnergyFlow

double Turbine::inletEnergyFlow
private

Definition at line 301 of file Turbine.h.

◆ inletPressure

double Turbine::inletPressure
private

Definition at line 294 of file Turbine.h.

◆ inletProperties

SteamSystemModelerTool::SteamPropertiesOutput Turbine::inletProperties
private

Definition at line 299 of file Turbine.h.

◆ inletQuantity

SteamProperties::ThermodynamicQuantity Turbine::inletQuantity
private

Definition at line 295 of file Turbine.h.

◆ inletQuantityValue

double Turbine::inletQuantityValue
private

Definition at line 296 of file Turbine.h.

◆ isentropicEfficiency

double Turbine::isentropicEfficiency
private

Definition at line 294 of file Turbine.h.

◆ massFlow

double Turbine::massFlow
private

Definition at line 301 of file Turbine.h.

◆ massFlowOrPowerOut

double Turbine::massFlowOrPowerOut
private

Definition at line 294 of file Turbine.h.

◆ outletEnergyFlow

double Turbine::outletEnergyFlow = 0
private

Definition at line 301 of file Turbine.h.

◆ outletProperties

SteamSystemModelerTool::SteamPropertiesOutput Turbine::outletProperties
private

Definition at line 299 of file Turbine.h.

◆ outletQuantity

SteamProperties::ThermodynamicQuantity Turbine::outletQuantity
private

Definition at line 295 of file Turbine.h.

◆ outletQuantityValue

double Turbine::outletQuantityValue = 0
private

Definition at line 296 of file Turbine.h.

◆ outletSteamPressure

double Turbine::outletSteamPressure
private

Definition at line 294 of file Turbine.h.

◆ powerOut

double Turbine::powerOut
private

Definition at line 301 of file Turbine.h.

◆ solveFor

Solve Turbine::solveFor
private

Definition at line 293 of file Turbine.h.

◆ turbineProperty

TurbineProperty Turbine::turbineProperty
private

Definition at line 297 of file Turbine.h.


The documentation for this class was generated from the following file: