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

Zipper fix and some other modifications #12

Merged
merged 22 commits into from
Oct 4, 2019
Merged

Zipper fix and some other modifications #12

merged 22 commits into from
Oct 4, 2019

Conversation

anilyil
Copy link
Contributor

@anilyil anilyil commented May 23, 2019

Fixed the call order on the reverse zipper integration.
Added area averaged total and static pressure integration.
Bug fix with area integration with overset meshes.
Bunch of additions to .gitignore.
Minor fix in the ANK solver physicality check.
Modified how the restarts are handled with the OpenMDAO states component.
Minor fix for edge case when we are using actuator regions and the previous iteration was partially converged.

The overset adjoint sensitivity accuracy (dCD/dTwist) improves from 2-3 digits to 6-7 digits, based on the DPW4 10 million-cell-case.
…rder fix.

We don't know the reason for the order dependence, but it improves gradient accuracy to expected levels on most cases.
See the zipper mesh bug issue for more info.
Added modifications to om_states_comp so that we dont waste restarts.
Also re-setting ordersConverged variable before each steady state solver call because the value might be low if the previous iteration did not converge past relaxEnd.
Since we actually modify the update vector in some cases, vecGetArrayReadF90 should be replaced with vecGetArrayF90, and the corresponding restore call should be modified similarly.
However, because we have a collective MPI call right after these, the previous implementation was OK and this did not cause any issues.
Modifying these calls anyways to prevent possible errors in the future.
@@ -1014,6 +1014,9 @@ subroutine solveState
! call, "Iter" and "Iter Total" will both display 0.
approxTotalIts = 0

! we need to re-set the orders converged to 16 as it might have been modified in the previous iteration
ordersConverged = 16.0_realType
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this necessary exactly? The ordersConverged gets set unconditionally below anyway.

@anilyil
Copy link
Contributor Author

anilyil commented May 24, 2019

Also added a fix for an edge case, where ANK segfaults with Euler and turbKSP turned on. If we are not doing RANS, ank setup will not try to create the objects for the turbKSP

@eirikurj
Copy link
Contributor

eirikurj commented Aug 7, 2019

Is something here still pending? @anilyil do we need additional reviews, new regression tests for these cost functions?

@anilyil
Copy link
Contributor Author

anilyil commented Aug 7, 2019

@eirikurj @camader Can you verify my changes? I added the area averaged ps and ptot costfunctions to regression tests 16 to 18. I initially used the results from these tests to verify the implementation. I have re-trained the reg tests 16-18, please run them yourselves

@camader
Copy link
Contributor

camader commented Aug 13, 2019

@anilyil did you see/address gaetan's comment?

@anilyil
Copy link
Contributor Author

anilyil commented Aug 13, 2019

Yeah, you can see my reply to him after his comment. I tried to explain the logic behind having that there. It only affects a very small subset of cases where we have an actuator region, and restarting from a partially converged solution.

@camader camader merged commit 4a9be77 into mdolab:master Oct 4, 2019
ewu63 pushed a commit that referenced this pull request May 19, 2020
Zipper fix and some other modifications
@sseraj sseraj mentioned this pull request Mar 20, 2021
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.

4 participants