34 template<
class CloudType>
47 template<
class CloudType>
54 template<
class CloudType>
60 const polyMesh& mesh = this->owner().mesh();
68 const label wppIndex =
p.patch(mesh);
74 const vector nw =
p.normal(mesh);
77 scalar U_dot_nw =
U & nw;
87 while (
mag(Ut) < small)
102 Ut =
U - U_dot_nw*nw;
111 scalar
T =
cloud.boundaryT().boundaryField()[wppIndex][wppLocalFace];
113 scalar mass =
cloud.constProps(typeId).mass();
115 direction iDof =
cloud.constProps(typeId).internalDegreesOfFreedom();
125 U +=
cloud.boundaryU().boundaryField()[wppIndex][wppLocalFace];
127 Ei =
cloud.equipartitionInternalEnergy(
T, iDof);
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
MaxwellianThermal(const dictionary &dict, CloudType &cloud)
Construct from dictionary.
virtual ~MaxwellianThermal()
Destructor.
virtual void correct(typename CloudType::parcelType &p)
Apply wall correction.
Templated wall interaction model class.
A cloud is a collection of lagrangian particles.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Standard normal distribution. Not selectable.
virtual scalar sample() const
Sample the distribution.
Mesh consisting of general polyhedral cells.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
A patch is a list of labels that address the faces in the global face list.
label whichFace(const label l) const
Return label of face in patch from global face label.
scalar scalar01()
Return a scalar uniformly distributed between zero and one.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedScalar log(const dimensionedScalar &ds)
Vector< scalar > vector
A scalar version of the templated Vector.
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< scalar > mag(const dimensioned< Type > &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
randomGenerator rndGen(653213)