RCAIDE.Library.Plots.Energy.plot_battery_cell_conditions

plot_battery_cell_conditions#

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

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

Parameters:
  • results (Results) – RCAIDE results structure containing segment data and battery 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_Cell_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 – Figure handle containing the generated plots

Return type:

matplotlib.figure.Figure

Notes

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

  2. Cell energy vs time

  3. Cell current vs time

  4. Cell power vs time

  5. Cell voltage vs time

  6. Cell temperature vs time

Each segment is plotted with a different color from the inferno colormap. For multiple battery modules, each module is distinguished by different markers.

Definitions

‘SOC’

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

‘Open Circuit Voltage’

The voltage across the battery terminals with no load applied