fastoad.gui.analysis_and_plots module

Defines the analysis and plotting functions for postprocessing

fastoad.gui.analysis_and_plots.wing_geometry_plot(aircraft_file_path: str, name=None, fig=None, *, file_formatter=None) FigureWidget[source]

Returns a figure plot of the top view of the wing. Different designs can be superposed by providing an existing fig. Each design can be provided a name.

Parameters
  • aircraft_file_path – path of data file

  • name – name to give to the trace added to the figure

  • fig – existing figure to which add the plot

  • file_formatter – the formatter that defines the format of data file. If not provided, default format will be assumed.

Returns

wing plot figure

fastoad.gui.analysis_and_plots.aircraft_geometry_plot(aircraft_file_path: str, name=None, fig=None, *, file_formatter=None) FigureWidget[source]

Returns a figure plot of the top view of the wing. Different designs can be superposed by providing an existing fig. Each design can be provided a name.

Parameters
  • aircraft_file_path – path of data file

  • name – name to give to the trace added to the figure

  • fig – existing figure to which add the plot

  • file_formatter – the formatter that defines the format of data file. If not provided, default format will be assumed.

Returns

wing plot figure

fastoad.gui.analysis_and_plots.drag_polar_plot(aircraft_file_path: str, name=None, fig=None, *, file_formatter=None) FigureWidget[source]

Returns a figure plot of the aircraft drag polar. Different designs can be superposed by providing an existing fig. Each design can be provided a name.

Parameters
  • aircraft_file_path – path of data file

  • name – name to give to the trace added to the figure

  • fig – existing figure to which add the plot

  • file_formatter – the formatter that defines the format of data file. If not provided, default format will be assumed.

Returns

wing plot figure

fastoad.gui.analysis_and_plots.mass_breakdown_bar_plot(aircraft_file_path: str, name=None, fig=None, *, file_formatter=None, input_mass_name='data:weight:aircraft:MTOW') FigureWidget[source]

Returns a figure plot of the aircraft mass breakdown using bar plots. Different designs can be superposed by providing an existing fig. Each design can be provided a name.

Parameters
  • aircraft_file_path – path of data file

  • name – name to give to the trace added to the figure

  • fig – existing figure to which add the plot

  • file_formatter – the formatter that defines the format of data file. If not provided, default format will be assumed.

  • input_mass_name – the variable name for the mass input as defined in the mission definition file.

Returns

bar plot figure

fastoad.gui.analysis_and_plots.mass_breakdown_sun_plot(aircraft_file_path: str, *, file_formatter=None, input_mass_name='data:weight:aircraft:MTOW')[source]

Returns a figure sunburst plot of the mass breakdown. On the left a MTOW sunburst and on the right a OWE sunburst. Different designs can be superposed by providing an existing fig. Each design can be provided a name.

Parameters
  • aircraft_file_path – path of data file

  • file_formatter – the formatter that defines the format of data file. If not provided, default format will be assumed.

  • input_mass_name – the variable name for the mass input as defined in the mission definition file.

Returns

sunburst plot figure