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