UEqnPimpleDyM.H
Go to the documentation of this file.
1 // Solve the Momentum equation
2 
3 MRF.correctBoundaryVelocity(U);
4 
5 tmp<fvVectorMatrix> tUEqn
6 (
7  fvm::ddt(U) + fvm::div(phi, U)
8  + MRF.DDt(U)
9  + turbulence->divDevReff(U)
10  ==
11  fvOptions(U)
12 );
13 fvVectorMatrix& UEqn = tUEqn.ref();
14 
15 UEqn.relax();
16 
17 fvOptions.constrain(UEqn);
18 
19 if (pimple.momentumPredictor())
20 {
21  solve(UEqn == -fvc::grad(p));
22 
23  fvOptions.correct(U);
24 }
tUEqn
tmp< fvVectorMatrix > tUEqn(fvm::ddt(U)+fvm::div(phi, U)+MRF.DDt(U)+turbulence->divDevReff(U)==fvOptions(U))
U
U
Definition: pEqnPimpleDyM.H:60
UEqn
fvVectorMatrix & UEqn
Definition: UEqnPimpleDyM.H:13
MRF
IOMRFZoneListDF & MRF
Definition: createRefsRhoSimple.H:18
turbulence
Info<< "Reading field p\n"<< endl;volScalarField p(IOobject("p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\n"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);label pRefCell=0;scalar pRefValue=0.0;setRefCell(p, pimple.dict(), pRefCell, pRefValue);mesh.setFluxRequired(p.name());singlePhaseTransportModel laminarTransport(U, phi);autoPtr< incompressible::turbulenceModel > turbulence(incompressible::turbulenceModel::New(U, phi, laminarTransport))
p
volScalarField & p
Definition: createRefsPimple.H:6
pimple
pimpleControlDF & pimple
Definition: createRefsPimple.H:5
phi
surfaceScalarField & phi
Definition: createRefsPimple.H:8
solve
pseudoPEqn solve(solverDictP_)