pFinal for pisoFoam solver
Could somebody explain to me what is the pFinal variable that has to be defined in fvSolution when using pisoFoam?
Thanks in advance!
That is the same like p, but pFinal you use in the final iteration for pressure solving
if (corr == nCorr-1 && nonOrth == nNonOrthCorr) // this is final iteration
pEqn.solve(mesh.solver(p.name() + "Final"));
Hope this helps,
I think the basic idea behind pFinal is to have an accurate solution at the end of time step without spending to much time in solving the pressure field for the iterations before. So you can tighter your tolerance for the pressure solver in the pFinal solver settings. This will result in more iterations for the last pressure iteration but in a more accurate solution at the end of time step (which is finally the important result).
Thank you guys for your answers!
|All times are GMT -4. The time now is 03:14.|