Skip to content

Commit ce8d684

Browse files
committed
use PosVector and VelVector
1 parent bc68ad9 commit ce8d684

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/panel.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ mutable struct Panel
5050
function Panel(
5151
section_1::Section,
5252
section_2::Section,
53-
aerodynamic_center::Vector{Float64},
54-
control_point::Vector{Float64},
55-
bound_point_1::Vector{Float64},
56-
bound_point_2::Vector{Float64},
53+
aerodynamic_center::PosVector,
54+
control_point::PosVector,
55+
bound_point_1::PosVector,
56+
bound_point_2::PosVector,
5757
x_airf::Vector{Float64},
5858
y_airf::Vector{Float64},
5959
z_airf::Vector{Float64}
@@ -352,10 +352,10 @@ Calculate the velocity induced by a vortex ring at a control point.
352352
"""
353353
function calculate_velocity_induced_single_ring_semiinfinite(
354354
panel::Panel,
355-
evaluation_point::Vector{Float64},
355+
evaluation_point::PosVector,
356356
evaluation_point_on_bound::Bool,
357357
va_norm::Float64,
358-
va_unit::Vector{Float64},
358+
va_unit::VelVector,
359359
gamma::Float64,
360360
core_radius_fraction::Float64,
361361
work_vectors::NTuple{10,Vector{Float64}}
@@ -421,7 +421,7 @@ Only needed for VSM, as LLT bound and filament align, thus no induced velocity.
421421
"""
422422
function calculate_velocity_induced_bound_2D(
423423
panel::Panel,
424-
evaluation_point::Vector{Float64}
424+
evaluation_point::PosVector
425425
)
426426
# r3 perpendicular to the bound vortex
427427
r3 = evaluation_point - (panel.bound_point_1 + panel.bound_point_2) / 2

src/wing_geometry.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ mutable struct Wing
6262
end
6363

6464
"""
65-
add_section!(wing::Wing, LE_point::Vector{Float64},
66-
TE_point::Vector{Float64}, aero_input::Vector{Any})
65+
add_section!(wing::Wing, LE_point::PosVector,
66+
TE_point::PosVector, aero_input::Vector{Any})
6767
6868
Add a new section to the wing.
6969
"""

0 commit comments

Comments
 (0)