33 #ifndef TrajectoryCollision_H
34 #define TrajectoryCollision_H
46 template<
class CloudType>
68 virtual void collide(
typename CloudType::parcelType::trackingData& td);
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Collision model by P.J. O'Rourke.
CloudType::parcelType parcelType
Convenience typedef to the cloud's parcel type.
Trajectory collision model by N. Nordin, based on O'Rourke's collision model.
TypeName("trajectory")
Runtime type information.
virtual void collide(typename CloudType::parcelType::trackingData &td)
Main collision routine.
scalar cSpace_
Space coefficient.
virtual ~TrajectoryCollision()
Destructor.
virtual bool collideParcels(const scalar dt, parcelType &p1, parcelType &p2, scalar &m1, scalar &m2)
Collide parcels and return true if mass has changed.
virtual autoPtr< StochasticCollisionModel< CloudType > > clone() const
Construct and return a clone.
scalar cTime_
Time coefficient.
TrajectoryCollision(const dictionary &dict, CloudType &cloud)
Construct from dictionary.
CloudType::parcelType parcelType
Convenience typedef to the cloud's parcel type.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A cloud is a collection of lagrangian particles.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const dictionary & dict() const
Return const access to the cloud dictionary.