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

createGradP.H

Go to the documentation of this file.
00001     dimensionedScalar gradP
00002     (
00003         "gradP",
00004         dimensionSet(0, 1, -2, 0, 0),
00005         0.0
00006     );
00007 
00008 
00009     IFstream gradPFile
00010     (
00011         runTime.path()/runTime.timeName()/"uniform"/"gradP.raw"
00012     );
00013 
00014     if(gradPFile.good())
00015     {
00016         gradPFile >> gradP;
00017         Info<< "Reading average pressure gradient" <<endl
00018             << endl;
00019     }
00020     else
00021     {
00022         Info<< "Initializing with 0 pressure gradient" <<endl
00023             << endl;
00024     };
00025 
00026 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines