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

Add ability to animate shape variables to a gif in caps2tacs #267

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

sean-engelstad
Copy link
Contributor

@sean-engelstad sean-engelstad commented Oct 30, 2023

  • New routine tacs_model.animate_shape_variables can be used to help make gif files of a range of structural shape variables.
  • No forward/adjoint analyses need to be run as that would slow down the animation process. Instead, a writeDummySensFile method is included since the tacsAIM postAnalysis expects function and derivative values before creating a new design.
  • These features were successfully tested out on the simple_naca_wing.csm geometry in examples/caps_wing/7_animate_shape_variables.py (a new run script).
  • This is useful in debugging the shape variable design spaces in caps2tacs.

@sean-engelstad sean-engelstad marked this pull request as ready for review October 30, 2023 06:55
@sean-engelstad sean-engelstad changed the title Add ability to animate shape variables to a gif Add ability to animate shape variables to a gif in caps2tacs Oct 30, 2023
@sean-engelstad sean-engelstad added the enhancement New feature or request label Oct 30, 2023
tacs/problems/base.py Outdated Show resolved Hide resolved
@sean-engelstad
Copy link
Contributor Author

  • Just changed it so that only the current shape variable it is changing in the animation method is active, this way the mesh chain rule product is only computed for the current shape variable (much faster for multi-shape variable designs).

@timryanb timryanb self-requested a review October 30, 2023 15:41
@timryanb timryanb merged commit 8cf0f6f into smdogroup:master Oct 30, 2023
5 checks passed
@sean-engelstad sean-engelstad deleted the caps_animate branch November 3, 2023 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants