15 lines
252 B
C
15 lines
252 B
C
fvVectorMatrix UEqn
|
|
(
|
|
fvm::ddt(rho, U)
|
|
+ fvm::div(phi, U)
|
|
+ turbulence->divDevRhoReff(U)
|
|
==
|
|
rho*g
|
|
);
|
|
|
|
UEqn.relax();
|
|
|
|
if (pimple.momentumPredictor())
|
|
{
|
|
solve(UEqn == -fvc::grad(p));
|
|
}
|