T-MATS: Nozzle Library Block
This block simulates the performance of a nozzle using basic thermodynamic equations, properties, and table lookups.

Nozzle Inputs:
Nozzle InputDescription
GasPthCharInGas Path Characteristics Input, 5x1 vector consisting of:
- W - gas path flow [pps]
- ht - enthalpy [BTU/lbm]
- Tt - Total Temperature [degR]
- Pt - Total Pressure [psia]
- FARc - Combusted Fuel to Air Ratio [frac]
PambAmbient static Pressure [psia]

Nozzle Outputs:
Nozzle OutputDescription
Woutgas path flow [pps]
FgGross thrust [lbf]
NErrNormalized Error [frac], in a typical system this will
be driven to zero by an iterative solver
N_DataNozzle internal calculation Data

Nozzle Mask Variables:
Nozzle Mask VariableDescription
N_TArea_MNozzle Throat Area [in^2]
N_EArea_MNozzle Exit Area [in^2]
N_FL_MFlow Loss Across Nozzle (%)
X_N_TtVec2_MNozzle Total Temperature Vector (X-axis for TG calc)(ax1)
T_N_TGArray_MNozzle Thermal Growth Array (TG = f(Tt))(ax1)
X_N_PEQPaVec_MNozzle PE/Pa Vector (X-axis)(bx1)
T_N_CdThArray_MNozzle CdTh Array, Throat blockage factor [frac](CdTh = f(PEQPa))(bx1)
0 - Fully Blocked, 1 - Fully unblocked
T_N_CvArray_MNozzle Velocity Coefficient Array (Cv = f(PEQPa))(bx1)
T_N_CfgArray_MNozzle Thrust Coefficient Array (Cfg = f(PEQPa))(bx1)
X_N_FARVec_MNozzle Fuel to Air Ratio Vector(X-axis)(cx1)
T_N_RtArray_MNozzle Gas Constant, R, Array (R = f(FAR))(cx1)
Y_N_TtVec_MNozzle Total Temperature Vector (Y-axis for Gamma calc)(dx1)
T_N_MAP_gammaArray_MNozzle Map Gamma Array (Gamma = f(Tt,FAR))(dxc)
iDesign_M Design fork (0, 1, 2)
0 - iDes Enabled, Calculate nozzle throat area based on design variables
When iDesign is set to 0, N_TArea_M from the General tab will not be used.
Throat area calculated will be saved in the specified file (FVar_M).
1 - nozzle throat area variables will be overwritten (mask Initialization) with
values from a specified file (FVar_M).
When iDesign is set to 1, N-TArea_M from the General tab and the Design values
from the iDesign tab will not be used.
2 - Nozzle throat area from the General tab will be used in the nozzle module.
When iDesign is set to 2, N_TArea_M from the General tab will be used; Design values
and file definitions from the iDesign tab will not be used.
WDes_MDesign flow[pps]
FVar_MFile name for iDes Variables
SVar_MiDes Variable Surname
AthNm_MiDes nozzle throat area variable name
AxNm_MiDes nozzle exit area variable name

Note: Vectors are the x and/or y axis to a table made of an array.