23 lines
441 B
C
23 lines
441 B
C
// Solve the Momentum equation
|
|
tmp<fvVectorMatrix> UEqn
|
|
(
|
|
fvm::ddt(rho, U)
|
|
+ fvm::div(phi, U)
|
|
+ turb.divDevRhoReff(U)
|
|
);
|
|
|
|
UEqn().relax();
|
|
|
|
if (momentumPredictor)
|
|
{
|
|
solve
|
|
(
|
|
UEqn()
|
|
==
|
|
fvc::reconstruct
|
|
(
|
|
fvc::interpolate(rho)*(g & mesh.Sf())
|
|
- fvc::snGrad(p)*mesh.magSf()
|
|
)
|
|
);
|
|
}
|