Skip to content

Commit

Permalink
fix memory leaks!
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-engelstad committed Jun 4, 2024
1 parent c388ea2 commit babe9eb
Show file tree
Hide file tree
Showing 4 changed files with 224 additions and 42 deletions.
5 changes: 3 additions & 2 deletions examples/gp_panel_buckling/2_axialGP.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@

# build the axial GP object (which is the main ML object we are testing for this example)
# however it is used inside of the constitutive object so we need to build that too
axialGP = constitutive.AxialGP.from_csv(csv_file=mlb.archived_model_files.axialGP_csv)
axialGP = constitutive.AxialGP.from_csv(csv_file=mlb.axialGP_csv)
panelGP = constitutive.PanelGPs(axialGP=axialGP)

# don't put in any GP models (so using closed-form solutions rn)
con = constitutive.GPBladeStiffenedShellConstitutive(
Expand All @@ -55,7 +56,7 @@
stiffenerPlyFracs=np.array([0.6, 0.4], dtype=dtype),
panelWidth=1.0,
flangeFraction=0.8,
axialGP=axialGP,
panelGPs=panelGP,
)
# Set the KS weight really low so that all failure modes make a
# significant contribution to the failure function derivatives
Expand Down
Loading

0 comments on commit babe9eb

Please sign in to comment.