52 template<
class CloudType>
58 const dictionary& dict_;
64 const dictionary coeffDict_;
79 const dictionary&
dict,
91 const dictionary& dict,
102 static autoPtr<PairModel<CloudType>>
New 104 const dictionary& dict,
115 const dictionary&
dict()
const;
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_; FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
DSMCCloud< dsmcParcel > CloudType
const dictionary & dict() const
Return the dictionary.
static autoPtr< PairModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
virtual void evaluatePair(typename CloudType::parcelType &pA, typename CloudType::parcelType &pB) const =0
Calculate the pair interaction between parcels.
virtual bool controlsTimestep() const =0
Whether the PairModel has a timestep limit that will.
const CloudType & owner() const
Return the owner cloud object.
TypeName("pairModel")
Runtime type information.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
const dictionary & coeffDict() const
Return the coefficients dictionary.
declareRunTimeSelectionTable(autoPtr, PairModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
virtual ~PairModel()
Destructor.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
PairModel(const dictionary &dict, CloudType &owner, const word &type)
Construct from components.
Macros to ease declaration of run-time selection tables.
virtual label nSubCycles() const =0
For PairModels that control the timestep, calculate the.