13 lines
236 B
C
13 lines
236 B
C
// Solve the momentum equation
|
|
U.storePrevIter();
|
|
|
|
fvVectorMatrix UEqn
|
|
(
|
|
fvm::ddt(rho, U)
|
|
+ fvm::div(phi, U)
|
|
+ turbulence->divDevRhoReff()
|
|
);
|
|
|
|
UEqn.relax();
|
|
|
|
solve(UEqn == -fvc::grad(p));
|