33 #ifndef ORourkeCollision_H 34 #define ORourkeCollision_H 47 template<
class CloudType>
68 typename CloudType::parcelType::trackingData& td,
ORourkeCollision(const dictionary &dict, CloudType &cloud, const word &modelName=typeName)
Construct from dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e...
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
virtual void collide(typename CloudType::parcelType::trackingData &td, const scalar dt)
Main collision routine.
const word & modelName() const
Return const access to the name of the sub-model.
const dictionary & dict() const
Return const access to the cloud dictionary.
virtual ~ORourkeCollision()
Destructor.
virtual autoPtr< StochasticCollisionModel< CloudType > > clone() const
Construct and return a clone.
A class for handling words, derived from string.
A cloud is a collection of lagrangian particles.
virtual bool collideParcels(const scalar dt, parcelType &p1, parcelType &p2, scalar &m1, scalar &m2)
Collide parcels and return true if mass has changed.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
CloudType::parcelType parcelType
Convenience typedef to the cloud's parcel type.
virtual bool collideSorted(const scalar dt, parcelType &p1, parcelType &p2, scalar &m1, scalar &m2)
Collision model by P.J. O'Rourke.
TypeName("ORourke")
Runtime type information.
Templated stochastic collision model class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Templated base class for dsmc cloud.
Switch coalescence_
Coalescence activation switch.