BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / applications / solvers / combustion / reactingFoam / pEqn.H
blobbef433d388f709f892ba72b5248951353f7702fd
1 rho = thermo.rho();
3 volScalarField rAU(1.0/UEqn.A());
4 U = rAU*UEqn.H();
6 if (pimple.transonic())
8     surfaceScalarField phid
9     (
10         "phid",
11         fvc::interpolate(psi)
12        *(
13             (fvc::interpolate(U) & mesh.Sf())
14           + fvc::ddtPhiCorr(rAU, rho, U, phi)
15         )
16     );
18     for (int nonOrth=0; nonOrth<=pimple.nNonOrthCorr(); nonOrth++)
19     {
20         fvScalarMatrix pEqn
21         (
22             fvm::ddt(psi, p)
23           + fvm::div(phid, p)
24           - fvm::laplacian(rho*rAU, p)
25         );
27         pEqn.solve
28         (
29             mesh.solver(p.select(pimple.finalInnerIter(corr, nonOrth)))
30         );
32         if (nonOrth == pimple.nNonOrthCorr())
33         {
34             phi == pEqn.flux();
35         }
36     }
38 else
40     phi =
41         fvc::interpolate(rho)
42        *(
43             (fvc::interpolate(U) & mesh.Sf())
44           + fvc::ddtPhiCorr(rAU, rho, U, phi)
45         );
47     for (int nonOrth=0; nonOrth<=pimple.nNonOrthCorr(); nonOrth++)
48     {
49         fvScalarMatrix pEqn
50         (
51             fvm::ddt(psi, p)
52           + fvc::div(phi)
53           - fvm::laplacian(rho*rAU, p)
54         );
56         pEqn.solve
57         (
58             mesh.solver(p.select(pimple.finalInnerIter(corr, nonOrth)))
59         );
61         if (nonOrth == pimple.nNonOrthCorr())
62         {
63             phi += pEqn.flux();
64         }
65     }
68 #include "rhoEqn.H"
69 #include "compressibleContinuityErrs.H"
71 U -= rAU*fvc::grad(p);
72 U.correctBoundaryConditions();
74 DpDt = fvc::DDt(surfaceScalarField("phiU", phi/fvc::interpolate(rho)), p);