CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Reporting bugs for pimple loop in VOF solvers (https://www.cfd-online.com/Forums/openfoam-bugs/172210-reporting-bugs-pimple-loop-vof-solvers.html)

Carlen May 25, 2016 22:37

Reporting bugs for pimple loop in VOF solvers
 
Hi foamers,

I would like to report a bug with regard to the pimple implementation in compressibleInterFoam and similar solvers.
Code:

#include "alphaEqnsSubCycle.H"
            // correct interface on first PIMPLE corrector
            if (pimple.corr() == 1)
            {
                interface.correct();
            }

should be replaced with
Code:

// correct interface on first PIMPLE corrector
            if (pimple.corr() == 1)
            {
                #include "alphaEqnsSubCycle.H"
                interface.correct();
            }

This way the number of iteration for updating interface is consistent with number of iteration for solving alphaEqn. In this case, they are only updated in the first pimple loop. I have tested both implementation that the second one is much much more stable.

Hope this helps.


All times are GMT -4. The time now is 02:47.