32template<
class CloudType>
40 diffuseFraction_(this->coeffDict().getScalar(
"diffuseFraction"))
46template<
class CloudType>
53template<
class CloudType>
63 label typeId =
p.typeId();
65 const label wppIndex =
p.patch();
74 scalar U_dot_nw =
U & nw;
87 while (
mag(Ut) < SMALL)
101 Ut =
U - U_dot_nw*nw;
110 scalar
T =
cloud.boundaryT().boundaryField()[wppIndex][wppLocalFace];
112 scalar mass =
cloud.constProps(typeId).mass();
114 direction iDof =
cloud.constProps(typeId).internalDegreesOfFreedom();
117 sqrt(physicoChemical::k.value()*
T/mass)
124 U +=
cloud.boundaryU().boundaryField()[wppIndex][wppLocalFace];
126 Ei =
cloud.equipartitionInternalEnergy(
T, iDof);
134 U -= 2.0*U_dot_nw*nw;
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
const Mesh & mesh() const
Return mesh.
Wall interaction setting microscopic velocity to a random one drawn from a Maxwellian distribution co...
virtual ~MixedDiffuseSpecular()
Destructor.
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
Type sample01()
Return a sample whose components lie in the range [0,1].
Templated wall interaction model class.
A cloud is a registry collection of lagrangian particles.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedScalar log(const dimensionedScalar &ds)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)