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