FreeFOAM The Cross-Platform CFD Toolkit
readFluidMultiRegionPISOControls.H
Go to the documentation of this file.
1  dictionary piso = fluidRegions[i].solutionDict().subDict("PISO");
2 
3  int nCorr(readInt(piso.lookup("nCorrectors")));
4 
5  int nNonOrthCorr = 0;
6  if (piso.found("nNonOrthogonalCorrectors"))
7  {
8  nNonOrthCorr = readInt(piso.lookup("nNonOrthogonalCorrectors"));
9  }
10 
11  bool momentumPredictor = true;
12  if (piso.found("momentumPredictor"))
13  {
14  momentumPredictor = Switch(piso.lookup("momentumPredictor"));
15  }
16 
17  bool transonic = false;
18  if (piso.found("transonic"))
19  {
20  transonic = Switch(piso.lookup("transonic"));
21  }
22 
23  int nOuterCorr = 1;
24  if (piso.found("nOuterCorrectors"))
25  {
26  nOuterCorr = readInt(piso.lookup("nOuterCorrectors"));
27  }
28 
29 // ************************ vim: set sw=4 sts=4 et: ************************ //