55 template<
class CloudType>
61 const dictionary& dict_;
67 const dictionary coeffDict_;
70 scalar forceRampTime_;
97 const dictionary&
dict,
112 const dictionary&
dict,
123 static autoPtr<PairModel<CloudType>>
New 125 const dictionary&
dict,
136 const dictionary&
dict()
const;
168 #define makePairModel(CloudType) \ 170 defineNamedTemplateTypeNameAndDebug(Foam::PairModel<Foam::CloudType>, 0); \ 174 defineTemplateRunTimeSelectionTable \ 176 PairModel<Foam::CloudType>, \ 182 #define makePairModelType(SS, CloudType) \ 184 defineNamedTemplateTypeNameAndDebug(Foam::SS<Foam::CloudType>, 0); \ 186 Foam::PairModel<Foam::CloudType>:: \ 187 adddictionaryConstructorToTable<Foam::SS<Foam::CloudType>> \ 188 add##SS##CloudType##ConstructorToTable_; DSMCCloud< dsmcParcel > CloudType
const dictionary & dict() const
Return the dictionary.
static autoPtr< PairModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
PairModel(CloudType &owner)
Construct null from cloud owner.
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.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
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.
scalar forceCoeff(typename CloudType::parcelType &pA, typename CloudType::parcelType &pB) const
Return the force coefficient based on the forceRampTime_.
Macros to ease declaration of run-time selection tables.
virtual label nSubCycles() const =0
For PairModels that control the timestep, calculate the.