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

26 lines
419 B
C
Raw Normal View History

// Pressure parts of the continuity equation
surfaceScalarField rUAf
(
"rUAf",
2015-10-29 09:43:53 +00:00
fvc::interpolate(1.0/UEqn().A())
);
2015-10-29 09:43:53 +00:00
UEqn.clear();
surfaceScalarField presSource
(
"presSource",
2014-08-01 11:25:37 +00:00
rUAf*(fvc::interpolate(fvc::grad(p, "grad(pSource)")) & mesh.Sf())
);
fvScalarMatrix pEqn
(
- fvm::laplacian(rUAf, p)
==
- fvc::div(presSource)
);
pEqn.setReference(pRefCell, pRefValue);
2014-08-01 11:25:37 +00:00
UpEqn.insertEquation(3, pEqn);