Patch interaction model to perform parcel transfer and recycle from one patch to another. More...
Protected Types | |
typedef CloudType::parcelType | parcelType |
Protected Member Functions | |
virtual void | writeFileHeader (Ostream &os) |
Protected Attributes | |
const fvMesh & | mesh_ |
List< Pair< word > > | recyclePatches_ |
List< Pair< label > > | recyclePatchesIds_ |
List< IDLList< parcelType > > | recycledParcels_ |
List< List< label > > | nRemoved_ |
List< List< scalar > > | massRemoved_ |
List< List< label > > | nInjected_ |
List< List< scalar > > | massInjected_ |
Map< label > | injIdToIndex_ |
PtrList< patchInjectionBase > | injectionPatchPtr_ |
const scalar | recycleFraction_ |
bool | outputByInjectorId_ |
![]() | |
const word | UName_ |
label | escapedParcels_ |
scalar | escapedMass_ |
scalar | Urmax_ |
Additional Inherited Members | |
![]() | |
enum | interactionType |
![]() | |
static autoPtr< PatchInteractionModel< CloudType > > | New (const dictionary &dict, CloudType &owner) |
static word | interactionTypeToWord (const interactionType &itEnum) |
static interactionType | wordToInteractionType (const word &itWord) |
![]() | |
static wordList | interactionTypeNames_ |
Patch interaction model to perform parcel transfer and recycle from one patch to another.
Parcels that hit a given 'outflow' patch are recycled to a given 'inflow' patch, with optional:
constant/reactingCloud1Properties.subModels.multiInteractionCoeffs
multiInteractionCoeffs { ... model1 { // Mandatory entries (unmodifiable) patchInteractionModel recycleInteraction; recycleInteractionCoeffs { recyclePatches ( (<outletPatch1> <inletPatch1>) (<outletPatch2> <inletPatch2>) ... ); recycleFraction 0.8; // [0-1] // Optional entries (unmodifiable) outputByInjectorId false; } } ... }
where the entries mean:
Property | Description | Type | Reqd | Dflt |
---|---|---|---|---|
patchInteractionModel | Type name: recycleInteraction | word | yes | - |
recyclePatches | Names of outlet-inlet patch pairs | (word word) | yes | - |
recycleFraction | Fraction of parcels recycled from outlet to inlet | scalar | yes | - |
outputByInjectorId | Flag to output escaped/mass particles sorted by injectorID | bool | no | false |
Definition at line 141 of file RecycleInteraction.H.
|
protected |
Definition at line 147 of file RecycleInteraction.H.
RecycleInteraction | ( | const dictionary & | dict, |
CloudType & | cloud | ||
) |
Definition at line 57 of file RecycleInteraction.C.
References forAll, and Foam::Zero.
RecycleInteraction | ( | const RecycleInteraction< CloudType > & | pim | ) |
Definition at line 127 of file RecycleInteraction.C.
|
virtualdefault |
|
protectedvirtual |
Reimplemented from PatchInteractionModel< CloudType >.
Definition at line 26 of file RecycleInteraction.C.
References forAll, Foam::name(), and os().
TypeName | ( | "recycleInteraction" | ) |
|
inlinevirtual |
Definition at line 213 of file RecycleInteraction.H.
|
virtual |
Implements PatchInteractionModel< CloudType >.
Definition at line 150 of file RecycleInteraction.C.
References forAll, patchIdentifier::index(), and p.
|
virtual |
Reimplemented from PatchInteractionModel< CloudType >.
Definition at line 197 of file RecycleInteraction.C.
References List::append(), PstreamBuffers::clear(), List::clear(), PstreamBuffers::finishedSends(), forAll, forAllIters, fractions(), mesh, n, reduce(), and rndGen.
|
virtual |
Reimplemented from PatchInteractionModel< CloudType >.
Definition at line 365 of file RecycleInteraction.C.
References Foam::endl(), forAll, forAllConstIters(), Foam::nl, os(), List::setSize(), Foam::tab, and Foam::Zero.
|
protected |
Definition at line 152 of file RecycleInteraction.H.
Definition at line 155 of file RecycleInteraction.H.
Definition at line 158 of file RecycleInteraction.H.
|
protected |
Definition at line 161 of file RecycleInteraction.H.
Definition at line 167 of file RecycleInteraction.H.
Definition at line 170 of file RecycleInteraction.H.
Definition at line 173 of file RecycleInteraction.H.
Definition at line 176 of file RecycleInteraction.H.
|
protected |
Definition at line 180 of file RecycleInteraction.H.
|
protected |
Definition at line 183 of file RecycleInteraction.H.
|
protected |
Definition at line 186 of file RecycleInteraction.H.
|
protected |
Definition at line 189 of file RecycleInteraction.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.