44#ifndef injectedParticle_H
45#define injectedParticle_H
57class injectedParticle;
58Ostream&
operator<<(Ostream&,
const injectedParticle&);
120 const label celli = -1
132 const bool doLocate =
true
141 bool newFormat =
true
190 inline label
tag()
const;
193 inline scalar
soi()
const;
196 inline scalar
d()
const;
199 inline const vector&
U()
const;
208 inline scalar&
soi();
Base cloud calls templated on particle type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Factory class to read-construct particles used for.
autoPtr< injectedParticle > operator()(Istream &is) const
iNew(const polyMesh &mesh)
Primarily stores particle properties so that it can be injected at a later time. Note that this store...
TypeName("injectedParticle")
Runtime type information.
static void readFields(Cloud< injectedParticle > &c)
Read fields.
virtual autoPtr< particle > clone(const polyMesh &mesh) const
Construct and return a (basic particle) clone.
const vector & U() const
Return const access to velocity.
scalar d() const
Return const access to diameter.
scalar soi() const
Return const access to the start of injection.
virtual autoPtr< particle > clone() const
Construct and return a (basic particle) clone.
static const std::size_t sizeofFields
Size in bytes of the fields.
static void writeObjects(const Cloud< injectedParticle > &c, objectRegistry &obr)
Write particle fields as objects into the obr registry.
static void readObjects(Cloud< injectedParticle > &c, const objectRegistry &obr)
Read particle fields as objects from the obr registry.
static void writeFields(const Cloud< injectedParticle > &c)
Write fields.
void writeProperties(Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly) const
Write individual parcel properties to stream.
scalar soi_
Start of injection [s].
virtual void writePosition(Ostream &) const
Write the particle position and cell.
label tag() const
Return const access to the tag.
AddToPropertyList(particle, " tag"+" soi"+" d"+" (Ux Uy Uz)";)
String representation of properties.
Registry of regIOobjects.
vector position() const
Return current particle position.
const polyMesh & mesh() const noexcept
Return the mesh database.
Mesh consisting of general polyhedral cells.
A List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
#define AddToPropertyList(ParcelType, str)
Add to existing static 'propertyList' for particle properties.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.