RCAIDE.Library.Plots.Mass_Properties.plot_moment_of_intertia_drift

plot_moment_of_intertia_drift#

plot_moment_of_intertia_drift(results, save_figure=False, show_legend=True, save_filename='Moment_of_Inertia', file_type='.png', width=11, height=7)[source]#

Creates a four-panel plot showing throttle settings, vehicle weight, specific fuel consumption (SFC), and fuel consumption rate over time.

Parameters:
  • results (Results) – RCAIDE results structure containing segment data

  • save_figure (bool, optional) – Flag for saving the figure (default: False)

  • show_legend (bool, optional) – Flag for displaying plot legend (default: True)

  • save_filename (str, optional) – Name of file for saved figure (default: “Moment_of_Inertia”)

  • file_type (str, optional) – File extension for saved figure (default: “.png”)

  • width (float, optional) – Figure width in inches (default: 11)

  • height (float, optional) – Figure height in inches (default: 7)

Returns:

fig – Figure handle containing the generated plots

Return type:

matplotlib.figure.Figure

Notes

The function creates a 2x2 subplot containing:
  1. I_xx vs time

  2. I_yy vs time

  3. I_zz vs time

Each segment is plotted with a different color from the inferno colormap.