Go to the documentation of this file.
98 #ifndef functionObjects_particleDistribution_H
99 #define functionObjects_particleDistribution_H
112 namespace functionObjects
119 class particleDistribution
121 public fvMeshFunctionObject,
149 const word& fieldName,
151 const scalar binWidth,
159 const objectRegistry&
obr,
161 const List<DynamicList<label>>& addr
201 virtual bool write();
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
void operator=(const particleDistribution &)=delete
virtual bool read(const dictionary &)
A class for handling words, derived from Foam::string.
virtual ~particleDistribution()=default
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Registry of regIOobjects.
autoPtr< writer< scalar > > writerPtr_
Generic templated field type.
Generates a particle distribution for lagrangian data at a given time.
bool processField(const objectRegistry &obr, const label fieldi, const List< DynamicList< label >> &addr)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
particleDistribution(const word &name, const Time &runTime, const dictionary &dict)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const word & name() const noexcept
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual const objectRegistry & obr() const
Base class for writing single files from the function objects.
TypeName("particleDistribution")
void generateDistribution(const word &fieldName, const scalarField &field, const scalar binWidth, const label tag=-1)
List< Tuple2< word, scalar > > nameVsBinWidth_