37template<
class CloudType>
46 this->owner().
name() +
":collisionDensity",
61 this->owner().
name() +
":collisionDensityRate",
68 (collisionDensity_ - collisionDensity0_)
69 /(this->owner().
mesh().time().value() - time0_)
73 collisionDensity0_ == collisionDensity_;
74 time0_ = this->owner().mesh().time().value();
80template<
class CloudType>
89 minSpeed_(
dict.getOrDefault<scalar>(
"minSpeed", -1)),
102 time0_(this->owner().
mesh().time().value())
104 collisionDensity_ == 0;
105 collisionDensity0_ == 0;
109 this->
owner().
name() +
":collisionDensity",
125template<
class CloudType>
132 minSpeed_(ppm.minSpeed_),
133 collisionDensity_(ppm.collisionDensity_),
134 collisionDensity0_(ppm.collisionDensity0_),
141template<
class CloudType>
149 const label patchi = pp.
index();
150 const label patchFacei =
p.face() - pp.
start();
153 this->owner().patchData(
p, pp, nw, Up);
155 const scalar speed = (
p.U() - Up) & nw;
156 if (speed > minSpeed_)
158 collisionDensity_[patchi][patchFacei] +=
159 1/this->owner().mesh().magSf().boundaryField()[patchi][patchFacei];
Various functions to operate on Lists.
Templated cloud function object base class.
const CloudType & owner() const
Return const access to the owner cloud.
Templated base class for dsmc cloud.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
bool typeHeaderOk(const bool checkType=true, const bool search=true, const bool verbose=true)
Read header (uses typeFilePath to find file) and check its info.
Function object which generates fields of the number and rate of collisions per unit area on all patc...
virtual void postPatch(const parcelType &p, const polyPatch &pp, bool &keepParticle)
Post-patch hook.
void write()
Write post-processing info.
This boundary condition is not designed to be evaluated; it is assmued that the value is assigned via...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
label index() const noexcept
The index of this patch in the boundaryMesh.
A patch is a list of labels that address the faces in the global face list.
label start() const
Return start label of this patch in the polyMesh face list.
virtual bool write(const bool valid=true) const
Write using setting from DB.
A class for handling words, derived from Foam::string.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
const dimensionSet dimless
Dimensionless.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
const dimensionSet dimArea(sqr(dimLength))
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Operations on lists of strings.