Skip to content

Commit

Permalink
fixes a bug with fuselage x locations
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdsharpe committed Feb 14, 2024
1 parent 8835175 commit 1f3b0d4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def generate_fuselage(fuselage: Fuselage, include_main=True) -> str:
if len(fuselage.xsecs) < 2:
raise ValueError("Fuselages must have at least 2 cross sections.")
else:
script += f"""\
SetParmVal( fid, "XLocPercent", "XSec_3", 1.0 ); // Causes all sections to be generated at x/L = 1, so they don't conflict
"""
for i in range(len(fuselage.xsecs) - 1):
script += f"""\
InsertXSec( fid, 3, XS_SUPER_ELLIPSE ); // FuselageXSecs {i} to {i + 1}
Expand Down

0 comments on commit 1f3b0d4

Please sign in to comment.