Skip to content

Commit

Permalink
Update sizing constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
A-CGray committed Jan 19, 2025
1 parent 7eb1a4e commit b25dbe9
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions examples/mach_tutorial_wing/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,37 +327,36 @@ def elemCallBack(dvNum, compID, compDescript, elemDescripts, specialDVs, **kwarg

# Add constraints between the DV's on each panel
dvCon = FEAAssembler.createDVConstraint("DVCon")
# Limit the difference in thickness between the panel and stiffener
# -thickDiffMax <= (panelThickness - stiffenerThickness) <= thickDiffMax
# Flange thickness should be no more than 15x skin thickness
dvCon.addConstraint(
conName="thickDiffLimit",
lower=-thickDiffMax,
upper=thickDiffMax,
conName="flangeThicknessMax",
upper=0.0,
dvIndices=[2, 4],
dvWeights=[1.0, -1.0],
dvWeights=[-15.0, 1.0],
)

# Limit the aspect ratio of the stiffener
# stiffenerHeight - (stiffAspectMax * stiffenerThickness) <= 0
# stiffenerHeight - stiffAspectMax * stiffenerThickness <= 0
dvCon.addConstraint(
conName="stiffenerAspectMax",
upper=0.0,
dvIndices=[3, 4],
dvWeights=[1.0, -stiffAspectMax],
)
# stiffenerHeight - (stiffAspectMin * stiffenerThickness) >= 0
# stiffenerHeight - stiffAspectMin * stiffenerThickness >= 0
dvCon.addConstraint(
conName="stiffenerAspectMin",
lower=0.0,
dvIndices=[3, 4],
dvWeights=[1.0, -stiffAspectMin],
)
# Ensure there is space between the stiffeners
# 2*flangeFraction - stiffenerPitch <= 0
# Spacing between stiffeners should be greater than stiffener flange width to avoid overlapping stiffeners
# flangeFraction*stiffenerHeight - stiffenerPitch <= 0
dvCon.addConstraint(
conName="stiffSpacingMin",
upper=0.0,
dvIndices=[3, 2],
dvWeights=[2.0, -1.0],
dvWeights=[1.0, -1.0],
)
constraints.append(dvCon)

Expand Down

0 comments on commit b25dbe9

Please sign in to comment.