Pressure reference points to be read from PIMPLE

This commit is contained in:
Hrvoje Jasak 2013-11-20 19:15:01 +00:00
parent 442b51a3d7
commit fa1370a82a
2 changed files with 16 additions and 4 deletions

View file

@ -123,7 +123,13 @@
label pdRefCell = 0;
scalar pdRefValue = 0.0;
setRefCell(pd, mesh.solutionDict().subDict("PISO"), pdRefCell, pdRefValue);
setRefCell
(
pd,
mesh.solutionDict().subDict("PIMPLE"),
pdRefCell,
pdRefValue
);
scalar pRefValue = 0.0;
@ -131,7 +137,7 @@
{
pRefValue = readScalar
(
mesh.solutionDict().subDict("PISO").lookup("pRefValue")
mesh.solutionDict().subDict("PIMPLE").lookup("pRefValue")
);
p += dimensionedScalar

View file

@ -103,7 +103,13 @@
label pdRefCell = 0;
scalar pdRefValue = 0.0;
setRefCell(pd, mesh.solutionDict().subDict("PISO"), pdRefCell, pdRefValue);
setRefCell
(
pd,
mesh.solutionDict().subDict("PIMPLE"),
pdRefCell,
pdRefValue
);
scalar pRefValue = 0.0;
@ -111,7 +117,7 @@
{
pRefValue = readScalar
(
mesh.solutionDict().subDict("PISO").lookup("pRefValue")
mesh.solutionDict().subDict("PIMPLE").lookup("pRefValue")
);
p += dimensionedScalar