RCAIDE.Library.Plots.Energy.plot_battery_pack_conditions

plot_battery_pack_conditions#

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

Creates a six-panel plot showing various battery pack-level conditions throughout flight.

Parameters:
  • results (Results) – RCAIDE results structure containing segment data and battery pack conditions

  • 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) – Base name of file for saved figure (default: “Battery_Pack_Conditions_”)

  • 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

Return type:

matplotlib.figure.Figure

Notes

The function creates a 3x2 subplot containing:
  1. State of Charge (SOC) vs time

  2. Pack energy vs time

  3. Pack current vs time

  4. Pack power vs time

  5. Pack voltage vs time

  6. Pack temperature vs time

Each segment is plotted with a different color from the inferno colormap. Different battery modules are distinguished by different markers.

Major Assumptions

  • Time is converted from seconds to minutes for plotting

  • Energy is converted to Watt-hours for display

Definitions

‘SOC’

State of Charge - the level of charge of the battery pack relative to its capacity

‘Module Power’

Total electrical power of the battery pack

‘Module Energy’

Cumulative energy stored/discharged by the battery pack