15 lines
344 B
C++
15 lines
344 B
C++
// Time derivative matrix
|
|
fvVectorMatrix ddtUEqn(fvm::ddt(U));
|
|
|
|
// Convection-diffusion matrix
|
|
fvVectorMatrix HUEqn
|
|
(
|
|
fvm::div(phi, U)
|
|
+ turbulence->divDevReff()
|
|
);
|
|
|
|
if (pimple.momentumPredictor())
|
|
{
|
|
// Solve momentum predictor
|
|
solve(relax(ddtUEqn + HUEqn) == -fvc::grad(p));
|
|
}
|