74 #ifndef diskInjection_H
75 #define diskInjection_H
94 public LagrangianInjection
101 autoPtr<Function1<point>> centre_;
104 autoPtr<Function1<vector>> axis_;
107 scalar innerDiameter_;
110 scalar outerDiameter_;
113 autoPtr<Function1<scalar>> numberRate_;
116 mutable scalar numberDeferred_;
119 mutable restartableRandomGenerator rndGen_;
122 mutable label timeIndex_;
125 mutable autoPtr<scalarField> rFracPtr_;
128 mutable autoPtr<vectorField> axisPtr_;
131 mutable autoPtr<vectorField> radialPtr_;
Class containing Lagrangian geometry and topology.
const LagrangianMesh & mesh() const
The mesh.
const word & name() const
The source name.
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
virtual void writeState(Ostream &os) const
Write state.
LagrangianSubMesh modify(LagrangianMesh &mesh, const LagrangianSubMesh &) const
Create new elements in the Lagrangian mesh.
diskInjection(const word &name, const LagrangianMesh &mesh, const dictionary &modelDict, const dictionary &stateDict)
Construct from components.
const scalarField & rFrac() const
Access the cached radius fractions. Only valid during injection.
const vectorField & radial() const
Access the cached radial vectors. Only valid during injection.
virtual bool read(const dictionary &modelDict)
Read dictionary.
TypeName("diskInjection")
Runtime type information.
const vectorField & axis() const
Access the cached axes. Only valid during injection.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Disk injection model. This injects particles continuously over a disk with a given number rate....
static dictionary stateDict(const word &name, const objectRegistry &db)
Construct and return the state dictionary for reading.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.