98#ifndef functionObjects_particleDistribution_H
99#define functionObjects_particleDistribution_H
112namespace functionObjects
119class particleDistribution
121 public functionObjects::fvMeshFunctionObject,
149 const word& fieldName,
151 const scalar binWidth,
159 const objectRegistry&
obr,
161 const List<DynamicList<label>>& addr
201 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,...
const word & name() const noexcept
Return the name of this functionObject.
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.
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, currently does nothing.
virtual bool write()
Write the particleDistribution.
word tagFieldName_
Tag field name - used to filter the particles into groups.
particleDistribution(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual bool read(const dictionary &)
Read the particleDistribution data.
virtual const objectRegistry & obr() const
The region or sub-region registry being used.
Base class for writing single files from the function objects.
Registry of regIOobjects.
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.