FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

readControls.H

Go to the documentation of this file.
00001    #include <finiteVolume/readPISOControls.H>
00002    #include <finiteVolume/readTimeControls.H>
00003 
00004     label nAlphaCorr
00005     (
00006         readLabel(piso.lookup("nAlphaCorr"))
00007     );
00008 
00009     label nAlphaSubCycles
00010     (
00011         readLabel(piso.lookup("nAlphaSubCycles"))
00012     );
00013 
00014     if (nAlphaSubCycles > 1 && nOuterCorr != 1)
00015     {
00016         FatalErrorIn(args.executable())
00017             << "Sub-cycling alpha is only allowed for PISO, "
00018                "i.e. when the number of outer-correctors = 1"
00019             << exit(FatalError);
00020     }
00021 
00022     bool correctPhi = true;
00023     if (piso.found("correctPhi"))
00024     {
00025         correctPhi = Switch(piso.lookup("correctPhi"));
00026     }
00027 
00028     bool checkMeshCourantNo = false;
00029     if (piso.found("checkMeshCourantNo"))
00030     {
00031         checkMeshCourantNo = Switch(piso.lookup("checkMeshCourantNo"));
00032     }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines