Skip to content

Commit

Permalink
refactor(vnav): adjust tables to match engines.cfg
Browse files Browse the repository at this point in the history
adjust values

adjust params

update(vnav): fine tuning of dragCoeffFactor

correct value

fine tune param

fine tune params
  • Loading branch information
Revyn112 committed Dec 4, 2024
1 parent b7f45d5 commit cdb21f8
Show file tree
Hide file tree
Showing 3 changed files with 312 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ThrustSpecificFuelConsumption = 0.0 ;0.4
AfterBurnThrustSpecificFuelConsumption = 0.0 ;0.011
mach_0_corrected_commanded_ne_table = 0:1.000000:1.201723:1.453784:2.175007:3.364756:4.472461:5.415178,0.000000:68.200000:69.402657:70.671269:73.432244:76.544349:78.644882:78.644882,0.100000:76.000000:77.340205:78.753906:81.830654:85.298688:87.639458:87.639458,0.200000:83.000000:84.463645:86.007556:89.367688:93.155146:95.711513:95.711513,0.400000:92.800000:94.436461:96.162664:99.919535:104.154188:107.012390:107.012390,0.600000:98.000000:99.728159:101.551090:105.518475:109.990414:113.008774:113.008774,0.750000:101.500000:103.289879:105.177914:109.286991:113.918643:117.044802:117.044802,0.900000:103.000000:104.816330:106.000000:110.902070:115.602170:118.774528:118.774528,1.000000:104.200000:106.037491:107.975750:112.194133:116.948991:120.158309:120.158309
mach_hi_corrected_commanded_ne_table = 0.9:1.000000:1.201723:1.453784:2.175007:3.364756:4.472461:5.415178,0.000000:63.267593:64.383271:65.560133:68.121427:71.008456:72.957073:72.957073,0.100000:70.503476:71.746753:73.058212:75.912441:79.129658:81.301137:81.301137,0.200000:76.997217:78.355007:79.787258:82.904376:86.417916:88.789399:88.789399,0.400000:86.088455:87.606562:89.207922:92.693086:96.621477:99.272967:99.272967,0.600000:90.912377:92.515550:94.206642:97.887095:102.035612:104.835676:104.835676,0.750000:94.159247:95.819677:97.571165:101.383063:105.679741:108.579808:108.579808,0.900000:95.550763:97.235732:98.333795:102.881334:107.241510:110.184435:110.184435,1.000000:104.200000:106.037491:107.975750:112.194133:116.948991:120.158309:120.158309
corrected_n2_from_ff_table = 0.000184:23.000000,0.024779:68.000000,0.091044:72.416667,0.145297:76.533333,0.189716:80.650000,0.226083:84.766667,0.255858:88.883333,0.280236:93.000000,0.286689:104.000000,0.331858:116.500000
corrected_n2_from_ff_table = 0.000184:23.000000,0.024779:68.200000,0.280000:74.500000,0.360000:79.000000,0.410858:83.500000,0.438000:87.000000,0.449000:90.000000,0.454000:93.000000,0.482000:100.000000,0.490000:116.500000
n1_and_mach_on_thrust_table=0.000000:0.000000:0.100000:0.200000:0.300000:0.400000:0.500000:0.600000:0.700000:0.800000:0.900000,0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,20.000000:0.080273:0.050660:0.054029:0.034096:-0.067284:-0.007284:0.032923:-0.025841:-0.055399:-0.228717,25.000000:0.132910:0.091802:0.094901:0.040404:-0.059593:0.003429:0.065444:0.028672:-0.006204:-0.179028,30.000000:0.182715:0.128642:0.133300:0.046748:-0.032611:0.033990:0.063079:0.123186:0.178054:-0.109391,35.000000:0.255971:0.196661:0.202831:0.065921:-0.025281:0.036062:0.087188:0.157200:0.190280:-0.033631,40.000000:0.326378:0.259090:0.284088:0.089579:0.007905:0.079621:0.119790:0.234284:0.314218:0.039370,45.000000:0.393280:0.370036:0.316707:0.132419:0.041418:0.106757:0.146090:0.198509:0.202480:0.104880,50.000000:0.452337:0.431066:0.371353:0.178174:0.077429:0.134915:0.171171:0.227419:0.252601:0.161526,55.000000:0.509468:0.493568:0.429961:0.229106:0.118650:0.167223:0.198383:0.255660:0.288704:0.210531,60.000000:0.594614:0.559955:0.494629:0.287477:0.167773:0.206899:0.231404:0.287148:0.324556:0.254964,65.000000:0.660035:0.632604:0.567151:0.355055:0.226928:0.256669:0.273627:0.325850:0.364441:0.299012,70.000000:0.733601:0.713506:0.648571:0.432623:0.297163:0.318210:0.327559:0.375142:0.412485:0.347269,75.000000:0.818693:0.803880:0.738756:0.519514:0.377939:0.391604:0.394241:0.437197:0.472005:0.404042,80.000000:0.910344:0.903795:0.835982:0.613166:0.466644:0.474822:0.472689:0.512384:0.544867:0.472679,85.000000:1.025165:1.011823:0.936548:0.708692:0.558128:0.563210:0.559351:0.598690:0.630870:0.554907,90.000000:1.157049:1.124695:1.034400:0.798466:0.644251:0.649011:0.647581:0.691153:0.727149:0.650203,95.000000:1.281333:1.236993:1.120774:0.871733:0.713455:0.720890:0.727136:0.781322:0.827588:0.755167,100.000000:1.357935:1.340844:1.183864:0.914234:0.750352:0.763488:0.783684:0.834691:0.877963:0.799115,105.000000:1.378826:1.359626:1.208498:0.935750:0.769609:0.781137:0.800375:0.850444:0.892832:0.812086,110.000000:1.392754:1.372148:1.229322:0.953937:0.785886:0.796054:0.814483:0.863759:0.905400:0.823051
n2_to_n1_table = 0.000000:0.000000:0.200000:0.900000,18.200000:0.000000:0.000000:17.000000,22.000000:1.900000:1.900000:17.400000,26.000000:2.500000:2.500000:18.200000,57.000000:12.800000:12.800000:27.000000,68.200000:19.600000:19.600000:34.827774,77.000000:26.000000:26.000000:40.839552,83.000000:31.420240:31.420240:44.768766,89.000000:40.972041:40.972041:50.092140,92.800000:51.000000:51.000000:55.042000,97.000000:65.000000:65.000000:65.000000,100.000000:77.000000:77.000000:77.000000,104.000000:85.000000:85.000000:85.500000,116.500000:101.000000:101.000000:101.000000
corrected_airflow_table = 0.000000:0.000000:0.100000:0.200000:0.300000:0.400000:0.500000:0.600000:0.700000:0.800000:0.900000,0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,20.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,25.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,30.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,35.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,40.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,45.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,50.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,55.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,60.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,65.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,70.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,75.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,80.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,85.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,90.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,95.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,100.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,105.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000,110.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000:0.000000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const vnavConfig: VnavConfig = {
ALLOW_DEBUG_PARAMETER_INJECTION: false,
VNAV_USE_LATCHED_DESCENT_MODE: false,
IDLE_N1_MARGIN: 3,
MAXIMUM_FUEL_ESTIMATE: 40000,
MAXIMUM_FUEL_ESTIMATE: 100_000,
};

const flightModelParams: FlightModelParameters = {
Expand All @@ -42,7 +42,7 @@ const flightModelParams: FlightModelParameters = {
dragCoefficientCorrections: [0, 0.0002, 0.0003, 0.0004, 0.0008, 0.0015, 0.01],
speedBrakeDrag: 0.01008,
gearDrag: 0.0372,
dragCoeffFactor: 1,
dragCoeffFactor: 1.3,
};

const engineModelParams: EngineModelParameters = {
Expand Down
Loading

0 comments on commit cdb21f8

Please sign in to comment.