Skip to content

Commit 2284849

Browse files
committed
Fix docstrings
1 parent 5dafe5d commit 2284849

4 files changed

Lines changed: 31 additions & 31 deletions

File tree

ext/VortexStepMethodControlPlotsExt.jl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ Plot wing geometry from different viewpoints and optionally save/show plots.
278278
- `save_path`: path for saving the graphic (default: `nothing`)
279279
- `is_save`: boolean value, indicates if the graphic shall be saved (default: `false`)
280280
- `is_show`: boolean value, indicates if the graphic shall be displayed (default: `false`)
281-
- `view_elevation`: initial view elevation angle (default: 15) [°]
282-
- `view_azimuth`: initial view azimuth angle (default: -120) [°]
281+
- `view_elevation`: initial view elevation angle in degrees (default: 15)
282+
- `view_azimuth`: initial view azimuth angle in degrees (default: -120)
283283
- `use_tex`: if the external `pdflatex` command shall be used (default: false)
284284
285285
"""
@@ -505,9 +505,9 @@ Generate polar data for aerodynamic analysis over a range of angles.
505505
506506
# Keyword arguments
507507
- `angle_type`: Type of angle variation ("angle_of_attack" or "side_slip")
508-
- `angle_of_attack`: Initial angle of attack [rad]
509-
- `side_slip`: Initial side slip angle in [rad]
510-
- `v_a`: norm of apparent wind speed [m/s]
508+
- `angle_of_attack`: Initial angle of attack in radians
509+
- `side_slip`: Initial side slip angle in radians
510+
- `v_a`: Norm of apparent wind speed in m/s
511511
512512
# Returns
513513
- Tuple of polar data array and Reynolds number
@@ -530,11 +530,11 @@ Plot polar data comparing different solvers and configurations.
530530
531531
# Keyword arguments
532532
- `literature_path_list`: Optional paths to literature data files
533-
- `angle_range`: Range of angles to analyze [°]
533+
- `angle_range`: Range of angles to analyze in degrees
534534
- `angle_type`: "`angle_of_attack`" or "`side_slip`"; (default: `angle_of_attack`)
535-
- `angle_of_attack:` AoA to be used for plotting the polars (default: 0.0) [rad]
536-
- `side_slip`: side slip angle (default: 0.0) [rad]
537-
- v_a: norm of apparent wind speed (default: 10.0) [m/s]
535+
- `angle_of_attack:` AoA to be used for plotting the polars in radians (default: 0.0)
536+
- `side_slip`: side slip angle in radians (default: 0.0)
537+
- `v_a`: norm of apparent wind speed in m/s (default: 10.0)
538538
- title: plot title
539539
- `data_type`: File extension for saving (default: ".pdf")
540540
- `save_path`: Path to save plots (default: nothing)
@@ -749,8 +749,8 @@ relative to the 2d airfoil or panel chord line.
749749
- `body_aero`: Wing aerodynamics struct
750750
751751
# Keyword arguments
752-
- `alphas`: Range of angle of attack values in radians (default: -5° to 25° in 0.3° steps)
753-
- `delta_tes`: Range of trailing edge angles in radians (default: -5° to 25° in 0.3° steps)
752+
- `alphas`: Range of angle of attack values in radians (default: `deg2rad.(-5:0.3:25)`)
753+
- `delta_tes`: Range of trailing edge angles in radians (default: `deg2rad.(-5:0.3:25)`)
754754
- `is_show`: Whether to display plots (default: true)
755755
- `use_tex`: if the external `pdflatex` command shall be used
756756
"""

ext/VortexStepMethodMakieExt.jl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@ Plot wing geometry from different viewpoints using Makie.
449449
- `save_path`: Path for saving (default: nothing)
450450
- `is_save`: Whether to save (default: false)
451451
- `is_show`: Whether to display (default: false)
452-
- `view_elevation`: View elevation angle [°] (default: 15)
453-
- `view_azimuth`: View azimuth angle [°] (default: -120)
452+
- `view_elevation`: View elevation angle in degrees (default: 15)
453+
- `view_azimuth`: View azimuth angle in degrees (default: -120)
454454
- `use_tex`: Ignored for Makie (default: false)
455455
"""
456456
function VortexStepMethod.plot_geometry(body_aero::BodyAerodynamics, title;
@@ -633,9 +633,9 @@ Generate polar data for aerodynamic analysis over a range of angles.
633633
634634
# Keyword arguments
635635
- `angle_type`: Type of angle variation ("angle_of_attack" or "side_slip")
636-
- `angle_of_attack`: Initial angle of attack [rad]
637-
- `side_slip`: Initial side slip angle [rad]
638-
- `v_a`: norm of apparent wind speed [m/s]
636+
- `angle_of_attack`: Initial angle of attack in radians
637+
- `side_slip`: Initial side slip angle in radians
638+
- `v_a`: Norm of apparent wind speed in m/s
639639
640640
# Returns
641641
- Tuple of polar data array and Reynolds number
@@ -658,11 +658,11 @@ Plot polar data comparing different solvers using Makie.
658658
659659
# Keyword arguments
660660
- `literature_path_list`: Optional paths to literature data files
661-
- `angle_range`: Range of angles [°]
661+
- `angle_range`: Range of angles in degrees
662662
- `angle_type`: "angle_of_attack" or "side_slip" (default: angle_of_attack)
663-
- `angle_of_attack`: AoA [rad] (default: 0.0)
664-
- `side_slip`: Side slip angle [rad] (default: 0.0)
665-
- `v_a`: Wind speed [m/s] (default: 10.0)
663+
- `angle_of_attack`: AoA in radians (default: 0.0)
664+
- `side_slip`: Side slip angle in radians (default: 0.0)
665+
- `v_a`: Wind speed in m/s (default: 10.0)
666666
- `title`: Plot title
667667
- `data_type`: File extension (default: ".png", also supports ".jpeg")
668668
- `save_path`: Path to save (default: nothing)
@@ -851,8 +851,8 @@ Plot polar data (Cl, Cd, Cm) as 3D surfaces using Makie.
851851
- `body_aero`: Wing aerodynamics struct
852852
853853
# Keyword arguments
854-
- `alphas`: Range of AoA values [rad] (default: -5° to 25° in 0.3° steps)
855-
- `delta_tes`: Range of trailing edge angles [rad] (default: -5° to 25° in 0.3° steps)
854+
- `alphas`: Range of AoA values in radians (default: `deg2rad.(-5:0.3:25)`)
855+
- `delta_tes`: Range of trailing edge angles in radians (default: `deg2rad.(-5:0.3:25)`)
856856
- `is_show`: Whether to display (default: true)
857857
- `use_tex`: Ignored for Makie (default: false)
858858
"""
@@ -932,8 +932,8 @@ Create combined multi-panel figure with geometry, polar data, distributions, and
932932
- `side_slip`: Side slip in degrees (default: 0.0)
933933
- `v_a`: Wind speed in m/s (default: 10.0)
934934
- `title`: Overall figure title (default: "Combined Analysis")
935-
- `view_elevation`: Geometry view elevation [°] (default: 15)
936-
- `view_azimuth`: Geometry view azimuth [°] (default: -120)
935+
- `view_elevation`: Geometry view elevation in degrees (default: 15)
936+
- `view_azimuth`: Geometry view azimuth in degrees (default: -120)
937937
- `is_show`: Display figure (default: true)
938938
- `use_tex`: Ignored for Makie (default: false)
939939
- `literature_path_list`: Paths to literature CSV files (default: String[])

src/settings.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Solver configuration, used within [`VSMSettings`](@ref).
6060
- `aerodynamic_model_type`: [`VSM`](@ref Model) or
6161
[`LLT`](@ref Model) (default `VSM`)
6262
- `solver_type`: `"LOOP"` or `"NONLIN"` (default `"LOOP"`)
63-
- `density`: Air density [kg/m³] (default `1.225`)
63+
- `density`: Air density (kg/m^3) (default `1.225`)
6464
- `max_iterations`: Maximum solver iterations (default `1500`)
6565
- `rtol`: Relative tolerance (default `1e-5`)
6666
- `tol_reference_error`: Reference error tolerance
@@ -77,7 +77,7 @@ Solver configuration, used within [`VSMSettings`](@ref).
7777
available (default `true`)
7878
- `core_radius_fraction`: Vortex core radius fraction
7979
(default `1e-20`)
80-
- `mu`: Dynamic viscosity [N·s/m²] (default `1.81e-5`)
80+
- `mu`: Dynamic viscosity (N*s/m^2) (default `1.81e-5`)
8181
- `calc_only_f_and_gamma`: Only output forces and circulation
8282
(default `false`)
8383
- `correct_aoa`: Perform angle of attack correction
@@ -111,7 +111,7 @@ Can be constructed from keyword arguments or loaded from a YAML
111111
file with `VSMSettings(filename)`.
112112
113113
# Fields
114-
- `condition`: [`ConditionSettings`] (wind speed, alpha, beta,
114+
- `condition`: `ConditionSettings` (wind speed, alpha, beta,
115115
yaw rate)
116116
- `wings`: Vector of [`WingSettings`](@ref)
117117
- `solver_settings`: [`SolverSettings`](@ref)

src/solver.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -978,8 +978,8 @@ refinement), with each control angle affecting one unrefined section.
978978
# Keyword Arguments
979979
- `theta_idxs`: Indices in `y` for twist angles (one per unrefined section, default: 1:4)
980980
- `delta_idxs`: Indices in `y` for trailing edge deflections (one per unrefined section, default: nothing)
981-
- `va_idxs`: Indices in `y` for apparent wind velocity [vx, vy, vz] (default: nothing)
982-
- `omega_idxs`: Indices in `y` for angular velocity [ωx, ωy, ωz] (default: nothing)
981+
- `va_idxs`: Indices in `y` for apparent wind velocity components `(vx, vy, vz)` (default: nothing)
982+
- `omega_idxs`: Indices in `y` for angular velocity components `(ωx, ωy, ωz)` (default: nothing)
983983
- `aero_coeffs::Bool`: Return force/moment coefficients instead of dimensional values (default: false)
984984
- `kwargs...`: Additional arguments passed to `solve!`
985985
@@ -994,8 +994,8 @@ Jacobian computation. When the same angles are encountered, geometry deformation
994994
# Returns
995995
- `jac::Matrix{Float64}`: Jacobian matrix (m×n) where m = 6 + n_unrefined_sections, n = length(y)
996996
- `results::Vector{Float64}`: Output vector at operating point
997-
- If `aero_coeffs=false`: [Fx, Fy, Fz, Mx, My, Mz, moment_unrefined_dist...]
998-
- If `aero_coeffs=true`: [CFx, CFy, CFz, CMx, CMy, CMz, cm_unrefined_dist...]
997+
- If `aero_coeffs=false`: `(Fx, Fy, Fz, Mx, My, Mz, moment_unrefined_dist...)`
998+
- If `aero_coeffs=true`: `(CFx, CFy, CFz, CMx, CMy, CMz, cm_unrefined_dist...)`
999999
10001000
# Example
10011001
```julia

0 commit comments

Comments
 (0)