Runs multiple patch interaction models in turn. Takes dictionary where all the subdictionaries are the interaction models. More...
Public Member Functions | |
TypeName ("multiInteraction") | |
Runtime type information. More... | |
MultiInteraction (const dictionary &dict, CloudType &cloud) | |
Construct from dictionary. More... | |
MultiInteraction (const MultiInteraction< CloudType > &pim) | |
Construct copy from owner cloud and patch interaction model. More... | |
virtual autoPtr< PatchInteractionModel< CloudType > > | clone () const |
Construct and return a clone using supplied owner cloud. More... | |
virtual | ~MultiInteraction () |
Destructor. More... | |
virtual bool | active () const |
Flag to indicate whether model activates patch interaction model. More... | |
virtual bool | correct (typename CloudType::parcelType &p, const polyPatch &pp, bool &keepParticle, const scalar trackFraction, const tetIndices &tetIs) |
Apply velocity correction. More... | |
![]() | |
TypeName ("patchInteractionModel") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, PatchInteractionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner)) | |
Declare runtime constructor selection table. More... | |
PatchInteractionModel (CloudType &owner) | |
Construct null from owner. More... | |
PatchInteractionModel (const dictionary &dict, CloudType &owner, const word &type) | |
Construct from components. More... | |
PatchInteractionModel (const PatchInteractionModel< CloudType > &pim) | |
Construct copy. More... | |
virtual autoPtr< PatchInteractionModel< CloudType > > | clone () const=0 |
Construct and return a clone. More... | |
virtual | ~PatchInteractionModel () |
Destructor. More... | |
const word & | UName () const |
Return name of velocity field. More... | |
void | addToEscapedParcels (const scalar mass) |
Add to escaped parcels. More... | |
virtual void | info (Ostream &os) |
Write patch interaction info to stream. More... | |
Private Member Functions | |
bool | read (const dictionary &) |
Read settings. More... | |
Private Attributes | |
Switch | oneInteractionOnly_ |
PtrList< PatchInteractionModel< CloudType > > | models_ |
Submodels. More... | |
Additional Inherited Members | |
![]() | |
enum | interactionType |
![]() | |
static autoPtr< PatchInteractionModel< CloudType > > | New (const dictionary &dict, CloudType &owner) |
Selector. More... | |
static word | interactionTypeToWord (const interactionType &itEnum) |
Convert interaction result to word. More... | |
static interactionType | wordToInteractionType (const word &itWord) |
Convert word to interaction result. More... | |
![]() | |
static wordList | interactionTypeNames_ |
![]() | |
const word | UName_ |
Name of velocity field - default = "U". More... | |
label | escapedParcels_ |
Number of parcels escaped. More... | |
scalar | escapedMass_ |
Mass of parcels escaped. More... | |
Runs multiple patch interaction models in turn. Takes dictionary where all the subdictionaries are the interaction models.
Exit upon first successful interaction or continue doing other models. Returned nteraction status will be true if there has been any interaction (so logical or) oneInteractionOnly true;
model1 { patchInteractionModel coincidentBaffleInteraction; coincidentBaffleInteractionCoeffs { coincidentPatches ( (pipetteWall_A pipetteCyclic_half0) (pipetteWall_B pipetteCyclic_half1) ); } } model2 { patchInteractionModel localInteraction; localInteractionCoeffs { patches ( cWall { type rebound; } pipetteWall_A { type rebound; } pipetteWall_B { type rebound; } ); } }
Definition at line 87 of file MultiInteraction.H.
MultiInteraction | ( | const dictionary & | dict, |
CloudType & | cloud | ||
) |
Construct from dictionary.
Definition at line 88 of file MultiInteraction.C.
References Foam::read().
MultiInteraction | ( | const MultiInteraction< CloudType > & | pim | ) |
Construct copy from owner cloud and patch interaction model.
Definition at line 101 of file MultiInteraction.C.
|
virtual |
Destructor.
Definition at line 114 of file MultiInteraction.C.
|
private |
Read settings.
Definition at line 31 of file MultiInteraction.C.
References dict, Foam::endl(), forAllConstIter(), Foam::Info, and Foam::nl.
TypeName | ( | "multiInteraction" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone using supplied owner cloud.
Definition at line 119 of file MultiInteraction.H.
|
virtual |
Flag to indicate whether model activates patch interaction model.
Definition at line 121 of file MultiInteraction.C.
References forAll.
|
virtual |
Apply velocity correction.
Returns true if particle remains in same cell
Implements PatchInteractionModel< CloudType >.
Definition at line 136 of file MultiInteraction.C.
References forAll, patchIdentifier::index(), p, and patchi.
|
private |
Definition at line 93 of file MultiInteraction.H.
|
private |
Submodels.
Definition at line 96 of file MultiInteraction.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.