Replies: 5 comments 1 reply
|
Hmm, that is very strange. We did not observe such behavior before. When you use 12 cores, did the adjoint convergence stall happen at the first adjoint solution or later solutions? Yes, you can increase ASM to 2. Check here. Also, check the DAFoam website FAQ on how to improve adjoint convergence. |
|
I have re-tested my case, which involves a subsonic turbine. I found that when I switched the solver from DATurboFoam to DARhoSimpleFoam, convergence remains good regardless of the number of cores used. It seems there might be an issue with the preconditioner (PC) constructed by DATurboFoam. Upon examining the eigenvalues during GMRES computation, I noticed that when using DATurboFoam, there are extremely small eigenvalues—even on the order of 1e-6. dafoam/src/adjoint/DAResidual/DAResidualTurboFoam.C Lines 174 to 178 in 2583572 Given this, would it be feasible to improve the PC’s convergence by omitting certain terms of equations under subsonic conditions in a similar manner? |
|
@z-g-h Regarding the 2-level ASM, I believe Petsc has an interface, but due to the limited manpower, we won't be able to implement it in the near future. Regarding the PC for DATurbFoam, yes, we observe that its convergence is less robust than DARhoSimpleFoam. For subsonic flow, I suggest you use DARhoSimpleFoam. But for transonic flow, DATurboFoam should be better. We haven't thoroughly tested the effect of dropping certain terms in the pEqn to improve convergence for subsonic conditions, but that is definitely sth you can try. If you find something, please let us know or submit a pull request. |



Uh oh!
There was an error while loading. Please reload this page.
Dear Professor,
I'm working on a problem using DAFOAM and have encountered an issue with the convergence of the adjoint equation in parallel computations. Specifically, I've observed that as the number of computational cores increases, the convergence performance of the adjoint equation worsens. For instance, with 4 cores, the adjoint equation converges quickly,
but when scaling up to 12 cores, the convergence slows significantly.
This behavior appears to be related to the 1-level ASM preconditioner in PETSc. I'm wondering whether switching to either the GAMG or 2-level ASM preconditioner could help accelerate the convergence of the adjoint equation under multi-core computations. Additionally, if they do prove effective, would it be feasible to implement these preconditioners for adjoint equation solver within PETSc ?
Thanks,
Genghui Zhu
All reactions