18 lines
361 B
C++
18 lines
361 B
C++
// Solve the momentum equation
|
|
|
|
tmp<fvVectorMatrix> HUEqn
|
|
(
|
|
fvm::div(phi, U)
|
|
+ turbulence->divDevReff()
|
|
);
|
|
|
|
// Get under-relaxation factor
|
|
const scalar UUrf = mesh.solutionDict().equationRelaxationFactor(U.name());
|
|
|
|
// Momentum solution
|
|
solve
|
|
(
|
|
relax(HUEqn(), UUrf)
|
|
==
|
|
-fvc::grad(p)
|
|
);
|