Rationalized pEqn in sprayFoam solvers

This commit is contained in:
Henry
2015-02-16 21:45:28 +00:00
parent 7132f1380f
commit fb54c54db0
5 changed files with 48 additions and 126 deletions

View File

@ -35,7 +35,7 @@ if (pimple.transonic())
fvm::ddt(psi, p)
+ fvm::div(phid, p)
- fvm::laplacian(rhorAUf, p)
==
==
fvOptions(psi, p, rho.name())
);
@ -62,13 +62,12 @@ else
while (pimple.correctNonOrthogonal())
{
// Pressure corrector
fvScalarMatrix pEqn
(
fvm::ddt(psi, p)
+ fvc::div(phiHbyA)
- fvm::laplacian(rhorAUf, p)
==
==
fvOptions(psi, p, rho.name())
);

View File

@ -36,7 +36,7 @@ if (pimple.transonic())
fvm::ddt(psi, p)
+ fvm::div(phid, p)
- fvm::laplacian(rhorAUf, p)
==
==
fvOptions(psi, p, rho.name())
);
@ -68,7 +68,7 @@ else
fvm::ddt(psi, p)
+ fvc::div(phiHbyA)
- fvm::laplacian(rhorAUf, p)
==
==
fvOptions(psi, p, rho.name())
);