39 const word distributionType(
dict.lookup(
"type"));
44 <<
" type " << distributionType <<
endl;
47 dictionaryConstructorTable::iterator cstrIter =
48 dictionaryConstructorTablePtr_->find(distributionType);
50 if (cstrIter == dictionaryConstructorTablePtr_->end())
53 <<
"Unknown " <<
typeName <<
" type " << distributionType
55 << dictionaryConstructorTablePtr_->sortedToc()
60 dict.optionalSubDict(distributionType +
"Distribution");
78 << distributionPtr->min() <<
'/'
79 << distributionPtr->mean() <<
'/'
80 << distributionPtr->max() <<
endl;
83 return distributionPtr;
107 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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
label sampleQ() const
Access the sample size exponent.
static autoPtr< distribution > New(const unitSet &units, const dictionary &dict, const label sampleQ, randomGenerator &&rndGen, const bool report=true)
Select from dictionary and a random generator.
Enables the printing of a dictionary and subsequently looked-up defaulted entries.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
Unit conversion structure. Contains the associated dimensions and the multiplier with which to conver...
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), lagrangian::cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
errorManipArg< error, int > exit(error &err, const int errNo=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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & indentOrNl(Ostream &os)
Indent stream or add newline if indent level == 0.
Ostream & indent(Ostream &os)
Indent stream.
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
randomGenerator rndGen(653213)