Skip to content

Commit 8a2b61d

Browse files
authored
Merge branch 'main' into agent/329-set-va-rotates-the-body-about-the-origin
2 parents 6ecd77a + f8761aa commit 8a2b61d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

test/solver/test_forwarddiff.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,16 @@ relative_error(jac, reference) = maximum(abs.(jac .- reference)) / maximum(abs,
5757
end
5858

5959
@testset "AutoForwardDiff matches AutoFiniteDiff (LOOP, POLAR_MATRICES)" begin
60+
# At this operating point the LOOP solve converges the mid-span
61+
# panels' local alpha to ~6.5-9.1deg and the tip panels' to
62+
# ~14.9-15.0deg. The default 5deg-spaced alpha_range=-5:5:15 puts the
63+
# tip cluster within ulp-scale distance of the 15deg knot on some
64+
# platforms (Windows, Julia 1.12), so AutoForwardDiff and the FD
65+
# reference land on opposite sides of that non-differentiable kink
66+
# and disagree by several percent (#360). Offset the grid so no knot
67+
# is near either cluster (margin >0.8deg here vs <0.04deg before).
6068
ram_wing = ram_air_matrix_wing(; n_panels=8, n_sections=4,
61-
alpha_range=deg2rad.(-5:5:15),
69+
alpha_range=deg2rad.(-2:5:23),
6270
delta_range=deg2rad.(-3:3:3),
6371
)
6472
ram_body = BodyAerodynamics([ram_wing])

0 commit comments

Comments
 (0)