35 template<
class CloudType>
48 template<
class CloudType>
55 template<
class CloudType>
65 label typeId =
p.typeId();
67 const label wppIndex =
p.patch();
69 const polyPatch& wpp =
p.mesh().boundaryMesh()[wppIndex];
76 scalar U_dot_nw =
U & nw;
85 while (
mag(Ut) < SMALL)
92 U.x()*(0.8 + 0.2*
rndGen.sample01<scalar>()),
93 U.y()*(0.8 + 0.2*
rndGen.sample01<scalar>()),
94 U.z()*(0.8 + 0.2*
rndGen.sample01<scalar>())
110 scalar mass = cloud.
constProps(typeId).mass();
117 rndGen.GaussNormal<scalar>()*tw1
118 +
rndGen.GaussNormal<scalar>()*tw2
Different types of constants.
const volScalarField & boundaryT() const
Return macroscopic temperature.
label whichFace(const label facei) const noexcept
Return label of face in patch from global face label.
dimensionedScalar log(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedScalar sqrt(const dimensionedScalar &ds)
const volVectorField & boundaryU() const
Return macroscopic velocity.
A cloud is a registry collection of lagrangian particles.
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.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
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.
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 Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
const List< typename ParcelType::constantProperties > & constProps() const
Return all of the constant properties.