[1.4411, 1.4282, 1.4088, 1.3830, 1.3512, 1.3136, 1.2632, 1.1942, 1.1088, 1.0101, 1.0000, 1.0000], [1.5724, 1.5561, 1.5313, 1.4982, 1.4572, 1.4088, 1.3440, 1.2556, 1.1472, 1.0233, 1.0000, 1.0000], [1.7323, 1.7101, 1.6785, 1.6379, 1.5888, 1.5318, 1.4572, 1.3572, 1.2358, 1.0982, 1.0000, 1.0000], [1.9360, 1.9056, 1.8662, 1.8184, 1.7625, 1.6991, 1.6190, 1.5142, 1.3887, 1.2471, 1.0944, 1.0000], [2.0507, 2.0158, 1.9729, 1.9223, 1.8645, 1.8000, 1.7201, 1.6176, 1.4958, 1.3584, 1.2098, 1.0546]]]) #LPCmap.Nc_data, LPCmap.alpha_data, LPCmap.Rline_data = np.meshgrid(LPCmap.Nc_vals, LPCmap.alpha_vals, LPCmap.Rline_vals, sparse=False) LPCmap.Npts = LPCmap.NcMap.size LPCmap.units = {} LPCmap.units['NcMap'] = 'rpm' LPCmap.units['WcMap'] = 'lbm/s' # format for new regular grid interpolator: LPCmap.param_data = [] LPCmap.output_data = [] LPCmap.param_data.append({'name': 'alphaMap', 'values': LPCmap.alphaMap, 'default': 0, 'units': None}) LPCmap.param_data.append({'name': 'NcMap', 'values': LPCmap.NcMap, 'default': 1.1, 'units': 'rpm'}) LPCmap.param_data.append({'name': 'RlineMap', 'values': LPCmap.RlineMap, 'default': 2.2, 'units': None}) LPCmap.output_data.append({'name': 'WcMap', 'values': LPCmap.WcMap, 'default': np.mean(LPCmap.WcMap), 'units': 'lbm/s'}) LPCmap.output_data.append({'name': 'effMap', 'values': LPCmap.effMap, 'default': np.mean(LPCmap.effMap), 'units': None}) LPCmap.output_data.append({'name': 'PRmap', 'values': LPCmap.PRmap, 'default': 1.8, 'units': None})
], [ 2.4343, 2.4365, 2.4387, 2.4409, 2.4430, 2.4452, 2.4473, 2.4495, 2.4516, 2.4538, 2.4559 ]]]) #LPCMap.Nc_data, LPCMap.alpha_data, LPCMap.Rline_data = np.meshgrid(LPCMap.Nc_vals, LPCMap.alpha_vals, LPCMap.Rline_vals, sparse=False) LPCMap.Npts = LPCMap.NcMap.size LPCMap.units = {} LPCMap.units['NcMap'] = 'rpm' LPCMap.units['WcMap'] = 'lbm/s' # format for new regular grid interpolator: LPCMap.param_data = [] LPCMap.output_data = [] LPCMap.param_data.append({ 'name': 'alphaMap', 'values': LPCMap.alphaMap, 'default': 0, 'units': None }) LPCMap.param_data.append({ 'name': 'NcMap', 'values': LPCMap.NcMap, 'default': 1.0, 'units': 'rpm' }) LPCMap.param_data.append({
[ 29.799, 29.870, 29.920, 29.955, 29.979, 29.997, 30.009, 30.017, 30.023, 30.026, 30.028, 30.029, 30.029, 30.029, 30.029, 30.029, 30.029, 30.029, 30.029, 30.029 ]]]) #HPTmap.Np_data, HPTmap.alpha_data, HPTmap.PR_data = np.meshgrid(HPTmap.Nc_vals, HPTmap.alpha_vals, HPTmap.PR_vals, sparse=False) HPTmap.Npts = HPTmap.NpMap.size HPTmap.units = {} HPTmap.units['NpMap'] = 'rpm' HPTmap.units['WpMap'] = 'lbm/s' # format for new regular grid interpolator: HPTmap.param_data = [] HPTmap.output_data = [] HPTmap.param_data.append({ 'name': 'alphaMap', 'values': HPTmap.alphaMap, 'default': 1, 'units': None }) HPTmap.param_data.append({ 'name': 'NpMap', 'values': HPTmap.NpMap, 'default': 100.0, 'units': 'rpm' }) HPTmap.param_data.append({
[ 43.920, 44.081, 44.219, 44.339, 44.444, 44.538, 44.621, 44.694, 44.755, 44.811, 44.861, 44.907, 44.949, 44.987, 45.022, 45.054, 45.084, 45.112, 45.138, 45.183 ]]]) #LPTMap.Np_data, LPTMap.alpha_data, LPTMap.PR_data = np.meshgrid(LPTMap.Nc_vals, LPTMap.alpha_vals, LPTMap.PR_vals, sparse=False) LPTMap.Npts = LPTMap.NpMap.size LPTMap.units = {} LPTMap.units['NpMap'] = 'rpm' LPTMap.units['WpMap'] = 'lbm/s' # format for new regular grid interpolator: LPTMap.param_data = [] LPTMap.output_data = [] LPTMap.param_data.append({ 'name': 'alphaMap', 'values': LPTMap.alphaMap, 'default': 1.0, 'units': None }) LPTMap.param_data.append({ 'name': 'NpMap', 'values': LPTMap.NpMap, 'default': 100.0, 'units': 'rpm' }) LPTMap.param_data.append({
[1.8381, 1.8472, 1.8432, 1.8260, 1.7960, 1.7537, 1.7006, 1.6386, 1.5684, 1.4910, 1.4073], [1.9316, 1.9312, 1.9197, 1.8973, 1.8642, 1.8209, 1.7687, 1.7091, 1.6427, 1.5702, 1.4923], [2.0237, 2.0149, 1.9970, 1.9704, 1.9352, 1.8918, 1.8414, 1.7850, 1.7231, 1.6562, 1.5848], [2.1043, 2.0885, 2.0659, 2.0366, 2.0008, 1.9588, 1.9114, 1.8595, 1.8033, 1.7433, 1.6797]]]) #FanMap.Nc_data, FanMap.alpha_data, FanMap.Rline_data = np.meshgrid(FanMap.Nc_vals, FanMap.alpha_vals, FanMap.Rline_vals, sparse=False) FanMap.Npts = FanMap.NcMap.size FanMap.units = {} FanMap.units['NcMap'] = 'rpm' FanMap.units['WcMap'] = 'lbm/s' # format for new regular grid interpolator: FanMap.param_data = [] FanMap.output_data = [] FanMap.param_data.append({'name': 'alphaMap', 'values': FanMap.alphaMap, 'default': 0, 'units': None}) FanMap.param_data.append({'name': 'NcMap', 'values': FanMap.NcMap, 'default': 0.99, 'units': 'rpm'}) FanMap.param_data.append({'name': 'RlineMap', 'values': FanMap.RlineMap, 'default': 2.2, 'units': None}) FanMap.output_data.append({'name': 'WcMap', 'values': FanMap.WcMap, 'default': np.mean(FanMap.WcMap), 'units': 'lbm/s'}) FanMap.output_data.append({'name': 'effMap', 'values': FanMap.effMap, 'default': np.mean(FanMap.effMap), 'units': None}) FanMap.output_data.append({'name': 'PRmap', 'values': FanMap.PRmap, 'default': 1.754, 'units': None})
[4.8443, 5.0097, 5.0468, 4.9535, 4.7350, 4.4035, 3.9581, 3.4109, 2.8024], [5.2659, 5.4656, 5.5180, 5.4201, 5.1776, 4.8046, 4.3011, 3.6821, 2.9960], [5.9603, 5.8925, 5.7804, 5.6258, 5.4313, 5.2000, 4.9289, 4.6166, 4.2701], [6.2935, 6.1874, 6.0632, 5.9218, 5.7642, 5.5914, 5.4014, 5.1930, 4.9678], [6.4390, 6.3324, 6.2162, 6.0908, 5.9568, 5.8145, 5.6627, 5.5004, 5.3284]]]) AXI5.units = {} AXI5.units['NcMap'] = 'rpm' AXI5.units['WcMap'] = 'lbm/s' AXI5.Npts = AXI5.NcMap.size # format for new regular grid interpolator: AXI5.param_data = [] AXI5.output_data = [] AXI5.param_data.append({ 'name': 'alphaMap', 'values': AXI5.alphaMap, 'default': 0, 'units': None }) AXI5.param_data.append({ 'name': 'NcMap', 'values': AXI5.NcMap, 'default': 1.0, 'units': 'rpm' }) AXI5.param_data.append({
[ 29.799, 29.870, 29.920, 29.955, 29.979, 29.997, 30.009, 30.017, 30.023, 30.026, 30.028, 30.029, 30.029, 30.029, 30.029, 30.029, 30.029, 30.029, 30.029, 30.029 ]]]) #HPT1269.Np_data, HPT1269.alpha_data, HPT1269.PR_data = np.meshgrid(HPT1269.Nc_vals, HPT1269.alpha_vals, HPT1269.PR_vals, sparse=False) HPT1269.Npts = HPT1269.NpMap.size HPT1269.units = {} HPT1269.units['NpMap'] = 'rpm' HPT1269.units['WpMap'] = 'lbm/s' # format for new regular grid interpolator: HPT1269.param_data = [] HPT1269.output_data = [] HPT1269.param_data.append({ 'name': 'alphaMap', 'values': HPT1269.alphaMap, 'default': 1.0, 'units': None }) HPT1269.param_data.append({ 'name': 'NpMap', 'values': HPT1269.NpMap, 'default': 100.0, 'units': 'rpm' }) HPT1269.param_data.append({
], [ 140.863, 141.131, 141.310, 141.428, 141.503, 141.547, 141.567, 141.569, 141.569, 141.569, 141.569, 141.569, 141.569, 141.569, 141.569, 141.569, 141.569, 141.569, 141.569, 141.569 ]]]) #LPT2269.Np_data, LPT2269.alpha_data, LPT2269.PR_data = np.meshgrid(LPT2269.Nc_vals, LPT2269.alpha_vals, LPT2269.PR_vals, sparse=False) LPT2269.Npts = LPT2269.NpMap.size LPT2269.units = {} LPT2269.units['NpMap'] = 'rpm' LPT2269.units['WpMap'] = 'lbm/s' # format for new regular grid interpolator: LPT2269.param_data = [] LPT2269.output_data = [] LPT2269.param_data.append({ 'name': 'alphaMap', 'values': LPT2269.alphaMap, 'default': 1.0, 'units': None }) LPT2269.param_data.append({ 'name': 'NpMap', 'values': LPT2269.NpMap, 'default': 100.0, 'units': 'rpm' }) LPT2269.param_data.append({
[0.0017, 0.0017, 0.0017, 0.0017, 0.0018, 0.0017, 0.0017]]) # ohm Ohmic Losses battery.tR_0 = np.array([[0.0118, 0.0110, 0.0115, 0.0109, 0.0109, 0.0115, 0.0120], [0.0090, 0.0090, 0.0091, 0.0089, 0.0092, 0.0089, 0.0089], [0.0085, 0.0086, 0.0082, 0.0083, 0.0086, 0.0085, 0.0086]]) # ohm battery.units = {} battery.units['T_bp'] = 'degC' battery.units['tU_oc'] = 'V' battery.units['tC_Th'] = 'F' battery.units['tR_Th'] = 'ohm' battery.units['tR_0'] = 'ohm' # format for new regular grid interpolator: battery.param_data = [] battery.output_data = [] battery.param_data.append({'name': 'T_bp', 'values': battery.T_bp, 'default': 20.0, 'units': 'degC'}) battery.param_data.append({'name': 'SOC_bp', 'values': battery.SOC_bp, 'default': 0.5, 'units': None}) battery.output_data.append({'name': 'tC_Th', 'values': battery.tC_Th, 'default': 20000, 'units': 'F'}) battery.output_data.append({'name': 'tR_Th', 'values': battery.tR_Th, 'default': 0.002, 'units': 'ohm'}) battery.output_data.append({'name': 'tR_0', 'values': battery.tR_0, 'default': 0.009, 'units': 'ohm'}) battery.output_data.append({'name': 'tU_oc', 'values': battery.tU_oc, 'default': 3.75, 'units': 'V'})
[3.5470, 3.5566, 3.5254, 3.4543, 3.3449, 3.2000, 3.0207, 2.8093, 2.5717], [3.7752, 3.7298, 3.6683, 3.5912, 3.4994, 3.3935, 3.2737, 3.1402, 2.9944], [3.8744, 3.8211, 3.7601, 3.6915, 3.6159, 3.5334, 3.4440, 3.3476, 3.2447]]]) AXI3_2.units = {} AXI3_2.units['NcMap'] = 'rpm' AXI3_2.units['WcMap'] = 'lbm/s' AXI3_2.Npts = AXI3_2.NcMap.size # format for new regular grid interpolator: AXI3_2.param_data = [] AXI3_2.output_data = [] AXI3_2.param_data.append({'name': 'alphaMap', 'values': AXI3_2.alphaMap, 'default': 0, 'units': None}) AXI3_2.param_data.append({'name': 'NcMap', 'values': AXI3_2.NcMap, 'default': 1.0, 'units': 'rpm'}) AXI3_2.param_data.append({'name': 'RlineMap', 'values': AXI3_2.RlineMap, 'default': 2.0, 'units': None}) AXI3_2.output_data.append({'name': 'WcMap', 'values': AXI3_2.WcMap, 'default': np.mean(AXI3_2.WcMap), 'units': 'lbm/s'}) AXI3_2.output_data.append({'name': 'effMap', 'values': AXI3_2.effMap, 'default': np.mean(AXI3_2.effMap), 'units': None}) AXI3_2.output_data.append({'name': 'PRmap', 'values': AXI3_2.PRmap, 'default': np.mean(AXI3_2.PRmap), 'units': None})
], [ 1.7224, 1.7122, 1.7008, 1.6882, 1.6744, 1.6595, 1.6434, 1.6266, 1.6089, 1.5904, 1.5711, 1.5510 ]]]) NCP01.units = {} NCP01.units['NcMap'] = 'rpm' NCP01.units['WcMap'] = 'lbm/s' # Get number of points in map NCP01.Npts = NCP01.NcMap.size # format for new regular grid interpolator: NCP01.param_data = [] NCP01.output_data = [] NCP01.param_data.append({ 'name': 'alphaMap', 'values': NCP01.alphaMap, 'default': 0, 'units': None }) NCP01.param_data.append({ 'name': 'NcMap', 'values': NCP01.NcMap, 'default': 1.0, 'units': 'rpm' }) NCP01.param_data.append({