createFields.H File Reference

Go to the source code of this file.

Functions

IOdictionary pdfDictionary (IOobject("pdfDict", runTime.constant(), runTime, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE))
 
const label nIntervals (pdfDictionary.lookup< label >("nIntervals"))
 
const label nSamples (pdfDictionary.lookup< label >("nSamples"))
 
const bool writeData (readBool(pdfDictionary.lookup("writeData")))
 
 mkDir (pdfPath)
 
Random rndGen (label(0))
 
autoPtr< distributionModel > p (distributionModel::New(pdfDictionary, rndGen))
 
autoPtr< OFstream > filePtr (nullptr)
 
 if (writeData)
 
scalarField samples (nIntervals, 0)
 

Variables

const fileName pdfPath = runTime.path()/"pdf"
 
const scalar xMin = p->minValue()
 
const scalar xMax = p->maxValue()
 

Function Documentation

◆ pdfDictionary()

IOdictionary pdfDictionary ( IOobject("pdfDict", runTime.constant(), runTime, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE)  )

◆ nIntervals()

const label nIntervals ( pdfDictionary.lookup< label >  "nIntervals")

Referenced by if().

Here is the caller graph for this function:

◆ nSamples()

const label nSamples ( pdfDictionary.lookup< label >  "nSamples")

Referenced by ParticleTracks< CloudType >::postFace().

Here is the caller graph for this function:

◆ writeData()

◆ mkDir()

mkDir ( pdfPath  )

◆ rndGen()

◆ p()

autoPtr<distributionModel> p ( distributionModel::New(pdfDictionary, rndGen )

◆ filePtr()

autoPtr<OFstream> filePtr ( nullptr  )

Referenced by if().

Here is the caller graph for this function:

◆ if()

if ( writeData  )

Definition at line 38 of file createFields.H.

References Foam::endl(), filePtr(), Foam::Info, nIntervals(), Foam::nl, p, samples(), and scalarField().

Here is the call graph for this function:

◆ samples()

Variable Documentation

◆ pdfPath

const fileName pdfPath = runTime.path()/"pdf"

Definition at line 20 of file createFields.H.

◆ xMin

const scalar xMin = p->minValue()

Definition at line 34 of file createFields.H.

◆ xMax

const scalar xMax = p->maxValue()

Definition at line 35 of file createFields.H.