Skip to content

Commit be458ec

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

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/filament.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct BoundFilament <: Filament
1919
length::Float64 # Filament length
2020
r0::Vector{Float64} # Vector from x1 to x2
2121

22-
function BoundFilament(x1::Vector{Float64}, x2::Vector{Float64})
22+
function BoundFilament(x1::PosVector, x2::PosVector)
2323
new(x1, x2, norm(x2 - x1), x2 - x1)
2424
end
2525
end
@@ -31,9 +31,9 @@ end
3131
Calculate induced velocity by a bound vortex filament at a point in space.
3232
"""
3333
function velocity_3D_bound_vortex!(
34-
vel::Vector{Float64},
34+
vel::VelVector,
3535
filament::BoundFilament,
36-
XVP::Vector{Float64},
36+
XVP::PosVector,
3737
gamma::Float64,
3838
core_radius_fraction::Float64,
3939
work_vectors::NTuple{10, Vector{Float64}}
@@ -95,9 +95,9 @@ Reference: Rick Damiani et al. "A vortex step method for nonlinear airfoil polar
9595
as implemented in KiteAeroDyn".
9696
"""
9797
function velocity_3D_trailing_vortex!(
98-
vel::Vector{Float64},
98+
vel::VelVector,
9999
filament::BoundFilament,
100-
XVP::Vector{Float64},
100+
XVP::PosVector,
101101
gamma::Float64,
102102
Uinf::Float64,
103103
work_vectors::NTuple{10,Vector{Float64}}
@@ -162,10 +162,10 @@ end
162162
Calculate induced velocity by a semi-infinite trailing vortex filament.
163163
"""
164164
function velocity_3D_trailing_vortex_semiinfinite!(
165-
vel::Vector{Float64},
165+
vel::VelVector,
166166
filament::SemiInfiniteFilament,
167-
Vf::Vector{Float64},
168-
XVP::Vector{Float64},
167+
Vf::VelVector,
168+
XVP::PosVector,
169169
GAMMA::Float64,
170170
Uinf::Float64,
171171
work_vectors::NTuple{10,Vector{Float64}}

0 commit comments

Comments
 (0)