55template<
class CloudType>
70 scalar forceRampTime_;
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_;
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Templated pair interaction class.
virtual ~PairModel()
Destructor.
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.
scalar forceCoeff(typename CloudType::parcelType &pA, typename CloudType::parcelType &pB) const
Return the force coefficient based on the forceRampTime_.
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.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling words, derived from Foam::string.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.