Go to the documentation of this file.
52 template<
class CloudType>
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_;
virtual ~PairModel()
Destructor.
A class for handling words, derived from string.
const dictionary & dict_
The CollisionModel dictionary.
PairModel(const dictionary &dict, CloudType &owner, const word &type)
Construct from components.
virtual void evaluatePair(typename CloudType::parcelType &pA, typename CloudType::parcelType &pB) const =0
Calculate the pair interaction between parcels.
virtual label nSubCycles() const =0
For PairModels that control the timestep, calculate the.
static autoPtr< PairModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
const CloudType & owner() const
Return the owner cloud object.
const dictionary coeffDict_
The coefficients dictionary.
const dictionary & dict() const
Return the dictionary.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Templated base class for dsmc cloud.
declareRunTimeSelectionTable(autoPtr, PairModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
const dictionary & coeffDict() const
Return the coefficients dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual bool controlsTimestep() const =0
Whether the PairModel has a timestep limit that will.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
TypeName("pairModel")
Runtime type information.
Macros to ease declaration of run-time selection tables.
Templated pair interaction class.
CloudType & owner_
Reference to the owner cloud class.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.