30 template<
class CloudType>
44 template<
class CloudType>
51 template<
class CloudType>
61 label typeId = p.typeId();
63 const label wppIndex = p.patch();
72 scalar U_dot_nw = U &
nw;
78 if (diffuseFraction_ >
rndGen.scalar01())
85 while (
mag(Ut) < small)
93 U.
x()*(0.8 + 0.2*
rndGen.scalar01()),
94 U.
y()*(0.8 + 0.2*
rndGen.scalar01()),
95 U.
z()*(0.8 + 0.2*
rndGen.scalar01())
100 Ut = U - U_dot_nw*
nw;
111 scalar mass = cloud.
constProps(typeId).mass();
119 +
rndGen.scalarNormal()*tw2
133 U -= 2.0*U_dot_nw*
nw;
const volScalarField & boundaryT() const
Return macroscopic temperature.
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)
virtual void correct(typename CloudType::parcelType &p)
Apply wall correction.
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 > &)
const Boundary & boundaryField() const
Return const-reference to the boundary field.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
dimensionedScalar sqrt(const dimensionedScalar &ds)
Vector< scalar > vector
A scalar version of the templated Vector.
label k
Boltzmann constant.
virtual ~MixedDiffuseSpecular()
Destructor.
stressControl lookup("compactNormalStress") >> compactNormalStress
const volVectorField & boundaryU() const
Return macroscopic velocity.
Random & rndGen()
Return references to the random object.
scalar equipartitionInternalEnergy(scalar temperature, direction internalDegreesOfFreedom)
Generate a random internal energy, sampled from the.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
dimensioned< scalar > mag(const dimensioned< Type > &)
Templated wall interaction model class.
A patch is a list of labels that address the faces in the global face list.
Templated base class for dsmc cloud.
const List< typename ParcelType::constantProperties > & constProps() const
Return all of the constant properties.
MixedDiffuseSpecular(const dictionary &dict, CloudType &cloud)
Construct from dictionary.
label whichFace(const label l) const
Return label of face in patch from global face label.