UEqnRhoPimple.H
Go to the documentation of this file.
1 // Solve the Momentum equation
2 
3 if (hasFvSource_)
4 {
5  daFvSourcePtr_->calcFvSource(fvSource);
6 }
7 
8 tmp<fvVectorMatrix> tUEqn(
9  fvm::ddt(rho, U)
10  + fvm::div(phi, U)
11  + turbulencePtr_->divDevRhoReff(U)
12  - fvSource);
13 fvVectorMatrix& UEqn = tUEqn.ref();
14 
15 UEqn.relax();
16 
17 // get the solver performance info such as initial
18 // and final residuals
19 SolverPerformance<vector> solverU = solve(UEqn == -fvc::grad(p));
20 
21 DAUtility::primalResidualControl(solverU, pimplePrintToScreen, "U", daGlobalVarPtr_->primalMaxRes);
22 
23 // bound U
24 DAUtility::boundVar(allOptions, U, pimplePrintToScreen);
25 
26 K = 0.5 * magSqr(U);
tUEqn
tmp< fvVectorMatrix > tUEqn(fvm::ddt(rho, U)+fvm::div(phi, U)+turbulencePtr_->divDevRhoReff(U) - fvSource)
U
volVectorField & U
Definition: createRefsPimpleDyM.H:7
solve
nuTilda1Eqn solve(solverDictNuTilda)
solverU
SolverPerformance< vector > solverU
Definition: UEqnRhoPimple.H:19
K
K
Definition: UEqnRhoPimple.H:26
UEqn
fvVectorMatrix & UEqn
Definition: UEqnRhoPimple.H:13
fvSource
volScalarField & fvSource
Definition: createRefsHeatTransfer.H:7
p
volScalarField & p
Definition: createRefsPimpleDyM.H:6
phi
surfaceScalarField & phi
Definition: createRefsPimpleDyM.H:8
rho
volScalarField & rho
Definition: createRefsRhoPimple.H:8
allOptions
const dictionary & allOptions
Definition: createRefsPimpleDyM.H:14