Go to the documentation of this file.
33 template<
class CloudType>
38 "(rebound stick escape)"
44 template<
class CloudType>
78 template<
class CloudType>
85 if (itWord ==
"rebound")
89 else if (itWord ==
"stick")
93 else if (itWord ==
"escape")
106 template<
class CloudType>
113 UName_(
"unknown_UName")
117 template<
class CloudType>
126 UName_(this->coeffDict().lookupOrDefault(
"UName",
word(
"U"))),
132 template<
class CloudType>
147 template<
class CloudType>
154 template<
class CloudType>
161 template<
class CloudType>
167 escapedMass_ += mass;
172 template<
class CloudType>
175 const label escapedParcels0 =
176 this->
template getBaseProperty<label>(
"escapedParcels");
177 const label escapedParcelsTotal =
180 const scalar escapedMass0 =
181 this->
template getBaseProperty<scalar>(
"escapedMass");
182 const scalar escapedMassTotal =
185 os <<
" Parcel fate: system (number, mass)" <<
nl
186 <<
" - escape = " << escapedParcelsTotal
187 <<
", " << escapedMassTotal <<
endl;
189 if (this->outputTime())
191 this->setBaseProperty(
"escapedParcels", escapedParcelsTotal);
194 this->setBaseProperty(
"escapedMass", escapedMassTotal);
A class for handling words, derived from 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.
virtual ~PatchInteractionModel()
Destructor.
static wordList interactionTypeNames_
const word UName_
Name of velocity field - default = "U".
Base class for cloud sub-models.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const word & UName() const
Return name of velocity field.
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 any number of values (e....
PatchInteractionModel(CloudType &owner)
Construct null from owner.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static interactionType wordToInteractionType(const word &itWord)
Convert word to interaction result.
virtual void info(Ostream &os)
Write patch interaction info to stream.
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.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.