100 #ifndef Foam_ParticleHistogram_H 101 #define Foam_ParticleHistogram_H 117 template<
class CloudType>
118 class ParticleHistogram
120 public CloudFunctionObject<CloudType>,
121 public functionObjects::writeFile
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;
173 const dictionary&
dict,
182 void operator=(
const ParticleHistogram<CloudType>&) =
delete;
185 virtual autoPtr<CloudFunctionObject<CloudType>>
clone()
const 187 return autoPtr<CloudFunctionObject<CloudType>>
189 new ParticleHistogram<CloudType>(*this)
207 const typename parcelType::trackingData&
td 214 const typename parcelType::trackingData&
td 221 virtual void write();
ParticleHistogram(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
DSMCCloud< dsmcParcel > CloudType
MinMax< scalar > scalarMinMax
A scalar min/max range.
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
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.
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.
const CloudType & owner() const
Return const access to the owner cloud.
virtual void write()
Write post-processing info.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
TypeName("particleHistogram")
Runtime type information.
OBJstream os(runTime.globalPath()/outputName)
virtual ~ParticleHistogram()=default
Destructor.
A patch is a list of labels that address the faces in the global face list.
virtual autoPtr< CloudFunctionObject< CloudType > > clone() const
Construct and return a clone.
void operator=(const ParticleHistogram< CloudType > &)=delete
No copy assignment.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())