CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   pFinal for pisoFoam solver (https://www.cfd-online.com/Forums/openfoam/86106-pfinal-pisofoam-solver.html)

L1011 March 14, 2011 16:13

pFinal for pisoFoam solver
 
Hey foamers!

Could somebody explain to me what is the pFinal variable that has to be defined in fvSolution when using pisoFoam?

Thanks in advance!

L1011

morard March 16, 2011 04:30

Hi L101,

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,

Dejan

stawrogin March 16, 2011 04:57

Hi L101,

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).

Best regards

Stawrogin

L1011 March 16, 2011 11:59

Thank you guys for your answers!


All times are GMT -4. The time now is 21:09.