8 IOobject::MUST_READ_IF_MODIFIED,
20 const fileName pdfPath = runTime.path()/
"pdf";
25 autoPtr<distributionModels::distributionModel>
p 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 44 filePtr.reset(
new OFstream(fName));
IOdictionary pdfDictionary(IOobject( "pdfDict", runTime.constant(), runTime, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE ))
cachedRandom rndGen(label(0),-1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
autoPtr< OFstream > filePtr(NULL)
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
label readLabel(Istream &is)
const label nSamples(readLabel(pdfDictionary.lookup("nSamples")))
Ostream & endl(Ostream &os)
Add newline and flush stream.
const label nIntervals(readLabel(pdfDictionary.lookup("nIntervals")))
const bool writeData(readBool(pdfDictionary.lookup("writeData")))
scalarField samples(nIntervals, 0)
volScalarField scalarField(fieldObject, mesh)