mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
sonicLiquidFoam: Updated pressure equation to use Dp
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user