Go to the documentation of this file.
91 #ifndef RecycleInteraction_H
92 #define RecycleInteraction_H
107 template<
class CloudType>
108 class RecycleInteraction
110 public PatchInteractionModel<CloudType>
List< Pair< label > > recyclePatchesIds_
Patch IDs of recyclePatches.
PtrList< patchInjectionBase > injectionPatchPtr_
Injection patch pointer.
CloudType::parcelType parcelType
List< Pair< word > > recyclePatches_
Outlet-inlet patch pair to apply parcel recycling.
List< List< scalar > > massRemoved_
Mass of parcels removed.
virtual bool correct(typename CloudType::parcelType &p, const polyPatch &pp, bool &keepParticle)
Apply velocity correction.
virtual void writeFileHeader(Ostream &os)
Output file header information.
List< IDLList< parcelType > > recycledParcels_
Parcel IDs of recycled parcels.
RecycleInteraction(const dictionary &dict, CloudType &cloud)
Construct from dictionary.
virtual ~RecycleInteraction()=default
Destructor.
TypeName("recycleInteraction")
Runtime type information.
const fvMesh & mesh_
Reference to mesh.
bool outputByInjectorId_
Flag to output escaped/mass particles sorted by injectorID.
Templated patch interaction model class.
A patch is a list of labels that address the faces in the global face list.
List< List< label > > nInjected_
Number of parcels injected.
virtual void postEvolve()
Post-evolve hook.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void info(Ostream &os)
Write patch interaction info to stream.
OBJstream os(runTime.globalPath()/outputName)
Mesh data needed to do the Finite Volume discretisation.
Patch interaction model to perform parcel transfer and recycle from one patch to another.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A cloud is a registry collection of lagrangian particles.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
List< List< scalar > > massInjected_
Mass of parcels injected.
Map< label > injIdToIndex_
Injector ID to local index map.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
List< List< label > > nRemoved_
Number of parcels removed.
virtual autoPtr< PatchInteractionModel< CloudType > > clone() const
Construct and return a clone using supplied owner cloud.
Intrusive doubly-linked list.
const scalar recycleFraction_
Parcel fraction to be recycled from outlet to inlet.