81 #ifndef PatchParticleHistogram_H 82 #define PatchParticleHistogram_H 95 template<
class CloudType>
96 class PatchParticleHistogram
98 public CloudFunctionObject<CloudType>
118 const scalar maxStoredParcels_;
128 List<List<scalar>> nParticlesCumulative_;
131 List<DynamicList<scalar>> times_;
134 List<DynamicList<scalar>> patchDiameters_;
137 List<DynamicList<scalar>> patchParticles_;
143 label applyToPatch(
const label globalPatchi)
const;
virtual void postPatch(const parcelType &p, const polyPatch &pp, bool &keepParticle)
Post-patch hook.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual autoPtr< CloudFunctionObject< CloudType > > clone() const
Construct and return a clone.
Computes a histogram for the distribution of particle diameters and corresponding number of particles...
const word & modelName() const
Return const access to the name of the sub-model.
const dictionary & dict() const
Return const access to the cloud dictionary.
virtual ~PatchParticleHistogram()=default
Destructor.
const CloudType & owner() const
Return const access to the owner cloud.
PatchParticleHistogram()=delete
No default construct.
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void operator=(const PatchParticleHistogram< CloudType > &)=delete
No copy assignment.
TypeName("patchParticleHistogram")
Runtime type information.
void write()
Write post-processing info.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
List< label > labelList
A List of labels.
A patch is a list of labels that address the faces in the global face list.
Templated base class for dsmc cloud.