Skip to content
Snippets Groups Projects
Commit 2e09a662 authored by Henry's avatar Henry
Browse files

sonicLiquidFoam: Updated pressure equation to use Dp

parent f09f545d
Branches
Tags
No related merge requests found
......@@ -85,13 +85,14 @@ int main(int argc, char *argv[])
);
phi = (rhoO/psi)*phid;
volScalarField Dp("Dp", rho*rAU);
fvScalarMatrix pEqn
(
fvm::ddt(psi, p)
+ fvc::div(phi)
+ fvm::div(phid, p)
- fvm::laplacian(rho*rAU, p)
- fvm::laplacian(Dp, p)
);
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