Skip to content

Commit a99f412

Browse files
authored
Fix sorting bug (#147)
1 parent af50fe0 commit a99f412

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ SPDX-FileCopyrightText: 2025 Uwe Fechner, Bart van de Lint
33
SPDX-License-Identifier: MPL-2.0
44
-->
55

6+
# v0.6.1 23-02-2026
7+
8+
## Fixed
9+
- Disable VSM auto-sorting of sections (`sort_sections=false`) in all
10+
VortexStepMethod calls. Auto-sorting silently broke the correspondence
11+
between VSM sections and structural point indices / group mappings.
12+
613
# v0.6.0 21-02-2026
714

815
## Changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "SymbolicAWEModels"
22
uuid = "9c9a347c-5289-41db-a9b9-25ccc76c3360"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
authors = ["Bart van de Lint <bart@vandelint.net> and contributors"]
55

66
[deps]

src/system_structure/utilities.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ function reinit!(sys_struct::SystemStructure, set::Settings;
360360
for wing in wings
361361
# Recreate VSM wing from settings
362362
wing.vsm_wing = VortexStepMethod.Wing(set, sys_struct.vsm_set;
363-
prn=false)
363+
prn=false, sort_sections=false)
364364
wing.vsm_aero = VortexStepMethod.BodyAerodynamics([wing.vsm_wing])
365365
wing.vsm_solver = VortexStepMethod.Solver(wing.vsm_aero;
366366
solver_type=VortexStepMethod.NONLIN,

src/system_structure/wing.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ function VSMWing(name, set::Settings,
374374
origin_ref = isnothing(origin) ? nothing : _to_name_ref(origin)
375375

376376
# Create VSM wing, aero, and solver
377-
vsm_wing = VortexStepMethod.Wing(set, vsm_set; prn=false)
377+
vsm_wing = VortexStepMethod.Wing(set, vsm_set; prn=false,
378+
sort_sections=false)
378379
vsm_aero = VortexStepMethod.BodyAerodynamics([vsm_wing])
379380
vsm_solver = VortexStepMethod.Solver(vsm_aero;
380381
solver_type=VortexStepMethod.NONLIN,

src/vsm_refine.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ function update_vsm_wing_from_structure!(wing::VSMWing, points::AbstractVector{P
328328
end
329329
end
330330

331-
refine!(wing.vsm_wing; recompute_mapping=false)
331+
refine!(wing.vsm_wing; recompute_mapping=false, sort_sections=false)
332332
VortexStepMethod.reinit!(wing.vsm_aero)
333333
# Do NOT call reinit! on wing - only modify sections!
334334
# body_aero reinit! will update panels from modified sections (called in update_vsm!)

0 commit comments

Comments
 (0)