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/transientDyMFoam/pEqn.H

18 lines
392 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);