OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

createFields.H

Go to the documentation of this file.
00001     IOdictionary pdfDictionary
00002     (
00003         IOobject
00004         (
00005             "pdfDictionary",
00006             runTime.constant(),
00007             runTime,
00008             IOobject::MUST_READ,
00009             IOobject::NO_WRITE
00010         )
00011     );
00012 
00013     label nIntervals
00014     (
00015         readLabel(pdfDictionary.lookup("nIntervals"))
00016     );
00017 
00018     label nSamples
00019     (
00020         readLabel(pdfDictionary.lookup("nSamples"))
00021     );
00022 
00023     label samples[nIntervals];
00024 
00025     for(label i=0;i<nIntervals;i++)
00026     {
00027         samples[i] = 0;
00028     }
00029 
Copyright © 2000-2009 OpenCFD Ltd