14 lines
288 B
C
14 lines
288 B
C
// Solve the momentum equation
|
|
Urel.storePrevIter();
|
|
|
|
fvVectorMatrix UrelEqn
|
|
(
|
|
fvm::div(phi, Urel)
|
|
+ fvm::SuSp(-fvc::div(phi), Urel)
|
|
+ turbulence->divDevRhoReff()
|
|
+ rho*SRF->Su()
|
|
);
|
|
|
|
UrelEqn.relax();
|
|
|
|
solve(UrelEqn == -fvc::grad(p));
|