Go to the documentation of this file.
36 #ifndef PatchInteractionModel_H
37 #define PatchInteractionModel_H
56 template<
class CloudType>
57 class PatchInteractionModel
59 public CloudSubModelBase<CloudType>
167 const scalar trackFraction,
188 #define makePatchInteractionModel(CloudType) \
190 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
191 defineNamedTemplateTypeNameAndDebug \
193 Foam::PatchInteractionModel<kinematicCloudType>, \
199 defineTemplateRunTimeSelectionTable \
201 PatchInteractionModel<kinematicCloudType>, \
207 #define makePatchInteractionModelType(SS, CloudType) \
209 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
210 defineNamedTemplateTypeNameAndDebug(Foam::SS<kinematicCloudType>, 0); \
212 Foam::PatchInteractionModel<kinematicCloudType>:: \
213 adddictionaryConstructorToTable<Foam::SS<kinematicCloudType> > \
214 add##SS##CloudType##kinematicCloudType##ConstructorToTable_;
A class for handling words, derived from string.
virtual bool correct(typename CloudType::parcelType &p, const polyPatch &pp, bool &keepParticle, const scalar trackFraction, const tetIndices &tetIs)=0
Apply velocity correction.
label escapedParcels_
Number of parcels escaped.
void addToEscapedParcels(const scalar mass)
Add to escaped parcels.
virtual ~PatchInteractionModel()
Destructor.
static wordList interactionTypeNames_
const word UName_
Name of velocity field - default = "U".
TypeName("patchInteractionModel")
Runtime type information.
const word & UName() const
Return name of velocity field.
static autoPtr< PatchInteractionModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
Templated patch interaction model class.
virtual autoPtr< PatchInteractionModel< CloudType > > clone() const =0
Construct and return a clone.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A patch is a list of labels that address the faces in the global face list.
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by any number of values (e....
PatchInteractionModel(CloudType &owner)
Construct null from owner.
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
declareRunTimeSelectionTable(autoPtr, PatchInteractionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
Macros to ease declaration of run-time selection tables.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static interactionType wordToInteractionType(const word &itWord)
Convert word to interaction result.
virtual void info(Ostream &os)
Write patch interaction info to stream.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
scalar escapedMass_
Mass of parcels escaped.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static word interactionTypeToWord(const interactionType &itEnum)
Convert interaction result to word.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.