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::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_; 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.
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.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
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.