BUG: Corrected non-ortho correction in pEqn

This commit is contained in:
andy
2011-02-21 10:45:33 +00:00
parent ee38189fcc
commit 3dc6bb4ecd

View File

@ -23,16 +23,21 @@
);
}
fvScalarMatrix DrhoDtEqn
(
fvc::ddt(rho) + psi*correction(fvm::ddt(p))
+ fvc::div(phi)
==
parcels.Srho()
+ massSource.SuTot()
);
for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
{
fvScalarMatrix pEqn
(
fvc::ddt(rho) + psi*correction(fvm::ddt(p))
+ fvc::div(phi)
DrhoDtEqn
- fvm::laplacian(rho*rAU, p)
==
parcels.Srho()
+ massSource.SuTot()
);
pEqn.solve();