Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / applications / solvers / multiphase / compressibleInterFoam / compressibleInterDyMFoam / readControls.H
blob38bacbf4eaeaebd5e4efa0c7e2554a2b3bc85477
1     #include "readTimeControls.H"
3     label nAlphaCorr(readLabel(pimple.dict().lookup("nAlphaCorr")));
5     label nAlphaSubCycles(readLabel(pimple.dict().lookup("nAlphaSubCycles")));
7     if (nAlphaSubCycles > 1 && pimple.nOuterCorr() != 1)
8     {
9         FatalErrorIn(args.executable())
10             << "Sub-cycling alpha is only allowed for PISO, "
11                "i.e. when the number of outer-correctors = 1"
12             << exit(FatalError);
13     }
15     bool correctPhi =
16         pimple.dict().lookupOrDefault<Switch>("correctPhi", true);
18     bool checkMeshCourantNo =
19         pimple.dict().lookupOrDefault<Switch>("checkMeshCourantNo", false);