36 #ifndef PatchInteractionModel_H 37 #define PatchInteractionModel_H 56 template<
class CloudType>
57 class PatchInteractionModel
59 public CloudSubModelBase<CloudType>
174 #define makePatchInteractionModel(CloudType) \ 176 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \ 177 defineNamedTemplateTypeNameAndDebug \ 179 Foam::PatchInteractionModel<kinematicCloudType>, \ 185 defineTemplateRunTimeSelectionTable \ 187 PatchInteractionModel<kinematicCloudType>, \ 193 #define makePatchInteractionModelType(SS, CloudType) \ 195 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \ 196 defineNamedTemplateTypeNameAndDebug(Foam::SS<kinematicCloudType>, 0); \ 198 Foam::PatchInteractionModel<kinematicCloudType>:: \ 199 adddictionaryConstructorToTable<Foam::SS<kinematicCloudType>> \ 200 add##SS##CloudType##kinematicCloudType##ConstructorToTable_; PatchInteractionModel(CloudType &owner)
Construct null from owner.
static word interactionTypeToWord(const interactionType &itEnum)
Convert interaction result to word.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static wordList interactionTypeNames_
virtual ~PatchInteractionModel()
Destructor.
const dictionary & dict() const
Return const access to the cloud dictionary.
Templated patch interaction model class.
virtual autoPtr< PatchInteractionModel< CloudType > > clone() const =0
Construct and return a clone.
const CloudType & owner() const
Return const access to the owner cloud.
declareRunTimeSelectionTable(autoPtr, PatchInteractionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
A class for handling words, derived from string.
static autoPtr< PatchInteractionModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
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...
TypeName("patchInteractionModel")
Runtime type information.
const word & UName() const
Return name of velocity field.
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
virtual bool correct(typename CloudType::parcelType &p, const polyPatch &pp, bool &keepParticle)=0
Apply velocity correction.
virtual void info(Ostream &os)
Write patch interaction info to stream.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Macros to ease declaration of run-time selection tables.
A patch is a list of labels that address the faces in the global face list.
Templated base class for dsmc cloud.
static interactionType wordToInteractionType(const word &itWord)
Convert word to interaction result.