UEqn.H
Go to the documentation of this file.
1  // Solve the Momentum equation
2  MRF.correctBoundaryVelocity(U);
3 
4  tmp<fvVectorMatrix> tUEqn
5  (
6  fvm::div(phi, U)
7  + MRF.DDt(rho, U)
8  + turbulence->divDevRhoReff(U)
9  ==
10  fvOptions(rho, U)
11  );
13 
14  UEqn.relax();
15 
16  fvOptions.constrain(UEqn);
17 
18  if (simple.momentumPredictor())
19  {
20  solve(UEqn == -cellMask*fvc::grad(p));
21  }
22 
23  fvOptions.correct(U);
simple
const dictionary & simple
Definition: readFluidMultiRegionSIMPLEControls.H:1
p
volScalarField & p
Definition: createFieldRefs.H:8
turbulence
Info<< "Reading field U\n"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar("pos", dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar("neg", dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\n"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
Definition: createFields.H:94
Foam::fac::grad
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Definition: facGrad.C:56
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
Foam::fvVectorMatrix
fvMatrix< vector > fvVectorMatrix
Definition: fvMatricesFwd.H:47
tUEqn
tmp< fvVectorMatrix > tUEqn(fvm::ddt(rho, U)+fvm::div(phi, U)+MRF.DDt(rho, U)+turbulence->divDevRhoReff(U)==fvOptions(rho, U))
fvOptions
fv::options & fvOptions
Definition: setRegionFluidFields.H:23
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
U
U
Definition: pEqn.H:72
solve
solve(UEqn==-fvc::grad(p))
UEqn
fvVectorMatrix & UEqn
Definition: UEqn.H:13