Templated patch interaction model class. More...
#include <lagrangianIntermediate/PatchInteractionModel.H>
Templated patch interaction model class.
Definition at line 54 of file PatchInteractionModel.H.
Public Types | |
enum | interactionType { itRebound, itStick, itEscape, itOther } |
Public Member Functions | |
TypeName ("PatchInteractionModel") | |
Runtime type information. | |
declareRunTimeSelectionTable (autoPtr, PatchInteractionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner)) | |
Declare runtime constructor selection table. | |
PatchInteractionModel (const dictionary &dict, CloudType &owner, const word &type) | |
Construct from components. | |
virtual | ~PatchInteractionModel () |
Destructor. | |
const CloudType & | owner () const |
Return the owner cloud object. | |
const dictionary & | dict () const |
Return the dictionary. | |
const dictionary & | coeffDict () const |
Return the coefficients dictionary. | |
virtual bool | active () const =0 |
Flag to indicate whether model activates patch interaction model. | |
virtual bool | correct (const polyPatch &pp, const label faceId, bool &keepParticle, bool &active, vector &U) const =0 |
Apply velocity correction. |
Static Public Member Functions | |
static autoPtr < PatchInteractionModel < CloudType > > | New (const dictionary &dict, CloudType &owner) |
Selector. | |
static word | interactionTypeToWord (const interactionType &itEnum) |
Convert interaction result to word. | |
static interactionType | wordToInteractionType (const word &itWord) |
Convert word to interaction result. |
Static Public Attributes | |
static wordList | interactionTypeNames_ |
enum interactionType |
Definition at line 61 of file PatchInteractionModel.H.
PatchInteractionModel | ( | const dictionary & | dict, |
CloudType & | owner, | ||
const word & | type | ||
) |
Construct from components.
Definition at line 106 of file PatchInteractionModel.C.
|
virtual |
Destructor.
Definition at line 121 of file PatchInteractionModel.C.
TypeName | ( | "PatchInteractionModel< CloudType >" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
PatchInteractionModel< CloudType > | , | ||
dictionary | , | ||
(const dictionary &dict, CloudType &owner) | , | ||
(dict, owner) | |||
) |
Declare runtime constructor selection table.
|
static |
Selector.
Definition at line 33 of file NewPatchInteractionModel.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::Info, dictionary::lookup(), and Foam::nl.
const CloudType & owner | ( | ) | const |
Return the owner cloud object.
Definition at line 129 of file PatchInteractionModel.C.
const Foam::dictionary & dict | ( | ) | const |
Return the dictionary.
Definition at line 136 of file PatchInteractionModel.C.
const Foam::dictionary & coeffDict | ( | ) | const |
Return the coefficients dictionary.
Definition at line 144 of file PatchInteractionModel.C.
|
static |
Convert interaction result to word.
Definition at line 43 of file PatchInteractionModel.C.
|
static |
Convert word to interaction result.
Definition at line 79 of file PatchInteractionModel.C.
|
pure virtual |
Flag to indicate whether model activates patch interaction model.
Implemented in StandardWallInteraction< CloudType >, LocalInteraction< CloudType >, and Rebound< CloudType >.
|
pure virtual |
Apply velocity correction.
Returns true if particle remains in same cell
Implemented in StandardWallInteraction< CloudType >, LocalInteraction< CloudType >, and Rebound< CloudType >.
|
static |
Definition at line 69 of file PatchInteractionModel.H.