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

Fixed beta derivative conversion #209

Merged
merged 5 commits into from
Mar 25, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions adflow/pyADflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2887,7 +2887,6 @@ def _setAeroProblemData(self, aeroProblem, firstCall=False):

alpha = AP.alpha
beta = AP.beta
beta = AP.beta
mach = AP.mach
machRef = AP.machRef
machGrid = AP.machGrid
Expand Down Expand Up @@ -3596,7 +3595,7 @@ def _processAeroDerivatives(self, dIda, dIdBC):

elif key in self.possibleAeroDVs:
funcsSens[dvName] = dIda[self.possibleAeroDVs[key]]
if key == "alpha":
if key in ["alpha", "beta"]:
funcsSens[dvName] *= numpy.pi / 180.0

elif key in self.possibleBCDvs:
Expand Down
909 changes: 424 additions & 485 deletions tests/reg_tests/refs/adjoint_euler_scalar_jst_tut_wing.json

Large diffs are not rendered by default.

905 changes: 424 additions & 481 deletions tests/reg_tests/refs/adjoint_laminar_tut_wing.json

Large diffs are not rendered by default.

1,275 changes: 599 additions & 676 deletions tests/reg_tests/refs/adjoint_rans_tut_wing.json

Large diffs are not rendered by default.

Loading