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