1 IOdictionary pdfDictionary
8 IOobject::MUST_READ_IF_MODIFIED,
13 const label nIntervals(readLabel(pdfDictionary.lookup("nIntervals")));
15 const label nSamples(readLabel(pdfDictionary.lookup("nSamples")));
17 const bool writeData(readBool(pdfDictionary.lookup("writeData")));
20 const fileName pdfPath = runTime.path()/"pdf";
23 cachedRandom rndGen(label(0), -1);
25 autoPtr<distributionModels::distributionModel> p
27 distributionModels::distributionModel::New
34 const scalar xMin = p->minValue();
35 const scalar xMax = p->maxValue();
37 autoPtr<OFstream> filePtr(NULL);
40 fileName fName = pdfPath/(p->type() + ".data");
41 Info<< "Writing " << p->type() << " data samples to file:" << nl
42 << fName << nl << endl;
44 filePtr.reset(new OFstream(fName));
47 scalarField samples(nIntervals, 0);