33 template<
class CloudType>
46 template<
class CloudType>
53 template<
class CloudType>
64 label typeId = p.typeId();
74 scalar U_dot_nw = U &
nw;
83 while (
mag(Ut) < SMALL)
91 U.
x()*(0.8 + 0.2*
rndGen.scalar01()),
92 U.
y()*(0.8 + 0.2*
rndGen.scalar01()),
93 U.
z()*(0.8 + 0.2*
rndGen.scalar01())
109 scalar mass = cloud.
constProps(typeId).mass();
117 +
rndGen.GaussNormal()*tw2
cachedRandom rndGen(label(0),-1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label whichFace(const label l) const
Return label of face in patch from global face label.
dimensionedScalar log(const dimensionedScalar &ds)
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual void correct(typename CloudType::parcelType &p, const wallPolyPatch &wpp)
Apply wall correction.
dimensionedScalar sqrt(const dimensionedScalar &ds)
Vector< scalar > vector
A scalar version of the templated Vector.
const volScalarField & boundaryT() const
Return macroscopic temperature.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Random & rndGen()
Return refernce to the random object.
Simple random number generator.
scalar equipartitionInternalEnergy(scalar temperature, direction internalDegreesOfFreedom)
Generate a random internal energy, sampled from the.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const List< typename ParcelType::constantProperties > & constProps() const
Return all of the constant properties.
MaxwellianThermal(const dictionary &dict, CloudType &cloud)
Construct from dictionary.
const dimensionedScalar k
Boltzmann constant.
const volVectorField & boundaryU() const
Return macroscopic velocity.
dimensioned< scalar > mag(const dimensioned< Type > &)
Templated wall interaction model class.
virtual ~MaxwellianThermal()
Destructor.
Templated base class for dsmc cloud.
label index() const
Return the index of this patch in the boundaryMesh.