Skip to content

Commit f3de9ae

Browse files
committed
Use atan 2
1 parent 3bd81e3 commit f3de9ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/panel.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ function calculate_relative_alpha_and_relative_velocity(
270270
relative_velocity = panel.va .+ induced_velocity
271271
v_normal = dot(panel.z_airf, relative_velocity)
272272
v_tangential = dot(panel.x_airf, relative_velocity)
273-
alpha = atan(v_normal / v_tangential)
273+
alpha = atan(v_normal, v_tangential)
274274

275275
return alpha, relative_velocity
276276
end
@@ -354,7 +354,7 @@ function calculate_relative_alpha_and_velocity(panel::Panel, induced_velocity)
354354
relative_velocity = panel.va + induced_velocity
355355
v_normal = dot(panel.z_airf, relative_velocity)
356356
v_tangential = dot(panel.x_airf, relative_velocity)
357-
alpha = atan(v_normal / v_tangential)
357+
alpha = atan(v_normal, v_tangential)
358358
return alpha, relative_velocity
359359
end
360360

0 commit comments

Comments
 (0)