44#ifndef Foam_injectedParticle_H
45#define Foam_injectedParticle_H
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
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.
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
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.
label & tag() noexcept
Return the tag.
virtual autoPtr< particle > clone() const
Return a (basic particle) clone.
static const std::size_t sizeofFields
Size in bytes of the fields.
const vector & U() const noexcept
Return const access to velocity.
static void writeObjects(const Cloud< injectedParticle > &c, objectRegistry &obr)
Write particle fields as objects into the obr registry.
scalar & soi() noexcept
Return the start of injection.
static void readObjects(Cloud< injectedParticle > &c, const objectRegistry &obr)
Read particle fields as objects from the obr registry.
scalar d() const noexcept
Return const access to diameter.
static void writeFields(const Cloud< injectedParticle > &c)
Write fields.
label tag() const noexcept
Return const access to the tag.
scalar soi() const noexcept
Return const access to the start of injection.
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.
injectedParticle(const polyMesh &mesh, const vector &position, const label celli=-1)
Construct from a position and a cell.
vector & U() noexcept
Return access to velocity.
scalar & d() noexcept
Return access to diameter.
AddToPropertyList(particle, " tag"+" soi"+" d"+" (Ux Uy Uz)";)
String representation of properties.
Registry of regIOobjects.
vector position() const
Return current particle position.
static autoPtr< particle > Clone(const Derived &p)
Clone a particle.
const polyMesh & mesh() const noexcept
Return the mesh database.
particle(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from components.
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).
vector point
Point is a vector.
#define AddToPropertyList(ParcelType, str)
Add to existing static 'propertyList' for particle properties.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.