RCAIDE.Library.Plots.Energy.plot_battery_temperature
plot_battery_temperature#
- plot_battery_temperature(results, save_figure=False, show_legend=True, save_filename='Battery_Temperature', file_type='.png', width=11, height=7)[source]#
Creates a three-panel plot showing battery thermal conditions and related parameters throughout flight.
- Parameters:
results (Results) – RCAIDE results structure containing segment data and battery thermal 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) – Name of file for saved figure (default: “Battery_Temperature”)
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 2x2 subplot containing:
Cell temperature vs time
Charge throughput vs time
Heat generation rate vs time
Each segment is plotted with a different color from the inferno colormap. Different battery modules are distinguished by different markers.
Major Assumptions
For identical battery modules, only the first module’s data is plotted
Time is converted from seconds to minutes for plotting
Heat generation rate is converted to kilowatts for display
Definitions
- ‘Charge Throughput’
Cumulative amount of charge that has passed through the battery (Ah)
- ‘Heat Generation Rate’
Rate of thermal energy production in the battery (kW)