26 lines
475 B
C
26 lines
475 B
C
// Solve the momentum equation
|
|
|
|
fvVectorMatrix UEqn
|
|
(
|
|
fvm::ddt(U)
|
|
+ fvm::div(phi, U)
|
|
+ turbulence->divDevReff(U)
|
|
);
|
|
|
|
UEqn.relax();
|
|
|
|
if (momentumPredictor)
|
|
{
|
|
solve
|
|
(
|
|
UEqn
|
|
==
|
|
fvc::reconstruct
|
|
(
|
|
(
|
|
fvc::interpolate(rhok)*(g & mesh.Sf())
|
|
- fvc::snGrad(p)*mesh.magSf()
|
|
)
|
|
)
|
|
);
|
|
}
|