44 #ifndef Foam_injectedParticle_H 45 #define Foam_injectedParticle_H 56 class injectedParticle;
57 Ostream&
operator<<(Ostream&,
const injectedParticle&);
119 const label celli = -1
131 const bool doLocate =
true 140 bool newFormat =
true 164 const polyMesh& mesh_;
173 autoPtr<injectedParticle>
operator()(Istream& is)
const TypeName("injectedParticle")
Runtime type information.
injectedParticle(const polyMesh &mesh, const vector &position, const label celli=-1)
Construct from a position and a cell.
autoPtr< injectedParticle > operator()(Istream &is) const
void writeProperties(Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly) const
Write individual parcel properties to stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
const vector & U() const noexcept
Return const access to velocity.
Primarily stores particle properties so that it can be injected at a later time. Note that this store...
AddToPropertyList(particle, " tag"+" soi"+" d"+" (Ux Uy Uz)";)
String representation of properties.
static const std::size_t sizeofFields
Size in bytes of the fields.
virtual void writePosition(Ostream &) const
Write the particle position and cell.
static void writeObjects(const Cloud< injectedParticle > &c, objectRegistry &obr)
Write particle fields as objects into the obr registry.
A class for handling words, derived from Foam::string.
A List of wordRe with additional matching capabilities.
static autoPtr< particle > Clone(const Derived &p)
Clone a particle.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
virtual autoPtr< particle > clone() const
Return a (basic particle) clone.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
const polyMesh & mesh() const noexcept
Return the mesh database.
const dimensionedScalar c
Speed of light in a vacuum.
label tag() const noexcept
Return const access to the tag.
static void readObjects(Cloud< injectedParticle > &c, const objectRegistry &obr)
Read particle fields as objects from the obr registry.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Mesh consisting of general polyhedral cells.
scalar d() const noexcept
Return const access to diameter.
Registry of regIOobjects.
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
scalar soi() const noexcept
Return const access to the start of injection.
iNew(const polyMesh &mesh)
vector position() const
Return current particle position.
static void writeFields(const Cloud< injectedParticle > &c)
Write fields.
scalar soi_
Start of injection [s].
static void readFields(Cloud< injectedParticle > &c)
Read fields.