33 template<
class CloudType>
46 template<
class CloudType>
53 template<
class CloudType>
63 label typeId = p.typeId();
65 const label wppIndex = p.patch();
74 scalar U_dot_nw = U &
nw;
83 while (
mag(Ut) < small)
91 U.
x()*(0.8 + 0.2*
rndGen.scalar01()),
92 U.
y()*(0.8 + 0.2*
rndGen.scalar01()),
93 U.
z()*(0.8 + 0.2*
rndGen.scalar01())
109 scalar mass = cloud.
constProps(typeId).mass();
117 +
rndGen.scalarNormal()*tw2
const volScalarField & boundaryT() const
Return macroscopic temperature.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar log(const dimensionedScalar &ds)
A list of keyword definitions, which are a keyword followed by any number of values (e...
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.
const volVectorField & boundaryU() const
Return macroscopic velocity.
Random & rndGen()
Return references to the random object.
virtual void correct(typename CloudType::parcelType &p)
Apply wall correction.
scalar equipartitionInternalEnergy(scalar temperature, direction internalDegreesOfFreedom)
Generate a random internal energy, sampled from the.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
MaxwellianThermal(const dictionary &dict, CloudType &cloud)
Construct from dictionary.
const dimensionedScalar k
Boltzmann constant.
dimensioned< scalar > mag(const dimensioned< Type > &)
Templated wall interaction model class.
virtual ~MaxwellianThermal()
Destructor.
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.
label whichFace(const label l) const
Return label of face in patch from global face label.