initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / applications / solvers / multiphase / compressibleInterDyMFoam / readControls.H
bloba2e4ef3747f5e90cf13fcc16d721275040144869
1    #include "readPISOControls.H"
2    #include "readTimeControls.H"
4     label nAlphaCorr
5     (
6         readLabel(piso.lookup("nAlphaCorr"))
7     );
9     label nAlphaSubCycles
10     (
11         readLabel(piso.lookup("nAlphaSubCycles"))
12     );
14     if (nAlphaSubCycles > 1 && nOuterCorr != 1)
15     {
16         FatalErrorIn(args.executable())
17             << "Sub-cycling alpha is only allowed for PISO, "
18                "i.e. when the number of outer-correctors = 1"
19             << exit(FatalError);
20     }
22     bool correctPhi = true;
23     if (piso.found("correctPhi"))
24     {
25         correctPhi = Switch(piso.lookup("correctPhi"));
26     }
28     bool checkMeshCourantNo = false;
29     if (piso.found("checkMeshCourantNo"))
30     {
31         checkMeshCourantNo = Switch(piso.lookup("checkMeshCourantNo"));
32     }