Consistent explicit grad(p) in Rhie-Chow

This commit is contained in:
Hrvoje Jasak 2016-06-08 13:31:18 +01:00
parent f0264ba2e1
commit 28e1ad22df
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ if (addPorosity)
tpresSource =
(
(mesh.Sf() & fvc::interpolate(rTU))
& fvc::interpolate(fvc::grad(p, "grad(pSource)"))
& fvc::interpolate(fvc::grad(p))
);
const surfaceScalarField& presSource = tpresSource();

View file

@ -3,7 +3,7 @@ surfaceScalarField presSource
(
"presSource",
fvc::interpolate(rAU)*
(fvc::interpolate(fvc::grad(p, "grad(pSource)")) & mesh.Sf())
(fvc::interpolate(fvc::grad(p)) & mesh.Sf())
);
fvScalarMatrix pEqn