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