-
Notifications
You must be signed in to change notification settings - Fork 914
Fix logic bugs in 2D Actuator Disk preprocessing and Periodic Solver #2694
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
base: develop
Are you sure you want to change the base?
Fix logic bugs in 2D Actuator Disk preprocessing and Periodic Solver #2694
Conversation
- CSU2ASCIIMeshReaderFVM.cpp: Fix uniqueness logic and array indexing in 2D Actuator Disk splitting. - CSolver.cpp: Fix matrix corruption in Periodic Least Squares (replace duplicate r23_b with 0.0). Signed-off-by: shbhmexe <[email protected]>
- CSU2ASCIIMeshReaderFVM.cpp: Fix uniqueness logic and array indexing in 2D Actuator Disk splitting. - CSolver.cpp: Fix matrix corruption in Periodic Least Squares (replace duplicate r23_b with 0.0). Signed-off-by: shbhmexe <[email protected]>
- Restore CSolver.cpp to original state (r23_b changes were incorrect) - Keep CSU2ASCIIMeshReaderFVM.cpp fixes: unique() removal and iEdge->iPoint fix Signed-off-by: shbhmexe <[email protected]>
pcarruscag
left a comment
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.
Do you have before/after results?
No before/after numerical results available as this fixes 2D Actuator Disk code path which has no regression test coverage. The changes are logical corrections: Fix wrong variable iEdge → iPoint in loop |
|
You'll need to add a regression test for this. |
This PR fixes logic bugs in the 2D Actuator Disk surface splitting code in
CSU2ASCIIMeshReaderFVM.cpp:ActDiskPoint_Front[iEdge]toActDiskPoint_Front[iPoint]- was using wrong variable causing incorrect perimeter detectionEdgeBegin[...]toActDiskPoint_Front[...]- was indexing wrong array causing potential segfaultRelated Work
No related PRs or issues.
PR Checklist
pre-commit run --allto format old commits.