UEqn.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(rho, U) + fvm::div(phi, U)
8  + MRF.DDt(rho, U)
9  + turbulence->divDevRhoReff(U)
10  ==
11  rho()*g
12  + parcels.SU(U)
13  + fvOptions(rho, U)
14 );
15 fvVectorMatrix& UEqn = tUEqn.ref();
16 
17 UEqn.relax();
18 
19 fvOptions.constrain(UEqn);
20 
21 if (pimple.momentumPredictor())
22 {
23  solve(UEqn == -fvc::grad(p));
24 
25  fvOptions.correct(U);
26  K = 0.5*magSqr(U);
27 }
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
surfaceScalarField & phi
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcGrad.C:52
U
Definition: pEqn.H:83
solve(UEqn==-fvc::grad(p))
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:47
const dictionary & pimple
tmp< fvVectorMatrix > tUEqn(fvm::ddt(rho, U)+fvm::div(phi, U)+MRF.DDt(rho, U)+turbulence->divDevRhoReff(U)==fvOptions(rho, U))
CGAL::Exact_predicates_exact_constructions_kernel K
fv::options & fvOptions
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
Definition: fvcDdt.C:45
IOMRFZoneList & MRF
dimensioned< scalar > magSqr(const dimensioned< Type > &)
const dimensionedVector & g
fvMatrix< vector > fvVectorMatrix
Definition: fvMatricesFwd.H:45
volScalarField & p