UEqnSimpleT.H
Go to the documentation of this file.
1 // Momentum predictor
2 
3 MRF.correctBoundaryVelocity(U);
4 
5 if (hasFvSource_)
6 {
7  daFvSourcePtr_->calcFvSource(fvSource);
8 }
9 
10 tmp<fvVectorMatrix> tUEqn(
11  fvm::div(phi, U)
12  + fvm::Sp(alphaPorosity, U)
13  + MRF.DDt(U)
14  + turbulencePtr_->divDevReff(U)
15  - fvSource
16  - fvOptions(U));
17 fvVectorMatrix& UEqn = tUEqn.ref();
18 
19 UEqn.relax();
20 
21 if (simple.momentumPredictor())
22 {
23  // get the solver performance info such as initial
24  // and final residuals
25  SolverPerformance<vector> solverU = solve(UEqn == -fvc::grad(p));
26 
27  this->primalResidualControl<vector>(solverU, printToScreen, printInterval, "U");
28 
29  fvOptions.correct(U);
30 }
U
U
Definition: pEqnPimpleDyM.H:60
simple
simpleControl & simple
Definition: createRefsRhoSimpleC.H:5
tUEqn
tmp< fvVectorMatrix > tUEqn(fvm::div(phi, U)+fvm::Sp(alphaPorosity, U)+MRF.DDt(U)+turbulencePtr_->divDevReff(U) - fvSource - fvOptions(U))
MRF
IOMRFZoneListDF & MRF
Definition: createRefsRhoSimple.H:18
fvSource
volScalarField & fvSource
Definition: createRefsHeatTransfer.H:7
p
volScalarField & p
Definition: createRefsPimple.H:6
phi
surfaceScalarField & phi
Definition: createRefsPimple.H:8
UEqn
fvVectorMatrix & UEqn
Definition: UEqnSimpleT.H:17
primalResidualControl< vector >
this primalResidualControl< vector >(solverU, printToScreen, printInterval, "U")
solve
pseudoPEqn solve(solverDictP_)
alphaPorosity
volScalarField & alphaPorosity
Definition: createRefsSimple.H:9
solverU
SolverPerformance< vector > solverU
Definition: UEqnRhoSimpleC.H:12