UEqn.H
Go to the documentation of this file.
1  // Solve the Momentum equation
2 
3  MRF.correctBoundaryVelocity(U);
4 
5  UEqn =
6  (
7  fvm::div(phi, U)
8  + MRF.DDt(rho, U)
9  + turb.divDevRhoReff(U)
10  ==
11  fvOptions(rho, U)
12  );
13 
14  UEqn.relax();
15 
16  fvOptions.constrain(UEqn);
17 
19  {
20  solve
21  (
22  UEqn
23  ==
25  (
26  (
29  )*mesh.magSf()
30  )
31  );
32 
33  fvOptions.correct(U);
34  }
Foam::fvc::reconstruct
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcReconstruct.C:56
Foam::fvc::snGrad
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition: fvcSnGrad.C:47
momentumPredictor
const bool momentumPredictor
Definition: readFluidMultiRegionSIMPLEControls.H:6
ghf
const surfaceScalarField & ghf
Definition: setRegionFluidFields.H:18
Foam::fac::div
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Definition: facDiv.C:50
rho
rho
Definition: readInitialConditions.H:88
MRF
IOMRFZoneList & MRF
Definition: setRegionFluidFields.H:22
fvOptions
fv::options & fvOptions
Definition: setRegionFluidFields.H:23
p_rgh
volScalarField & p_rgh
Definition: setRegionFluidFields.H:15
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
U
U
Definition: pEqn.H:72
solve
solve(UEqn==-fvc::grad(p))
UEqn
fvVectorMatrix & UEqn
Definition: UEqn.H:13
turb
compressible::turbulenceModel & turb
Definition: setRegionFluidFields.H:10