77 #ifndef totalNumberLagrangianScalarFieldSource_H
78 #define totalNumberLagrangianScalarFieldSource_H
92 class totalNumberLagrangianScalarFieldSource
94 public uniformSizeNumberLagrangianScalarFieldSource
101 const bool haveVolume_;
104 const scalar volumeOrMass_;
Base class for Lagrangian injections. Minimal wrapper over LagrangianSource. Implements some utility ...
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
A class for managing temporary objects.
This source condition sets the values of the number field to recover a specified total volume or mass...
totalNumberLagrangianScalarFieldSource(const regIOobject &, const dictionary &dict)
Construct from internal field and dictionary.
virtual void write(Ostream &) const
Write.
virtual tmp< LagrangianSubScalarField > value(const LagrangianInjection &, const LagrangianSubMesh &) const
Return the value for an instantaneous injection.
TypeName("totalNumber")
Runtime type information.
virtual autoPtr< LagrangianScalarFieldSource > clone(const regIOobject &iIo) const
Construct and return a clone setting the internal field reference.
virtual ~totalNumberLagrangianScalarFieldSource()
Destructor.