Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pointwise AIM Support + Updates to SSW Turb Case #311

Merged
merged 16 commits into from
Mar 28, 2024

Conversation

sean-engelstad
Copy link
Contributor

@sean-engelstad sean-engelstad commented Mar 18, 2024

  • Added wrapper for pointwiseAIM in caps2fun
  • Write out forward + adjoint residuals in each iteration to the optimization design step txt file (very useful)
  • Updates to SSW Turbulent cases

sean-engelstad and others added 13 commits March 12, 2024 13:55
* stupid simple wing prototype (smdogroup#268)

* Define aero problem and conditions.

* Wing structural model ESP/CAPS

* Update .gitignore

* SSW structural model

Rename wing.udc to wingStuct.udc for clarity.
Completed structural model of SSW in ESP/CAPS.

* SSW aerodynamic model

* Full SSW ESP/CAPS model

* Completed meshing scripts for SSW

* Update 1_panel_thickness.py

* Initial CFD run

* Working oneway sizing optimization

* Update 1_panel_thickness.py

* Update 1_panel_thickness.py

* Initial version of 2_aero_aoa

* Update 2_aero_aoa.py

* Update sizing.txt

* Update ssw-sizing_history.png

* Update _mesh_fun3d.py

* Update 3_geom_twist.py

* Update fun3d.nml

* Update design file naming conventions

* Update 3_geom_twist.py

* Update 4_oml_shape.py

* Formatting

* Update 2_aero_aoa.py

* Update 4_oml_shape.py

* Update SSW branch (smdogroup#275)

* Update esp/caps download (smdogroup#271)

* Update esp/caps download

* Update tar command in unit-test workflow

* Fix ESP124 folder name

* FUN3D clean up: fix logic in shape driver and remove build_morph method in fun3d_model (smdogroup#272)

* Update funtofem_shape_driver.py

* Update fun3d_model.py

Delete redundant build_morph method and add documentation to build method.

* Print out a summary of the driver instance for inspection (smdogroup#273)

* Clean up the model summary

Added methods to print out a summary of the driver set up, including details on the solvers, shape change, mesh change, transfer settings, and comm manager.

Cleaned up the model summary to print more neatly using standard spacings rather than arbitrary tabs.

Small bug fix in `funtofem_shape_driver.py` associated with trying to delete the structural model at the end of the adjoint. Originally implemented to free up memory, but the implementation was attempting to delete an attribute which leads to an Attribute Error.

* Create driver summary methods

* Move print_transfer to _funtofem_driver

Move _print_transfer method to _funtofem_driver so that all drivers can inherit the method. Also changed the generic driver summary in _funtofem_driver.

* Formatting

* Make transfer_settings an attribute of base driver

Add attribute to the base driver class for the transfer_settings, including a check for None. Remove attribution in the shape driver.

* Typo in base driver

* Formatting

* Read in inactive variables from design files (smdogroup#274)

* Root proc check on _setDictOptions for AFLR AIM

* Add ability to read inactive variables from previous designs

---------

Co-authored-by: Sean Engelstad <[email protected]>

* Redefine geometry

Set all twists to default to zero.
Use blend instead of rule.

* Create _2_cfd_only.py

* Update _oneway_sizing to use SNOPT

* Update oneway_aero_driver.py

* Delete naca_wing.csm

* Delete ssw-sizing_history.png

* Update cases to match hpc files

* Add Pointwise meshes

* Update _oneway_sizing.py

* Formatting

* commit ssw 14.0 example

* egads aero mesh example

* prototype ssw finite difference test

* remove reload design file

* update cfl in namelist

* fix steps in namelist

* update panel thickness script

* add FD test for the derivatives

* fix early stopping multi analysis bug

* update ssw 14 fun3d nml

* new aero loads for ssw case

* oneway sizing opt

* updated aerodynamic function fun3d check

* black reformat

* SSW 14.0 Modifications for SNOPT (smdogroup#295)

* Fix opt manager nan exit (smdogroup#284)

* fix bug in optimization manager

* Update optimization_manager.py

* Create a generalized mesh AIM. (smdogroup#286)

* Generalized mesh AIM

* New notation in meshAIM

* Update egads_aim.py

* Update aflr_aim.py

* Formatting

* Update egads_aim.py

* FUNtoFEM read and write unsteady aero loads files (smdogroup#289)

* working unsteady aero loads files

* black reformat

* FUN3D v14.0.2 interface stable release for thermal cases (smdogroup#288)

* fun3d 14.0 fun3d interface changes

* add separate fun3d 14 and 13.0 interfaces

* Update fun3d_14_interface.py name to Fun3d14Interface

* update fun3d 14 interface unittests

* update fun3d model

* black reformat

* update fun3d 14.0 thermal changes

* update fun3d 14 interface with debug statements

* new thermal fun3d test

* add new fun3d thermal interface test

* fun3d 14 thermal interface test complete

* update the fun3d 14 thermal interface test

* update the import statements

* black reformat

* black reformat with psf/black-stable

* Apply suggestions from code review

* undo debug changes

* black reformat

* Rollback test_fun3d_tacs.py to FUN3D 13.6 test

* Update test_fun3d_tacs.py to add fun3d_project_name back in

* black reformat

---------

Co-authored-by: Brian Burke <[email protected]>

* FUN3D 14.0 Coupling Frequency for Coupled Adjoint speedup + Early Stopping Fix (smdogroup#291)

* huge speedup in funtofem fully coupled adjoint solve

* turn hanim off in turbulent beta nml

* working adjoint derivatives and change adjoint_steps

* working early stopping criterion in FUN3D 14.0.2

* add error check for first aero function w early stopping

* input funtofem loose coupling frequency through the fun3d interface (no longer namelist input)

* update nml for turbulent beta

* black reformat + throw error if FUN3D 13.6 uses loose coupling frequency

* Update funtofem/interface/fun3d_interface.py

---------

Co-authored-by: Brian Burke <[email protected]>

* commit ssw 14.0 example

* egads aero mesh example

* prototype ssw finite difference test

* remove reload design file

* update cfl in namelist

* fix steps in namelist

* update panel thickness script

* add FD test for the derivatives

* fix early stopping multi analysis bug

* update ssw 14 fun3d nml

* new aero loads for ssw case

* oneway sizing opt

* updated aerodynamic function fun3d check

* black reformat

---------

Co-authored-by: Brian Burke <[email protected]>

* fix any aerodynamic again

* fix any aerodynamic again

* Fix any aerodynamic function check again (smdogroup#296)

* Fix opt manager nan exit (smdogroup#284)

* fix bug in optimization manager

* Update optimization_manager.py

* Create a generalized mesh AIM. (smdogroup#286)

* Generalized mesh AIM

* New notation in meshAIM

* Update egads_aim.py

* Update aflr_aim.py

* Formatting

* Update egads_aim.py

* FUNtoFEM read and write unsteady aero loads files (smdogroup#289)

* working unsteady aero loads files

* black reformat

* FUN3D v14.0.2 interface stable release for thermal cases (smdogroup#288)

* fun3d 14.0 fun3d interface changes

* add separate fun3d 14 and 13.0 interfaces

* Update fun3d_14_interface.py name to Fun3d14Interface

* update fun3d 14 interface unittests

* update fun3d model

* black reformat

* update fun3d 14.0 thermal changes

* update fun3d 14 interface with debug statements

* new thermal fun3d test

* add new fun3d thermal interface test

* fun3d 14 thermal interface test complete

* update the fun3d 14 thermal interface test

* update the import statements

* black reformat

* black reformat with psf/black-stable

* Apply suggestions from code review

* undo debug changes

* black reformat

* Rollback test_fun3d_tacs.py to FUN3D 13.6 test

* Update test_fun3d_tacs.py to add fun3d_project_name back in

* black reformat

---------

Co-authored-by: Brian Burke <[email protected]>

* FUN3D 14.0 Coupling Frequency for Coupled Adjoint speedup + Early Stopping Fix (smdogroup#291)

* huge speedup in funtofem fully coupled adjoint solve

* turn hanim off in turbulent beta nml

* working adjoint derivatives and change adjoint_steps

* working early stopping criterion in FUN3D 14.0.2

* add error check for first aero function w early stopping

* input funtofem loose coupling frequency through the fun3d interface (no longer namelist input)

* update nml for turbulent beta

* black reformat + throw error if FUN3D 13.6 uses loose coupling frequency

* Update funtofem/interface/fun3d_interface.py

---------

Co-authored-by: Brian Burke <[email protected]>

* commit ssw 14.0 example

* egads aero mesh example

* prototype ssw finite difference test

* remove reload design file

* update cfl in namelist

* fix steps in namelist

* update panel thickness script

* add FD test for the derivatives

* fix early stopping multi analysis bug

* update ssw 14 fun3d nml

* new aero loads for ssw case

* oneway sizing opt

* updated aerodynamic function fun3d check

* black reformat

* fix any aerodynamic again

* fix any aerodynamic again

---------

Co-authored-by: Brian Burke <[email protected]>

* Updated SSW meshes (smdogroup#297)

* Formatting (smdogroup#299)

* update tolerances

* merge ssw geometries

* update aero surf mesh

* update

* geomtry orig

* working mass, adjoint False

* working mass function with no adjoint

* remove ssw-14 folder

* update unittest

* fix unittests?

* fix shape driver

* fix tacs interface unsteady with non adjoint functions

* add fix for case 2 ssw testing

* update case 3 ssw testing

* update example 3

* udpate case 3 _ssw-testing

* change scenario fun3d_project_name back

* update optimal designs

* ssw case 4

* update get variables routine for case 4

* remove TODO statements

* fix snoptimizer syntax

* update the ssw case 4 inviscid

* add test struct shape example

---------

Co-authored-by: Burke, Brian <[email protected]>
Co-authored-by: Brian Burke <[email protected]>
@sean-engelstad sean-engelstad marked this pull request as ready for review March 28, 2024 11:48
@sean-engelstad sean-engelstad requested a review from bburke38 March 28, 2024 11:54
@bburke38 bburke38 merged commit e39e477 into smdogroup:master Mar 28, 2024
6 checks passed
@sean-engelstad sean-engelstad deleted the ssw-turb branch May 6, 2024 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants