UEqn.H
Go to the documentation of this file.
1 // Solve the Momentum equation
2 
3 MRF.correctBoundaryVelocity(U);
4 
5 tmp<fvVectorMatrix> UEqn
6 (
7  fvm::ddt(rho, U) + fvm::div(phi, U)
8  + MRF.DDt(rho, U)
9  + turbulence->divDevRhoReff(U)
10  ==
11  rho.dimensionedInternalField()*g
12  + parcels.SU(U)
13  + fvOptions(rho, U)
14 );
15 
16 UEqn().relax();
17 
18 fvOptions.constrain(UEqn());
19 
20 if (pimple.momentumPredictor())
21 {
22  solve(UEqn() == -fvc::grad(p));
23 
24  fvOptions.correct(U);
25  K = 0.5*magSqr(U);
26 }
CGAL::Exact_predicates_exact_constructions_kernel K
dimensioned< scalar > magSqr(const dimensioned< Type > &)
solve(UEqn()==-fvc::grad(p))
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
Definition: fvcDdt.C:45
const dictionary & pimple
fv::IOoptionList & fvOptions
IOMRFZoneList & MRF
fvVectorMatrix UEqn(fvm::ddt(rho, U)+fvm::div(phi, U)+turbulence->divDevRhoReff(U)==fvOptions(rho, U))
volScalarField & p
Definition: createFields.H:51
surfaceScalarField & phi
const dimensionedVector & g
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:47
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcGrad.C:52
U
Definition: pEqn.H:82