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>
62 const interactionType& itEnum
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>
137 functionObjects::writeFile(owner, this->localPath(), typeName, false),
145 template<
class CloudType>
154 functionObjects::writeFile
162 UName_(this->coeffDict().template getOrDefault<
word>(
"U",
"U")),
165 Urmax_(this->coeffDict().template getOrDefault<scalar>(
"UrMax", 0))
169 template<
class CloudType>
176 functionObjects::writeFile(pim),
178 escapedParcels_(pim.escapedParcels_),
179 escapedMass_(pim.escapedMass_),
186 template<
class CloudType>
193 template<
class CloudType>
200 template<
class CloudType>
206 escapedMass_ += mass;
211 template<
class CloudType>
216 template<
class CloudType>
219 const label escapedParcels0 =
220 this->
template getBaseProperty<label>(
"escapedParcels");
221 const label escapedParcelsTotal =
224 const scalar escapedMass0 =
225 this->
template getBaseProperty<scalar>(
"escapedMass");
226 const scalar escapedMassTotal =
229 os <<
" Parcel fate: system (number, mass)" <<
nl
230 <<
" - escape = " << escapedParcelsTotal
231 <<
", " << escapedMassTotal <<
endl;
233 if (!this->writtenHeader_)
235 this->writeFileHeader(this->file());
236 this->writtenHeader_ =
true;
237 this->file() <<
endl;
240 this->writeCurrentTime(this->file());
242 <<
tab << escapedParcelsTotal <<
tab << escapedMassTotal;
245 if (this->writeTime())
247 this->setBaseProperty(
"escapedParcels", escapedParcelsTotal);
250 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)
virtual void addToEscapedParcels(const scalar mass)
Base class for cloud sub-models.
Ostream & endl(Ostream &os)
static void writeHeader(Ostream &os, const word &fieldName)
const word & UName() const
const scalar & Urmax() const
Templated patch interaction model class.
Templated base class for dsmc cloud.
virtual void postEvolve()
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
PatchInteractionModel(CloudType &owner)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void writeFileHeader(Ostream &os)
static interactionType wordToInteractionType(const word &itWord)
const dimensionedScalar e
virtual void info(Ostream &os)
Base class for writing single files from the function objects.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static word interactionTypeToWord(const interactionType &itEnum)