RCAIDE.Library.Plots.Mass_Properties.plot_weight_breakdown
plot_weight_breakdown#
- plot_weight_breakdown(vehicle, save_figure=False, show_figure=True, show_legend=True, save_filename='Weight_Breakdown', aircraft_name=None, file_type='.png', width=10, height=7.2)[source]#
Creates an interactive sunburst visualization of aircraft weight breakdown.
- Parameters:
vehicle (Vehicle) –
RCAIDE vehicle data structure containing mass_properties.weight_breakdown with the following standard structure:
empty: propulsion: total, engines, thrust_reversers, miscellaneous, fuel_system, fuel_tanks, electrical_cabling, thermal_management, battery, motors structural: total, wings, fuselage (or center_body + aft_center_body for BWB), empennage, landing_gear, nacelle, booms, paint systems: total, control_systems, apu, electrical, avionics, hydraulics, furnishings, air_conditioner, instruments payload: total, passengers, baggage, cargo operational_items: total, misc, flight_crew, flight_attendants, passenger_service empty.total, zero_fuel_weight, max_takeoff
save_figure (bool, optional) – Flag for saving the figure (default: False)
show_figure (bool, optional) – Flag to display interactive plot (default: True)
show_legend (bool, optional) – Flag to display weight legend (default: True)
save_filename (str, optional) – Name of file for saved figure (default: “Weight_Breakdown”)
aircraft_name (str, optional) – Name to display in plot title (default: None)
file_type (str, optional) – File extension for saved figure (default: “.png”)
width (float, optional) – Figure width in inches (default: 10)
height (float, optional) – Figure height in inches (default: 7.2)
- Returns:
fig – Interactive sunburst chart of the weight hierarchy.
- Return type:
plotly.graph_objects.Figure
See also
RCAIDE.Library.Analysis.WeightsWeight analysis tools