Skip to content
Snippets Groups Projects
Commit 3dc6bb4e authored by andy's avatar andy
Browse files

BUG: Corrected non-ortho correction in pEqn

parent ee38189f
Branches
Tags
No related merge requests found
......@@ -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();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment