88#ifndef Foam_functionObjects_particleDistribution_H
89#define Foam_functionObjects_particleDistribution_H
111 public functionObjects::fvMeshFunctionObject,
139 const word& fieldName,
141 const scalar binWidth,
149 const objectRegistry&
obr,
151 const List<DynamicList<label>>& addr
191 virtual bool write();
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Generates a particle distribution for lagrangian data at a given time.
word cloudName_
Cloud name.
List< Tuple2< word, scalar > > nameVsBinWidth_
List of field name vs. bin width.
particleDistribution(const particleDistribution &)=delete
No copy construct.
void operator=(const particleDistribution &)=delete
No copy assignment.
virtual bool read(const dictionary &dict)
Read the function-object dictionary.
bool processField(const objectRegistry &obr, const label fieldi, const List< DynamicList< label > > &addr)
void generateDistribution(const word &fieldName, const scalarField &field, const scalar binWidth, const label tag=-1)
Generate the distribution.
autoPtr< coordSetWriter > writerPtr_
Writer.
virtual ~particleDistribution()=default
Destructor.
Random rndGen_
Random number generator - used by distribution models.
TypeName("particleDistribution")
Runtime type information.
virtual bool execute()
Execute the function-object operations.
virtual bool write()
Write the function-object results.
word tagFieldName_
Tag field name - used to filter the particles into groups.
particleDistribution(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, Time and dictionary.
virtual const objectRegistry & obr() const
The region or sub-region registry being used.
Base class for writing single files from the function objects.
writeFile(const objectRegistry &obr, const fileName &prefix, const word &name="undefined", const bool writeToFile=true, const string &ext=".dat")
Construct from objectRegistry, prefix, fileName.
Registry of regIOobjects.
A class for handling words, derived from Foam::string.
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.