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

19 lines
329 B
C
Raw Normal View History

// Pressure parts of the continuity equation
surfaceScalarField presSource
(
"presSource",
2016-03-18 11:44:28 +00:00
fvc::interpolate(rAU)*
(fvc::interpolate(fvc::grad(p)) & mesh.Sf())
);
fvScalarMatrix pEqn
(
2016-03-18 11:44:28 +00:00
- fvm::laplacian(rAU, p)
==
- fvc::div(presSource)
);
pEqn.setReference(pRefCell, pRefValue);
2014-08-01 11:25:37 +00:00
UpEqn.insertEquation(3, pEqn);