-
Notifications
You must be signed in to change notification settings - Fork 99
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
Conversation
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.
Still needs to be validated
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.
Minor additions to .gitignore.
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 |
There was a problem hiding this comment.
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.
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 |
Is something here still pending? @anilyil do we need additional reviews, new regression tests for these cost functions? |
@anilyil did you see/address gaetan's comment? |
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. |
Zipper fix and some other modifications
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.