RCAIDE.Library.Plots.Weights.plot_weight_breakdown
plot_weight_breakdown#
- plot_weight_breakdown(vehicle, save_figure=False, show_figure=True, show_legend=True, SI_Units=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:
- weight_breakdownData
- Hierarchical weight data with structure:
- zero_fuel_weightfloat
Aircraft weight without fuel
- max_takeofffloat
Maximum takeoff weight
- systemsData
- System weights containing:
- totalfloat
Total systems weight
- [system_name]float/Data
Individual system weights/subcomponents
- fuelfloat
Total fuel weight
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)
SI_Units (bool, optional) – If True, display weights in kg If False, display weights in lbs (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 – Handle to the generated figure containing:
- Return type:
plotly.graph_objects.Figure
Notes
- Creates visualization showing:
Hierarchical weight breakdown
Weight percentages
Multi-level weight relationships
Interactive exploration
- Major Assumptions
All weights are positive
Hierarchy is properly structured
No duplicate component names
Subcomponent weights sum to totals
Definitions
- ‘Weight Breakdown’
Hierarchical decomposition of vehicle mass
- ‘Weight Fraction’
Component weight divided by total weight
- ‘Zero Fuel Weight’
Aircraft weight excluding fuel
- ‘Maximum Takeoff Weight’
Maximum allowable total weight
See also
RCAIDE.Library.Analysis.Weights
Weight analysis tools