100#ifndef Foam_ParticleHistogram_H
101#define Foam_ParticleHistogram_H
117template<
class CloudType>
131 cloudFunctionObjectTools::collector collector_;
137 const scalar maxStoredParcels_;
147 List<scalarList> nParticlesCumulative_;
150 List<DynamicList<scalar>> dParticles_;
153 List<DynamicList<scalar>> nParticles_;
159 void writeFileHeader(Ostream&
os)
const;
185 virtual autoPtr<CloudFunctionObject<CloudType>>
clone()
const
187 return autoPtr<CloudFunctionObject<CloudType>>
207 const typename parcelType::trackingData&
td
214 const typename parcelType::trackingData&
td
221 virtual void write();
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
Templated cloud function object base class.
CloudFunctionObject(CloudType &owner)
Construct null from owner.
const CloudType & owner() const
Return const access to the owner cloud.
ParticleType particleType
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Computes a histogram for the distribution of particle diameters and corresponding number of particles...
virtual autoPtr< CloudFunctionObject< CloudType > > clone() const
Construct and return a clone.
ParticleHistogram(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
void operator=(const ParticleHistogram< CloudType > &)=delete
No copy assignment.
virtual void write()
Write post-processing info.
virtual ~ParticleHistogram()=default
Destructor.
virtual bool postFace(const parcelType &p, const typename parcelType::trackingData &td)
Post-face hook.
virtual bool postPatch(const parcelType &p, const polyPatch &pp, const typename parcelType::trackingData &td)
Post-patch hook.
TypeName("particleHistogram")
Runtime type information.
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,...
Base class for writing single files from the function objects.
A patch is a list of labels that address the faces in the global face list.
const dictionary & dict() const
Return const access to the cloud dictionary.
const word & modelName() const
Return const access to the name of the sub-model.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
DSMCCloud< dsmcParcel > CloudType
MinMax< scalar > scalarMinMax
A scalar min/max range.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.