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 defineNamedTemplateTypeNameAndDebug(Foam::PairModel<Foam::CloudType>, 0); \ 153 defineTemplateRunTimeSelectionTable \ 155 PairModel<Foam::CloudType>, \ 161 #define makePairModelType(SS, CloudType) \ 163 defineNamedTemplateTypeNameAndDebug(Foam::SS<Foam::CloudType>, 0); \ 165 Foam::PairModel<Foam::CloudType>:: \ 166 adddictionaryConstructorToTable<Foam::SS<Foam::CloudType>> \ 167 add##SS##CloudType##ConstructorToTable_; intWM_LABEL_SIZE_t 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.
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
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.
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.