15 lines
355 B
C
15 lines
355 B
C
|
// Solve the momentum equation
|
||
|
|
||
|
tmp<fvVectorMatrix> HUrelEqn
|
||
|
(
|
||
|
fvm::div(phi, Urel)
|
||
|
+ turbulence->divDevReff(Urel)
|
||
|
+ SRF->Su()
|
||
|
);
|
||
|
|
||
|
// Get under-relaxation factor
|
||
|
const scalar UUrf = mesh.solutionDict().relaxationFactor(Urel.name());
|
||
|
|
||
|
// Momentum solution
|
||
|
solve(relax(HUrelEqn(), UUrf) == -fvc::grad(p));
|