CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Confused about pEqn (https://www.cfd-online.com/Forums/openfoam-programming-development/146358-confused-about-peqn.html)

xianqiejiao December 26, 2014 02:29

Confused about pEqn
 
Hi everyone,

I am currently doing some work on the caveatingFoam. In which the pEqn is as following:

Code:

fvScalarMatrix pEqn
        (
            fvm::ddt(psi, p)
          - (rhol0 + (psil - psiv)*pSat)*fvc::ddt(alphav) - pSat*fvc::ddt(psi)
          + fvc::div(phiv, rho)
          + fvc::div(phiGradp)
          - fvm::laplacian(rhorAUf, p)
        );

According to the literature (Phd thesis by Fabian), the pEqn should be
Code:

fvm::ddt(psi, p)
          - (rhol0 + (psil - psiv)*pSat)*fvc::ddt(alphav) - pSat*fvc::ddt(psi)
          + fvc::div(phiv, rho)

is you write every term one by one.
so what is the last two terms mean? :
Code:

+ fvc::div(phiGradp)
          - fvm::laplacian(rhorAUf, p)

And I am also confused about the last step in pimple loop:
Code:

if (pimple.finalNonOrthogonalIter())
        {
            phiv += (phiGradp + pEqn.flux())/rhof;
        }

Can anyone give me some hint here? If they are for numerical reasons, where can I find information for them? I didn't see much about this in CFD books I have read. I assume they are very important as I can find the similar term in many other solvers.

Kind regards and Merry Christmas! :D

mg.mithun February 29, 2016 08:36

Hi xianqiejiao,
I hope you would have found answers for this question by now. If so can you please share it in the forum so that it will be useful for people like me who are struggling with similar problems. I appreciate your response

MG


All times are GMT -4. The time now is 22:35.