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< distribution > p (distribution::New(pdfDictionary, rndGen, 0))
 
autoPtr< OFstream > filePtr (nullptr)
 
 if (writeData)
 
scalarField samples (nIntervals, 0)
 

Variables

const fileName pdfPath
 
const scalar xMin = p->min()
 
const scalar xMax = p->max()
 

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")

◆ nSamples()

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

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

Here is the caller graph for this function:

◆ writeData()

const bool writeData ( readBool(pdfDictionary.lookup("writeData"))  )

◆ mkDir()

◆ rndGen()

◆ p()

autoPtr<distribution> p ( distribution::New(pdfDictionary, rndGen, 0)  )

◆ filePtr()

autoPtr<OFstream> filePtr ( nullptr  )

Referenced by if().

Here is the caller graph for this function:

◆ if()

if ( writeData  )

Definition at line 44 of file createFields.H.

References Foam::endl(), filePtr(), Foam::Info, Foam::nl, p, and pdfPath.

Here is the call graph for this function:

◆ samples()

Variable Documentation

◆ pdfPath

const fileName pdfPath
Initial value:
=
runTime.globalPath()
/functionObjects::writeFile::outputPrefix
/runTime.name()
const word & executable() const
Name of executable without the path.
Definition: argListI.H:36
Foam::argList args(argc, argv)

Definition at line 19 of file createFields.H.

Referenced by if().

◆ xMin

const scalar xMin = p->min()

Definition at line 39 of file createFields.H.

◆ xMax

const scalar xMax = p->max()

Definition at line 40 of file createFields.H.