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