FreeFOAM The Cross-Platform CFD Toolkit
readControls.H
Go to the documentation of this file.
3 
4  label nAlphaCorr
5  (
6  readLabel(piso.lookup("nAlphaCorr"))
7  );
8 
9  label nAlphaSubCycles
10  (
11  readLabel(piso.lookup("nAlphaSubCycles"))
12  );
13 
14  if (nAlphaSubCycles > 1 && nOuterCorr != 1)
15  {
17  << "Sub-cycling alpha is only allowed for PISO, "
18  "i.e. when the number of outer-correctors = 1"
19  << exit(FatalError);
20  }
21 
22  bool correctPhi = true;
23  if (piso.found("correctPhi"))
24  {
25  correctPhi = Switch(piso.lookup("correctPhi"));
26  }
27 
28  bool checkMeshCourantNo = false;
29  if (piso.found("checkMeshCourantNo"))
30  {
31  checkMeshCourantNo = Switch(piso.lookup("checkMeshCourantNo"));
32  }