Tutorial 13 - Plot Mission#

Welcome to this tutorial outlining the Plot Mission process in RCAIDE. This guide will walk you through the code, explain its components, and highlight where modifications can be made to customize the simulation for different vehicle designs. It is part of the Optimize tutorial.


Header and Imports#

The Imports section is for this tutorial consists of the RCAIDE.Library.Plots libraryand the RCAIDE.Framework.Core.Units functions.


[1]:
# Created:  May 2015, E. Botero
from RCAIDE.Library.Plots  import *
from RCAIDE.Framework.Core  import Units
Matplotlib created a temporary cache directory at /var/folders/r4/4h9x29hj6f95kyhjsltxc6_00000gn/T/matplotlib-b9r5pcbn because the default path (/Users/aidanmolloy/.matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
Fontconfig warning: ignoring UTF-8: not a valid region tag
Matplotlib is building the font cache; this may take a moment.

Plot Mission#

The plot mission section consists of three different types of plots: aerodynamic coefficients, drag, and various fuel consumption plots. More information on the plots can be found in the RCAIDE documentation.


[2]:
def plot_mission(nexus):

    results   = nexus.results.base

    # Plot Aerodynamic Coefficients
    plot_aerodynamic_coefficients(results)

    # Drag Components
    plot_drag_components(results)

    # Plot Altitude, sfc, vehicle weight
    plot_altitude_sfc_weight(results)

    return