Skip to content

Commit cb089ea

Browse files
committed
make deform optional
1 parent b9f0b17 commit cb089ea

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

examples/ram_air_kite.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@ using CSV
1111
using DataFrames
1212

1313
PLOT = true
14+
DEFORM = false
1415

1516
# Create wing geometry
1617
wing = KiteWing("data/ram_air_kite_body.obj", "data/ram_air_kite_foil.dat")
1718
body_aero = BodyAerodynamics([wing]; kite_body_origin=wing.center_of_mass)
1819

19-
alpha = [0, 0]
20-
beta = [deg2rad(10), 0]
21-
@time VortexStepMethod.deform!(wing, alpha, beta; width=1.0)
22-
@time VortexStepMethod.init!(body_aero)
20+
if DEFORM
21+
alpha = [deg2rad(10), 0]
22+
beta = [deg2rad(10), 0]
23+
@time VortexStepMethod.deform!(wing, alpha, beta; width=1.0)
24+
@time VortexStepMethod.init!(body_aero)
25+
end
2326

2427
# Create solvers
2528
vsm_solver = Solver(

0 commit comments

Comments
 (0)