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.
~PatchInteractionModel | ( | ) | [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.
Foam::autoPtr< Foam::PatchInteractionModel< CloudType > > New | ( | const dictionary & | dict, |
CloudType & | owner | ||
) | [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.
Foam::word interactionTypeToWord | ( | const interactionType & | itEnum ) | [static]
|
Convert interaction result to word.
Definition at line 43 of file PatchInteractionModel.C.
Foam::PatchInteractionModel< CloudType >::interactionType wordToInteractionType | ( | const word & | itWord ) | [static]
|
Convert word to interaction result.
Definition at line 79 of file PatchInteractionModel.C.
virtual bool active | ( | ) | const [pure virtual]
|
Flag to indicate whether model activates patch interaction model.
Implemented in LocalInteraction< CloudType >, Rebound< CloudType >, and StandardWallInteraction< CloudType >.
virtual bool correct | ( | const polyPatch & | pp, |
const label | faceId, | ||
bool & | keepParticle, | ||
bool & | active, | ||
vector & | U | ||
) | const [pure virtual]
|
Apply velocity correction.
Returns true if particle remains in same cell
Implemented in LocalInteraction< CloudType >, Rebound< CloudType >, and StandardWallInteraction< CloudType >.
Foam::wordList interactionTypeNames_ [static]
|
Definition at line 69 of file PatchInteractionModel.H.