T-MATS: Turbine, Cantera Library Block
This block simulates the performance of a turbine using basic thermodynamic equations, properties, Cantera functions, and table lookups. To utilize this block a Cantera object must exist in the workspace as a global variable named fs, which may be created with the Cantera importPhase command. The fs variable must include all Species defined in the file canteraload.m.

Turbine Inputs:
Turbine InputDescription
Flow InFlow Data Input, 25x1 vector consisting of:
-1- W - gas path flow [pps]
-2- s - entropy [BTU/(lbm*degR)]
-3- Tt - total temperature [degR]
-4- Pt - total pressure [psia]
-5- ht - total enthlapy [BTU/lbm]
-6- rhot - total density [lbm/ft3]
-7- gamt - total specific heat ratio
-8- Ts - static temperature [degR]
-9- Ps - static pressure [psia]
-10- hs - static enthalpy [BTU/lbm]
-11- rhos - static density [lbm/ft3]
-12- gams - static specific heat ratio
-13- Vflow - flow velocity [ft/sec]
-14- MN - Mach number
-15- A - flow area [in2]
-16to21- species array values, defined in canteraload.m
-22to25- future use
Bleed 1Cooling flow 1, 25x1 vector formated as Flow In above
Bleed 2Cooling flow 2, 25x1 vector formated as Flow In above
Speedshaft speed [rpm]
PRTurbine Pressure Ratio

Turbine Outputs:
Turbine OutputDescription
Flow OutFlow Data Output, 25x1 vector consisting of:
-1- W - gas path flow [pps]
-2- s - entropy [BTU/(lbm*degR)]
-3- Tt - total temperature [degR]
-4- Pt - total pressure [psia]
-5- ht - total enthlapy [BTU/lbm]
-6- rhot - total density [lbm/ft3]
-7- gamt - total specific heat ratio
-8- Ts - static temperature [degR]
-9- Ps - static pressure [psia]
-10- hs - static enthalpy [BTU/lbm]
-11- rhos - static density [lbm/ft3]
-12- gams - static specific heat ratio
-13- Vflow - flow velocity [ft/sec]
-14- MN - Mach number
-15- A - flow area [in2]
-16to21- species array values, defined in canteraload.m
-22to25- future use
Flow ErrorFlow Error, in a typical system this will
be driven to zero by an iterative solver
PowerTurbine Power Output [hp]
T_DataTurbine internal calculation Data

Turbine Mask Variables:
Turbine Mask VariableDescription
MapFile_Mcompressor map file name
s_C_Nc_Mcorrected speed scalar constant
s_Wc_Mcorrected flow scalar constant
s_PR_Mpressure ratio scalar constant
s_eff_Mcefficiency scalar constant
BSW1_MBleed 1, position switch [1 front, 0 back]
BSW2_MBleed 2, position switch [1 front, 0 back]
iDes_M Design fork (0, 1, 2)
0 - iDes Enabled, Calculate turbine map scalars based on design variables
When iDesign is set to 0, scalar constants from the general tab will not be used.
Scalars calculated will be saved to the workspace.
1 - Scalar variables will be overwritten with values specified in the workspace.
When iDesign is set to 1, scalar constants from the general tab and the Design values
from the iDesign tab will not be used.
2 - Scalar variables from the general tab will be used as the map scalars.
When iDesign is set to 2, scalar constants from the general tab will be used; Design values
from the iDesign tab will not be used.
Ndes_MDesign Shaft Speed [rpm], actual design point speed
PRmapDes_Mmap Design Pressure Ratio [frac], design point PR used in map
effDes_MDesign Efficiency [frac], actual design point tubine efficiency
NcDes_Mmap Design Corrected Shaft Speed [rpm], design point corrected speed used in map