41#ifndef StochasticCollisionModel_H
42#define StochasticCollisionModel_H
58template<
class CloudType>
141#define makeStochasticCollisionModel(CloudType) \
143 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
144 defineNamedTemplateTypeNameAndDebug \
146 Foam::StochasticCollisionModel<kinematicCloudType>, \
151 defineTemplateRunTimeSelectionTable \
153 StochasticCollisionModel<kinematicCloudType>, \
159#define makeStochasticCollisionModelType(SS, CloudType) \
161 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
162 defineNamedTemplateTypeNameAndDebug(Foam::SS<kinematicCloudType>, 0); \
164 Foam::StochasticCollisionModel<kinematicCloudType>:: \
165 adddictionaryConstructorToTable<Foam::SS<kinematicCloudType>> \
166 add##SS##CloudType##kinematicCloudType##ConstructorToTable_;
Base class for cloud sub-models.
const CloudType & owner() const
Return const access to the owner cloud.
Templated base class for dsmc cloud.
Templated stochastic collision model class.
declareRunTimeSelectionTable(autoPtr, StochasticCollisionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
virtual ~StochasticCollisionModel()
Destructor.
static autoPtr< StochasticCollisionModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
TypeName("collisionModel")
Runtime type information.
virtual autoPtr< StochasticCollisionModel< CloudType > > clone() const =0
Construct and return a clone.
virtual void collide(typename CloudType::parcelType::trackingData &td, const scalar dt)=0
Main collision routine.
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,...
Class used to pass data into container.
const dictionary & dict() const
Return const access to the cloud dictionary.
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.