33 template<
class CloudType>
41 Tref_(this->coeffDict().template lookup<scalar>(
"Tref"))
47 template<
class CloudType>
54 template<
class CloudType>
63 label typeIdP = pP.typeId();
64 label typeIdQ = pQ.typeId();
80 scalar cR =
mag(pP.U() - pQ.U());
91 scalar mR = mP*mQ/(mP + mQ);
103 template<
class CloudType>
112 label typeIdP = pP.typeId();
113 label typeIdQ = pQ.typeId();
123 vector Ucm = (mP*UP + mQ*UQ)/(mP + mQ);
125 scalar cR =
mag(UP - UQ);
127 scalar cosTheta = 2.0*
rndGen.scalar01() - 1.0;
129 scalar sinTheta =
sqrt(1.0 - cosTheta*cosTheta);
133 vector postCollisionRelU =
142 UP = Ucm + postCollisionRelU*mQ/(mP + mQ);
144 UQ = Ucm - postCollisionRelU*mP/(mP + mQ);
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Templated DSMC particle collision class.
dimensionedScalar sqrt(const dimensionedScalar &ds)
Vector< scalar > vector
A scalar version of the templated Vector.
dimensionedScalar cos(const dimensionedScalar &ds)
dimensionedScalar exp(const dimensionedScalar &ds)
Random & rndGen()
Return references to the random object.
VariableHardSphere(const dictionary &dict, CloudType &cloud)
Construct from dictionary.
const scalar twoPi(2 *pi)
ParcelType parcelType
Type of parcel the cloud was instantiated for.
dimensionedScalar sin(const dimensionedScalar &ds)
virtual void collide(typename CloudType::parcelType &pP, typename CloudType::parcelType &pQ)
Apply collision.
dimensionedScalar lgamma(const dimensionedScalar &ds)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const dimensionedScalar k
Boltzmann constant.
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual ~VariableHardSphere()
Destructor.
Templated base class for dsmc cloud.
virtual scalar sigmaTcR(const typename CloudType::parcelType &pP, const typename CloudType::parcelType &pQ) const
Return the collision cross section * relative velocity product.
const List< typename ParcelType::constantProperties > & constProps() const
Return all of the constant properties.