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