SEqn.H
Go to the documentation of this file.
1 //Solve the Momentum equation
2 if (solveScalar)
3 {
4  fvScalarMatrix SEqn
5  (
6  fvm::ddt(S)
7  + fvm::div(phi,S)
8  - fvm::laplacian(DT,S)
10  turbulence->nut()/Sct,S
11  )
12  ==
13  fvOptions(S)
14  );
15 
16  SEqn.relax();
17  fvOptions.constrain(SEqn);
18  solve(SEqn);
19  fvOptions.correct(S);
20 }
21 
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
Foam::fvc::laplacian
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition: fvcLaplacian.C:45
solve
rhoEqn solve()
Foam::fvScalarMatrix
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:42
turbulence
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
Foam::fvc::ddt
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
Definition: fvcDdt.C:45
fvOptions
fv::options & fvOptions
Definition: setRegionFluidFields.H:16