52 template<
class CloudType>
147 #define makePairModel(CloudType) \
149 typedef Foam::CloudType::collidingCloudType collidingCloudType; \
151 defineNamedTemplateTypeNameAndDebug \
153 Foam::PairModel<collidingCloudType>, \
159 defineTemplateRunTimeSelectionTable \
161 PairModel<collidingCloudType>, \
167 #define makePairModelType(SS, CloudType) \
169 typedef Foam::CloudType::collidingCloudType collidingCloudType; \
171 defineNamedTemplateTypeNameAndDebug(Foam::SS<collidingCloudType>, 0); \
173 Foam::PairModel<collidingCloudType>:: \
174 adddictionaryConstructorToTable<Foam::SS<collidingCloudType>> \
175 add##SS##CloudType##ConstructorToTable_;
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Templated pair interaction class.
virtual ~PairModel()
Destructor.
PairModel(const dictionary &dict, CloudType &owner, const word &type)
Construct from components.
TypeName("pairModel")
Runtime type information.
declareRunTimeSelectionTable(autoPtr, PairModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
virtual label nSubCycles() const =0
For PairModels that control the timestep, calculate the.
const dictionary & coeffDict() const
Return the coefficients dictionary.
static autoPtr< PairModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
virtual bool controlsTimestep() const =0
Whether the PairModel has a timestep limit that will.
const dictionary & dict() const
Return the dictionary.
const CloudType & owner() const
Return the owner cloud object.
virtual void evaluatePair(typename CloudType::parcelType &pA, typename CloudType::parcelType &pB) const =0
Calculate the pair interaction between parcels.
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 class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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.