OpenFOAM logo
Open Source CFD Toolkit

readPISOControls.H

Go to the documentation of this file.
00001     const dictionary& piso = mesh.solutionDict().subDict("PISO");
00002 
00003     int nCorr(readInt(piso.lookup("nCorrectors")));
00004 
00005     int nNonOrthCorr = 0;
00006     if (piso.found("nNonOrthogonalCorrectors"))
00007     {
00008         nNonOrthCorr = readInt(piso.lookup("nNonOrthogonalCorrectors"));
00009     }
00010 
00011     bool momentumPredictor = true;
00012     if (piso.found("momentumPredictor"))
00013     {
00014         momentumPredictor = Switch(piso.lookup("momentumPredictor"));
00015     }
00016 
00017     bool fluxGradp = false;
00018     if (piso.found("fluxGradp"))
00019     {
00020         fluxGradp = Switch(piso.lookup("fluxGradp"));
00021     }
00022 
00023     bool transSonic = false;
00024     if (piso.found("transSonic"))
00025     {
00026         transSonic = Switch(piso.lookup("transSonic"));
00027     }
00028 
00029     int nOuterCorr = 1;
00030     if (piso.found("nOuterCorrectors"))
00031     {
00032         nOuterCorr = readInt(piso.lookup("nOuterCorrectors"));
00033     }
For further information go to www.openfoam.org