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

Mixer Inputs:
Mixer InputDescription
GasPthChar1Gas Path Characteristics Input 1, 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]
GasPthChar2Gas Path Characteristics Input 2, 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]

Mixer Outputs:
Mixer OutputDescription
GasPthCharOutGas Path Characteristics Output, 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]
NErrNormalized error

Mixer Mask Variables:
Mixer Mask VariabletDescription
Aphy1_MArea of input 1 (in^2)
Aphy2_MArea of input 2 (in^2)
s_M_Imp1_MImpulse 1 scalar
s_M_Imp2_MImpulse 2 scalar
s_M_V1_MVelocity 1 scalar
s_M_V2_MVelocity 2 scalar
Y_M_FARVec_MFuel to Air Ratio Vector (Y-axis)(cx1)
T_M_RtArray_MRt Array (Rt = f(FAR))(cx1)
X_M_TVec_MMixer Temperature Vector (X-axis for Gamma calc)(dx1)
T_M_gammaArray_MMixer Gamma Array (Gamma = f(Tt,FAR))(dxc)
iDesign_M Design fork (0, 1, 2)
0 - iDes Enabled, Calculate mixer input areas based on design variables
When iDesign is set to 0, Aphy1_M and Aphy2_M from the General tab will not be used.
Throat areas calculated will be saved in the specified file (FVar_M).
1 - Mixer throat area variables will be overwritten (mask Initialization) with
values from a specified file (FVar_M).
When iDesign is set to 1, Aphy1_M and Aphy2_M from the General tab and the Design values
from the iDesign tab will not be used.
2 - Mixer throat area from the General tab will be used in the nozzle module.
When iDesign is set to 2, Aphy1_M and Aphy2_M from the General tab will be used; Design values
and file definitions from the iDesign tab will not be used.
SWPS_Mprimary flow switch ( 0 - primary flow is input 1 , 1 - primary flow is input 2
BPRDes_MDesign pressure ratio [W1/W2]
MNDes_MPrimary flow mach number
FVar_MFile name for iDes Variables
SVar_MiDes Variable Surname
Aphy1des_MiDes mixer input 1 throat area variable name
Aphy2des_MiDes mixer input 2 throat area variable name

Notes: Vectors are the x and/or y axis to a table made of an array. Scalars are used to "scale" the mixer equations.