39 const word distributionType(
dict.lookup(
"type"));
43 Info<<
"Selecting " << typeName <<
" type " << distributionType <<
endl;
46 dictionaryConstructorTable::iterator cstrIter =
47 dictionaryConstructorTablePtr_->find(distributionType);
49 if (cstrIter == dictionaryConstructorTablePtr_->end())
52 <<
"Unknown " << typeName <<
" type " << distributionType
53 <<
nl <<
nl <<
"Valid " << typeName <<
" types are:" <<
nl
54 << dictionaryConstructorTablePtr_->sortedToc()
63 dict.optionalSubDict(distributionType +
"Distribution"),
72 <<
"min/average/max value = "
73 << distributionPtr->min() <<
'/'
74 << distributionPtr->mean() <<
'/'
75 << distributionPtr->max()
79 return distributionPtr;
103 if (dPtr->sampleQ_ == sampleQ)
T * ptr()
Return object pointer for reuse.
void clear()
Delete object (if the pointer is valid) and set pointer to.
A list of keyword definitions, which are a keyword followed by any number of values (e....
static autoPtr< distribution > New(const unitConversion &units, const dictionary &dict, const label sampleQ, randomGenerator &&rndGen, const bool report=true)
Select from dictionary and a random generator.
Unit conversion structure. Contains the associated dimensions and the multiplier with which to conver...
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
const HashTable< unitConversion > & units()
Get the table of unit conversions.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Ostream & indent(Ostream &os)
Indent stream.
randomGenerator rndGen(653213)