Skip to content

Reorganize and add new examples#383

Open
bburke38 wants to merge 16 commits into
smdogroup:masterfrom
bburke38:new-examples
Open

Reorganize and add new examples#383
bburke38 wants to merge 16 commits into
smdogroup:masterfrom
bburke38:new-examples

Conversation

@bburke38

@bburke38 bburke38 commented May 14, 2026

Copy link
Copy Markdown
Contributor

Reorganize fun3d_examples/ by geometry group

Restructures examples/fun3d_examples/ from a flat list of mixed-quality examples into a clean, geometry-grouped directory tree. No FUNtoFEM library code is changed — all modifications are within examples/.

What changed

Archive — four examples moved to archive/ rather than deleted:

  • ate_wedge_optimization/ — uses deprecated APIs (MassoudBody, old FUNtoFEMnlbgs constructor, PyOptOptimization)
  • pyopt_togw_optimization/ — same deprecated APIs
  • diamond_unsteady/ — incomplete stub, no mesh
  • sst_unsteady/ — incomplete stub, no mesh

SSW group — three examples reorganized under ssw/:

  • _ssw-inviscid/ssw/aeroelastic_optimization/ (renamed, draft language removed from README)
  • ssw_meshdef_optimization/ssw/ssw_meshdef_optimization/
  • ssw_remesh_optimization/ssw/ssw_remesh_optimization/
  • Added ssw/README.md with geometry description, flight conditions table, and model visualization

SST group — new sst/ geometry group:

  • Results images and group-level README at sst/
  • New sst/sst_optimization/ — complete multi-step aerothermoelastic optimization workflow adapted from the research case, with all path references updated (meshes/cfd/, geometry/, struct/, design/)

Diamond group — new diamond/ geometry group:

  • diamond/wedge_optimization/ — modernized version of ate_wedge_optimization using the current FUNtoFEM API (TacsSteadyInterface.create_from_bdf, FUNtoFEMnlbgs, OptimizationManager); also fixes dtype=np.intdtype=np.int64 for NumPy 1.24+ compatibility

Top-level README — rewritten with geometry-group headings (SSW, SST, Diamond, Archive) and accurate descriptions of all active examples.

bburke38 added 10 commits May 14, 2026 16:12
- Rename _ssw-inviscid/ -> ssw/aeroelastic_optimization/ and remove draft language from README
- Move ssw_meshdef_optimization/ -> ssw/ssw_meshdef_optimization/
- Move ssw_remesh_optimization/ -> ssw/ssw_remesh_optimization/
- Move sst_optimization/results/ and README -> sst/ (group-level)
- Add sst/sst_optimization/ with 10 adapted scripts from f2f-cases/sst/
  updating all path references (meshes/ -> cfd/, geometry/, struct/, design/)
- Add sst/sst_optimization/README.md with flight conditions and workflow
…ptimization

- Rewrite ate_wedge_optimization using current FUNtoFEM API:
  Body.aerothermoelastic, Variable.structural, Scenario.steady,
  TacsSteadyInterface.create_from_bdf, FUNtoFEMnlbgs, OptimizationManager
- Fix gen_TACS_bdf_aero.py: write to struct/, np.int -> np.int64
- Add README with geometry description and CFD mesh generation guidance
@bburke38 bburke38 requested a review from sean-engelstad May 14, 2026 21:06
@bburke38 bburke38 marked this pull request as ready for review May 14, 2026 21:13
@bburke38 bburke38 added the documentation Improvements or additions to documentation label May 14, 2026
@bburke38 bburke38 self-assigned this May 14, 2026
@bburke38

Copy link
Copy Markdown
Contributor Author

Tested the ssw/aeroelastic_optimization/test_fun3d_tacs.py script which calls a forward and adjoint solve, this ran successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant