Go to the documentation of this file.
36 template<
class CloudType>
39 "rebound",
"stick",
"escape"
45 template<
class CloudType>
48 this->
writeHeader(os,
"Particle patch interaction");
49 this->writeHeaderValue(os,
"Model", this->modelType());
51 this->writeCommented(os,
"Time");
52 this->writeTabbed(os,
"escapedParcels");
53 this->writeTabbed(os,
"escapedMass");
59 template<
class CloudType>
98 template<
class CloudType>
105 if (itWord ==
"none")
109 if (itWord ==
"rebound")
113 else if (itWord ==
"stick")
117 else if (itWord ==
"escape")
130 template<
class CloudType>
144 template<
class CloudType>
161 UName_(this->coeffDict().lookupOrDefault(
"U",
word(
"U"))),
167 template<
class CloudType>
183 template<
class CloudType>
190 template<
class CloudType>
196 escapedMass_ += mass;
201 template<
class CloudType>
204 const label escapedParcels0 =
205 this->
template getBaseProperty<label>(
"escapedParcels");
206 const label escapedParcelsTotal =
209 const scalar escapedMass0 =
210 this->
template getBaseProperty<scalar>(
"escapedMass");
211 const scalar escapedMassTotal =
214 os <<
" Parcel fate: system (number, mass)" <<
nl
215 <<
" - escape = " << escapedParcelsTotal
216 <<
", " << escapedMassTotal <<
endl;
218 if (!this->writtenHeader_)
220 this->writeFileHeader(this->file());
221 this->writtenHeader_ =
true;
222 this->file() <<
endl;
225 this->writeCurrentTime(this->file());
227 <<
tab << escapedParcelsTotal <<
tab << escapedMassTotal;
230 if (this->writeTime())
232 this->setBaseProperty(
"escapedParcels", escapedParcelsTotal);
235 this->setBaseProperty(
"escapedMass", escapedMassTotal);
A class for handling words, derived from Foam::string.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
label escapedParcels_
Number of parcels escaped.
void addToEscapedParcels(const scalar mass)
Add to escaped parcels.
const word UName_
Name of velocity field - default = "U".
Base class for cloud sub-models.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void writeHeader(Ostream &os, const word &fieldName)
const word & UName() const
Return name of velocity field.
Templated patch interaction model class.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
PatchInteractionModel(CloudType &owner)
Construct null from owner.
virtual void writeFileHeader(Ostream &os)
Output file header information.
static interactionType wordToInteractionType(const word &itWord)
Convert word to interaction result.
virtual void info(Ostream &os)
Write patch interaction info to stream.
functionObject base class for writing single files
scalar escapedMass_
Mass of parcels escaped.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static word interactionTypeToWord(const interactionType &itEnum)
Convert interaction result to word.