11
22"""
3- set_plot_style()
3+ set_plot_style(titel_size=16 )
44
55Set the default style for plots using LaTeX.
6+
7+ # Arguments:
8+ - `titel_size: size of the plot title in points (default: 16)
69"""
710function set_plot_style (titel_size= 16 )
811 rcParams = plt. PyDict (plt. matplotlib." rcParams" )
113116 set_axes_equal!(ax)
114117
115118Set 3D plot axes to equal scale.
119+
120+ # Arguments
121+ - ax: 3D plot axis
116122"""
117123function set_axes_equal! (ax; zoom= 1.8 )
118124 x_lims = ax. get_xlim3d () ./ zoom
@@ -135,11 +141,18 @@ function set_axes_equal!(ax; zoom=1.8)
135141end
136142
137143"""
138- create_geometry_plot(wing_aero, title, view_elevation, view_azimuth)
144+ create_geometry_plot(wing_aero::WingAerodynamics , title, view_elevation, view_azimuth; zoom=1.8 )
139145
140146Create a 3D plot of wing geometry including panels and filaments.
147+
148+ # Arguments
149+ - wing_aero: struct of type WingAerodynamics
150+ - title: plot title
151+ - view_elevation: initial view elevation angle [°]
152+ - view_azimuth: initial view azimuth angle [°]
153+ - zoom: zoom factor (default: 1.8)
141154"""
142- function create_geometry_plot (wing_aero, title, view_elevation, view_azimuth; zoom= 1.8 )
155+ function create_geometry_plot (wing_aero:: WingAerodynamics , title, view_elevation, view_azimuth; zoom= 1.8 )
143156 set_plot_style (28 )
144157
145158 panels = wing_aero. panels
@@ -223,11 +236,27 @@ function create_geometry_plot(wing_aero, title, view_elevation, view_azimuth; zo
223236end
224237
225238"""
226- plot_geometry(wing_aero, title; kwargs...)
239+ plot_geometry(wing_aero::WingAerodynamics, title;
240+ data_type=".pdf", save_path=nothing,
241+ is_save=false, is_show=false,
242+ view_elevation=15, view_azimuth=-120)
227243
228244Plot wing geometry from different viewpoints and optionally save/show plots.
245+
246+ # Arguments:
247+ - wing_aero: struct of type WingAerodynamics
248+ - title: plot title
249+
250+ # Keyword arguments:
251+ - data_type: string with the file type postfix (default: ".pdf")
252+ - save_path: path for saving the graphic (default: `nothing``)- is_save
253+ - is_save: boolean value, indicates if the graphic shall be saved (default: `false`)
254+ - is_show: boolean value, indicates if the graphic shall be displayed (default: `false`)
255+ - view_elevation: initial view elevation angle (default: 15) [°]
256+ - view_azimuth: initial view azimuth angle (default: -120) [°]
257+
229258"""
230- function plot_geometry (wing_aero, title;
259+ function plot_geometry (wing_aero:: WingAerodynamics , title;
231260 data_type= " .pdf" ,
232261 save_path= nothing ,
233262 is_save= false ,
@@ -273,6 +302,8 @@ Plot spanwise distributions of aerodynamic properties.
273302- `y_coordinates_list`: List of spanwise coordinates
274303- `results_list`: List of result dictionaries
275304- `label_list`: List of labels for different results
305+
306+ # Keyword arguments
276307- `title`: Plot title (default: "spanwise_distribution")
277308- `data_type`: File extension for saving (default: ".pdf")
278309- `save_path`: Path to save plots
@@ -437,6 +468,8 @@ Generate polar data for aerodynamic analysis over a range of angles.
437468- `solver`: Aerodynamic solver object
438469- `wing_aero`: Wing aerodynamics object
439470- `angle_range`: Range of angles to analyze
471+
472+ # Keyword arguments
440473- `angle_type`: Type of angle variation ("angle_of_attack" or "side_slip")
441474- `angle_of_attack`: Initial angle of attack in radians
442475- `side_slip`: Initial side slip angle in radians
@@ -536,6 +569,8 @@ Plot polar data comparing different solvers and configurations.
536569- `solver_list`: List of aerodynamic solvers
537570- `wing_aero_list`: List of wing aerodynamics objects
538571- `label_list`: List of labels for each configuration
572+
573+ # Keyword arguments
539574- `literature_path_list`: Optional paths to literature data files
540575- `angle_range`: Range of angles to analyze
541576- Additional keyword arguments for plot customization
0 commit comments