Go to the documentation of this file.
35 template<
class CloudType>
48 template<
class CloudType>
55 template<
class CloudType>
65 label typeId =
p.typeId();
67 const label wppIndex =
p.patch();
69 const polyPatch& wpp =
p.mesh().boundaryMesh()[wppIndex];
76 scalar U_dot_nw =
U & nw;
85 while (
mag(Ut) < SMALL)
92 U.x()*(0.8 + 0.2*
rndGen.sample01<scalar>()),
93 U.y()*(0.8 + 0.2*
rndGen.sample01<scalar>()),
94 U.z()*(0.8 + 0.2*
rndGen.sample01<scalar>())
110 scalar mass = cloud.
constProps(typeId).mass();
117 rndGen.GaussNormal<scalar>()*tw1
118 +
rndGen.GaussNormal<scalar>()*tw2
const dimensionedScalar k
const List< typename ParcelType::constantProperties > & constProps() const
Different types of constants.
const volScalarField & boundaryT() const
const volVectorField & boundaryU() const
virtual ~MaxwellianThermal()
A patch is a list of labels that address the faces in the global face list.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
label max(const labelHashSet &set, label maxValue=labelMin)
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
dimensionedScalar log(const dimensionedScalar &ds)
Vector< scalar > vector
A scalar version of the templated Vector.
virtual void correct(typename CloudType::parcelType &p)
A cloud is a registry collection of lagrangian particles.
label whichFace(const label l) const
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
scalar equipartitionInternalEnergy(scalar temperature, direction internalDegreesOfFreedom)
MaxwellianThermal(const dictionary &dict, CloudType &cloud)
const Boundary & boundaryField() const