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