27 lines
462 B
C
27 lines
462 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
|
||
|
(
|
||
|
(
|
||
|
- ghf*fvc::snGrad(rhok)
|
||
|
- fvc::snGrad(p_rgh)
|
||
|
)*mesh.magSf()
|
||
|
)
|
||
|
);
|
||
|
}
|