RCAIDE.Library.Plots.Aerodynamics.plot_rotor_conditions
plot_rotor_conditions#
- plot_rotor_conditions(results, save_figure=False, show_legend=True, save_filename='Rotor_Conditions', file_type='.png', width=11, height=7)[source]#
Generate plots of key rotor operating conditions over time.
- Parameters:
results (Data) –
- Mission results data structure containing:
results.segments[0].analyses.energy.vehicle.networks
save_figure (bool, optional) – Save figure to file if True, default False
show_legend (bool, optional) – Display segment legend if True, default True
save_filename (str, optional) – Name for saved figure file, default “Rotor_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
- Creates a 2x2 subplot figure showing:
Top left: RPM vs time (minutes)
Top right: Rotor tilt angle (degrees) vs time
Bottom left: Thrust (N) vs time
Bottom right: Torque (N-m) vs time
Each mission segment uses a different color from the inferno colormap. Multiple rotors are distinguished by different markers.
Definitions
- ‘RPM’
Rotor rotational speed in revolutions per minute
- ‘Thrust Vector Angle’
Angle between rotor thrust vector and vertical
See also
RCAIDE.Library.Plots.Common.set_axes
Standardized axis formatting
RCAIDE.Library.Plots.Common.plot_style
RCAIDE plot styling
RCAIDE.Library.Analysis.Performance.propulsion
Analysis modules
- plot_propulsor_data(results, propulsor, axis_1, axis_2, axis_3, axis_4, axis_5, axis_6, line_colors, ps, p_i)[source]#
Plot operating conditions data for a single propulsor across mission segments.
- Parameters:
results (Data) –
- Mission results data structure containing:
- results.segments[i].conditions with fields:
energy[propulsor_tag][thrustor_tag].rpm
energy[propulsor_tag][thrustor_tag].thrust
energy[propulsor_tag][thrustor_tag].torque
energy[propulsor_tag].commanded_thrust_vector_angle
frames.inertial.time
propulsor (Data) –
- Propulsor data structure containing:
- tagstr
Identifier for the propulsor
- rotor/propellerData
Thrustor component data
axis_1 (matplotlib.axes.Axes) – Axis for RPM plot
axis_2 (matplotlib.axes.Axes) – Axis for rotor angle plot
axis_3 (matplotlib.axes.Axes) – Axis for thrust plot
axis_4 (matplotlib.axes.Axes) – Axis for torque plot
line_colors (array) – Array of RGB colors for different segments
ps (Data) –
- Plot style data structure with fields:
- markerslist
Marker styles for different propulsors
- line_widthfloat
Width for plot lines
p_i (int) – Index of current propulsor for marker selection
- Return type:
None
Notes
Helper function for plot_rotor_conditions that handles plotting data for a single propulsor (rotor or propeller) across all mission segments.
- The function:
Identifies thrustor type (rotor vs propeller)
Extracts time histories for each segment
Plots RPM, angle, thrust, and torque vs time
Applies consistent styling
Adds legend for first segment only
Converts units as needed (time to minutes, angles to degrees)
See also
RCAIDE.Library.Plots.Aerodynamics.plot_rotor_conditions
Main plotting function