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