Skip to content
Snippets Groups Projects
Commit e4cecfcd authored by Henry's avatar Henry Committed by Andrew Heather
Browse files

rhoPimpleDyMFoam/correctPhi.H: Add compressibility term in pcorr equation

parent 60d0c592
Branches
Tags
No related merge requests found
......@@ -46,14 +46,18 @@ if (mesh.changing())
{
fvScalarMatrix pcorrEqn
(
fvm::laplacian(rAUf, pcorr) == fvc::div(phi) - divrhoU
fvm::ddt(psi, pcorr)
+ fvc::div(phi)
- fvm::laplacian(rAUf, pcorr)
==
divrhoU
);
pcorrEqn.solve();
if (pimple.finalNonOrthogonalIter())
{
phi -= pcorrEqn.flux();
phi += pcorrEqn.flux();
}
}
}
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