ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / applications / solvers / compressible / sonicFoam / pEqn.H
bloba4311dfd2ea5975ce206395fab72dcbf8486634b
1 rho = thermo.rho();
3 volScalarField rAU(1.0/UEqn.A());
4 U = rAU*UEqn.H();
6 surfaceScalarField phid
8     "phid",
9     fvc::interpolate(psi)
10    *(
11         (fvc::interpolate(U) & mesh.Sf())
12       + fvc::ddtPhiCorr(rAU, rho, U, phi)
13     )
16 for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
18     fvScalarMatrix pEqn
19     (
20         fvm::ddt(psi, p)
21       + fvm::div(phid, p)
22       - fvm::laplacian(rho*rAU, p)
23     );
25     pEqn.solve();
27     if (nonOrth == nNonOrthCorr)
28     {
29         phi = pEqn.flux();
30     }
33 #include "rhoEqn.H"
34 #include "compressibleContinuityErrs.H"
36 U -= rAU*fvc::grad(p);
37 U.correctBoundaryConditions();