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::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 
18  solve
19  (
20  UEqn()
21  ==
23  (
24  (
27  )*mesh.magSf()
28  )
29  );
30 
31  fvOptions.correct(U);
Foam::fvc::reconstruct
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcReconstruct.C:54
Foam::fvc::snGrad
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition: fvcSnGrad.C:45
ghf
const surfaceScalarField & ghf
Definition: setRegionFluidFields.H:35
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
Foam::fvc::div
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:47
U
U
Definition: pEqn.H:46
UEqn
tmp< fvVectorMatrix > UEqn(fvm::div(phi, U)+MRF.DDt(U)+turbulence->divDevReff(U)==fvOptions(U))
MRF
IOMRFZoneList & MRF
Definition: setRegionFluidFields.H:15
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
rho
rho
Definition: pEqn.H:3
solve
solve(UEqn()==-fvc::grad(p))
turb
compressible::turbulenceModel & turb
Definition: setRegionFluidFields.H:10
p_rgh
volScalarField & p_rgh
Definition: setRegionFluidFields.H:31
fvOptions
fv::options & fvOptions
Definition: setRegionFluidFields.H:16