31 template<
class CloudType>
41 this->coeffDict().template lookup<scalar>(
"diffuseFraction")
48 template<
class CloudType>
55 template<
class CloudType>
78 scalar U_dot_nw =
U & nw;
92 while (
mag(Ut) < small)
107 Ut =
U - U_dot_nw*nw;
116 scalar
T =
cloud.boundaryT().boundaryField()[wppIndex][wppLocalFace];
118 scalar mass =
cloud.constProps(typeId).mass();
120 direction iDof =
cloud.constProps(typeId).internalDegreesOfFreedom();
130 U +=
cloud.boundaryU().boundaryField()[wppIndex][wppLocalFace];
132 Ei =
cloud.equipartitionInternalEnergy(
T, iDof);
140 U -= 2.0*U_dot_nw*nw;
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
virtual ~MixedDiffuseSpecular()
Destructor.
virtual void correct(typename CloudType::parcelType &p)
Apply wall correction.
MixedDiffuseSpecular(const dictionary &dict, CloudType &cloud)
Construct from dictionary.
Templated wall interaction model class.
Base class for clouds. Provides a basic evolution algorithm, models, and a database for caching deriv...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Standard normal distribution. Not selectable.
virtual scalar sample() const
Sample the distribution.
const polyMesh & mesh() const
Return reference to polyMesh.
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void T(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1)
void mag(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
dimensionedScalar log(const dimensionedScalar &ds)
Vector< scalar > vector
A scalar version of the templated Vector.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
randomGenerator rndGen(653213)