db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
27 lines
710 B
C
27 lines
710 B
C
dictionary piso = fluidRegions[i].solutionDict().subDict("PISO");
|
|
|
|
int nCorr(readInt(piso.lookup("nCorrectors")));
|
|
|
|
int nNonOrthCorr = 0;
|
|
if (piso.found("nNonOrthogonalCorrectors"))
|
|
{
|
|
nNonOrthCorr = readInt(piso.lookup("nNonOrthogonalCorrectors"));
|
|
}
|
|
|
|
bool momentumPredictor = true;
|
|
if (piso.found("momentumPredictor"))
|
|
{
|
|
momentumPredictor = Switch(piso.lookup("momentumPredictor"));
|
|
}
|
|
|
|
bool transonic = false;
|
|
if (piso.found("transonic"))
|
|
{
|
|
transonic = Switch(piso.lookup("transonic"));
|
|
}
|
|
|
|
int nOuterCorr = 1;
|
|
if (piso.found("nOuterCorrectors"))
|
|
{
|
|
nOuterCorr = readInt(piso.lookup("nOuterCorrectors"));
|
|
}
|