This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/coupled/pUCoupledFoam/pEqn.H
2016-06-08 13:31:18 +01:00

18 lines
329 B
C

// Pressure parts of the continuity equation
surfaceScalarField presSource
(
"presSource",
fvc::interpolate(rAU)*
(fvc::interpolate(fvc::grad(p)) & mesh.Sf())
);
fvScalarMatrix pEqn
(
- fvm::laplacian(rAU, p)
==
- fvc::div(presSource)
);
pEqn.setReference(pRefCell, pRefValue);
UpEqn.insertEquation(3, pEqn);