2 # include "createTime.H"
3 # include "createMesh.H"
4 # include "createFields_icoFoam.H"
5 # include "initContinuityErrs.H"
7 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
9 Info<< "\nStarting time loop\n" << endl;
11 for (runTime++; !runTime.end(); runTime++)
13 Info<< "Time = " << runTime.timeName() << nl << endl;
15 # include "readPISOControls.H"
16 # include "CourantNo.H"
22 - fvm::laplacian(nu, U)
25 solve(UEqn == -fvc::grad(p));
29 for (int corr=0; corr<nCorr; corr++)
31 volScalarField rUA = 1.0/UEqn.A();
34 phi = (fvc::interpolate(U) & mesh.Sf())
35 + fvc::ddtPhiCorr(rUA, U, phi);
39 for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
43 fvm::laplacian(rUA, p) == fvc::div(phi)
46 pEqn.setReference(pRefCell, pRefValue);
49 if (nonOrth == nNonOrthCorr)
55 # include "continuityErrs.H"
57 U -= rUA*fvc::grad(p);
58 U.correctBoundaryConditions();
63 Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
64 << " ClockTime = " << runTime.elapsedClockTime() << " s"
68 Info<< "End\n" << endl;