30 template<
class CloudType>
44 template<
class CloudType>
51 template<
class CloudType>
62 label typeId = p.typeId();
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.GaussNormal()*tw2
133 U -= 2.0*U_dot_nw*
nw;
dimensionedScalar sqrt(const dimensionedScalar &ds)
virtual ~MixedDiffuseSpecular()
Destructor.
Simple random number generator.
cachedRandom rndGen(label(0),-1)
dimensioned< scalar > mag(const dimensioned< Type > &)
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
label index() const
Return the index of this patch in the boundaryMesh.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const volScalarField & boundaryT() const
Return macroscopic temperature.
A list of keyword definitions, which are a keyword followed by any number of values (e...
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Templated wall interaction model class.
scalar equipartitionInternalEnergy(scalar temperature, direction internalDegreesOfFreedom)
Generate a random internal energy, sampled from the.
dimensionedScalar log(const dimensionedScalar &ds)
stressControl lookup("compactNormalStress") >> compactNormalStress
virtual void correct(typename CloudType::parcelType &p, const wallPolyPatch &wpp)
Apply wall correction.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
label k
Boltzmann constant.
MixedDiffuseSpecular(const dictionary &dict, CloudType &cloud)
Construct from dictionary.
const volVectorField & boundaryU() const
Return macroscopic velocity.
Random & rndGen()
Return refernce to the random object.
Vector< scalar > vector
A scalar version of the templated Vector.
Templated base class for dsmc cloud.
const List< typename ParcelType::constantProperties > & constProps() const
Return all of the constant properties.
label whichFace(const label l) const
Return label of face in patch from global face label.