20 lines
351 B
C
20 lines
351 B
C
fvVectorMatrix UEqn
|
|
(
|
|
fvm::ddt(U)
|
|
+ fvm::div(phi, U)
|
|
+ turbulence->divDevReff(U)
|
|
);
|
|
|
|
if (ocorr != nOuterCorr - 1)
|
|
{
|
|
UEqn.relax();
|
|
}
|
|
else
|
|
{
|
|
UEqn.relax(mesh.solutionDict().relaxationFactor("UFinal"));
|
|
}
|
|
|
|
if (momentumPredictor)
|
|
{
|
|
solve(UEqn == -fvc::grad(p));
|
|
}
|