supaero-aircraft-design / FAST-GA

FAST-(OAD)-GA is a framework for performing rapid Overall Aircraft Design for General Aviation Aircraft
GNU General Public License v3.0
30 stars 22 forks source link

Review mass update in mission vector #189

Closed florentLutz closed 2 years ago

florentLutz commented 2 years ago

There might be an issue with the UpdateMass component inside the mission vector. The original code was supposed to fill an array with the mtow, substract the fuel consumed for taxi, T/O and initial climb and substract the fuel consumed at the different point of the mission (keeping in mind that the fuel consumed at the point is only used at the point i+1, so the first mass of the mission is MTOW- m_fuel,taxi - m_fuel,TO - m_fuel,IC).

So if we take MTOW = 100 kg, m_fuel,taxi = 0.1 kg, m_fuel,TO = 0.2 kg, m_fuel,IC = 0.5 kg, and assume a consumption of [1, 2, 3, 4, 5] on 5 point we would expect mass = [99.2, 98.2, 96.2, 93.2, 89.2] but the formula gives back [99.2, 97.2, 94.2, 90.2, 85.2].