Go to the documentation of this file.
44 #ifndef injectedParticle_H
45 #define injectedParticle_H
57 class injectedParticle;
58 Ostream&
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();
scalar d() const
Return const access to diameter.
A class for handling words, derived from Foam::string.
Factory class to read-construct particles used for.
autoPtr< injectedParticle > operator()(Istream &is) const
static void writeFields(const Cloud< injectedParticle > &c)
Write fields.
virtual autoPtr< particle > clone() const
Construct and return a (basic particle) clone.
static void readObjects(Cloud< injectedParticle > &c, const objectRegistry &obr)
Read particle fields as objects from the obr registry.
const vector & U() const
Return const access to velocity.
Mesh consisting of general polyhedral cells.
Registry of regIOobjects.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
AddToPropertyList(particle, " tag"+" soi"+" d"+" (Ux Uy Uz)";)
String representation of properties.
label tag() const
Return const access to the tag.
vector position() const
Return current particle position.
scalar soi_
Start of injection [s].
iNew(const polyMesh &mesh)
const polyMesh & mesh() const
Return the mesh database.
Primarily stores particle properties so that it can be injected at a later time. Note that this store...
static void readFields(Cloud< injectedParticle > &c)
Read fields.
injectedParticle(const polyMesh &mesh, const vector &position, const label celli=-1)
Construct from a position and a cell.
static const std::size_t sizeofFields
Size in bytes of the fields.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
scalar soi() const
Return const access to the start of injection.
A List of wordRe with additional matching capabilities.
void writeProperties(Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly) const
Write individual parcel properties to stream.
static void writeObjects(const Cloud< injectedParticle > &c, objectRegistry &obr)
Write particle fields as objects into the obr registry.
TypeName("injectedParticle")
Runtime type information.
const dimensionedScalar c
Speed of light in a vacuum.
virtual void writePosition(Ostream &) const
Write the particle position and cell.
virtual autoPtr< particle > clone(const polyMesh &mesh) const
Construct and return a (basic particle) clone.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...