98 #ifndef functionObjects_particleDistribution_H 99 #define functionObjects_particleDistribution_H 112 namespace functionObjects
119 class 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();
virtual bool execute()
Execute, currently does nothing.
virtual ~particleDistribution()=default
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
void generateDistribution(const word &fieldName, const scalarField &field, const scalar binWidth, const label tag=-1)
Generate the distribution.
bool processField(const objectRegistry &obr, const label fieldi, const List< DynamicList< label >> &addr)
void operator=(const particleDistribution &)=delete
No copy assignment.
particleDistribution(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual bool read(const dictionary &)
Read the particleDistribution data.
const word & name() const noexcept
Return the name of this functionObject.
virtual bool write()
Write the particleDistribution.
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
word tagFieldName_
Tag field name - used to filter the particles into groups.
Random rndGen_
Random number generator - used by distribution models.
List< Tuple2< word, scalar > > nameVsBinWidth_
List of field name vs. bin width.
TypeName("particleDistribution")
Runtime type information.
Generates a particle distribution for lagrangian data at a given time.
autoPtr< coordSetWriter > writerPtr_
Writer.
virtual const objectRegistry & obr() const
The region or sub-region registry being used.
word cloudName_
Cloud name.