16 lines
296 B
C
16 lines
296 B
C
// Solve the momentum equation
|
|
|
|
tmp<fvVectorMatrix> UEqn
|
|
(
|
|
fvm::div(phi, U)
|
|
+ turbulence->divDevReff(U)
|
|
);
|
|
|
|
UEqn().relax();
|
|
|
|
eqnResidual = solve
|
|
(
|
|
UEqn() == -fvc::grad(p)
|
|
).initialResidual();
|
|
|
|
maxResidual = max(eqnResidual, maxResidual);
|