Go to the documentation of this file.
89 #ifndef ParticleCollector_H
90 #define ParticleCollector_H
107 template<
class CloudType>
292 const point& position0,
scalar totalTime_
Total time.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
const label parcelType_
Index of parcel types to collect (-1 by default = all particles)
A class for handling words, derived from string.
virtual ~ParticleCollector()
Destructor.
ParticleCollector(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
void write()
Write post-processing info.
List< scalar > radius_
List of radii.
CloudType::parcelType parcelType
Convenience typedef for parcel type.
Cylindrical coordinate system.
const CloudType & owner() const
Return const access to the owner cloud.
void initConcentricCircles()
Initialise concentric circle collectors.
Field< scalar > area_
Face areas.
const word & modelName() const
Return const access to the name of the sub-model.
const Switch & resetOnWrite() const
Return const access to the reset on write flag.
List< scalar > massFlowRate_
Mass flow rate storage.
label nSector_
Number of sectors per circle.
TypeName("particleCollector")
Runtime type information.
const word surfaceFormat_
Surface output format.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void makeLogFile(const faceList &faces, const Field< point > &points, const Field< scalar > &area)
Helper function to create log files.
const dictionary & dict() const
Return const access to the cloud dictionary.
cylindricalCS coordSys_
Cylindrical co-ordinate system.
Switch log_
Flag to indicate whether data should be written to file.
Templated base class for dsmc cloud.
DynamicList< label > hitFaceIDs_
Work list to store which faces are hit.
bool negateParcelsOppositeNormal_
Remove mass of parcel travelling in opposite direction to normal_.
A list of keyword definitions, which are a keyword followed by any number of values (e....
List< scalar > massTotal_
Mass total storage.
Switch resetOnWrite_
Flag to indicate whether data should be reset/cleared on writing.
autoPtr< OFstream > outputFilePtr_
Output file pointer.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
modeType mode_
Collector mode type.
Field< point > points_
List of points.
Templated cloud function object base class.
void initPolygons(const List< Field< point > > &polygons)
Initialise polygon collectors.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Function object to collect the parcel mass- and mass flow rate over a set of polygons....
void collectParcelPolygon(const point &p1, const point &p2) const
Collect parcels in polygon collectors.
virtual void postMove(parcelType &p, const label cellI, const scalar dt, const point &position0, bool &keepParticle)
Post-move hook.
List< List< face > > faceTris_
Triangulation of faces.
scalar timeOld_
Last calculation time.
List< scalar > mass_
Mass storage.
void collectParcelConcentricCircles(const point &p1, const point &p2) const
Collect parcels in concentric circle collectors.
Field< vector > normal_
Polygon normal vector per face.
Switch removeCollected_
Flag to remove collected particles.
List< face > faces_
List of faces.
virtual autoPtr< CloudFunctionObject< CloudType > > clone() const
Construct and return a clone.