30 template<
class CloudType>
40 this->coeffDict().template lookup<scalar>(
"diffuseFraction")
47 template<
class CloudType>
54 template<
class CloudType>
64 label typeId = p.typeId();
66 const label wppIndex = p.patch();
75 scalar U_dot_nw = U &
nw;
81 if (diffuseFraction_ >
rndGen.scalar01())
88 while (
mag(Ut) < small)
96 U.
x()*(0.8 + 0.2*
rndGen.scalar01()),
97 U.
y()*(0.8 + 0.2*
rndGen.scalar01()),
98 U.
z()*(0.8 + 0.2*
rndGen.scalar01())
103 Ut = U - U_dot_nw*
nw;
114 scalar mass = cloud.
constProps(typeId).mass();
122 +
rndGen.scalarNormal()*tw2
136 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.
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.