39 #ifndef cellPoint_LagrangianAverage_H
40 #define cellPoint_LagrangianAverage_H
51 namespace LagrangianAverages
106 const bool hasWeightSum
134 template<
class CellWeight>
138 const CellWeight& cellWeight
149 template<
class CellWeight>
153 const CellWeight& cellWeight
164 static void clear(data& d);
167 static void removeFromCells
175 static void addToCells
183 static void addToPoints
191 static void removeFromPoints(
const data& dd, data& d);
194 static void addToPoints(
const data& dd, data& d);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Basic Lagrangian averaging process in which values are averaged in the cells and then interpolated as...
virtual void remove(const LagrangianSubSubField< scalar > &weight, const LagrangianSubSubField< Type > &psi)
Remove weighted values from the average.
virtual ~cellPoint()
Destructor.
virtual void add(const LagrangianSubSubField< scalar > &weight, const LagrangianSubSubField< Type > &psi, const bool cache)
Add weighted values to the average.
cellPoint(const word &name, const LagrangianMesh &mesh, const dimensionSet &dimensions, const Field< scalar > &weightSum)
Construct with a name, for a mesh and with given dimensions.
virtual void correct(const LagrangianSubSubField< scalar > &weight, const LagrangianSubSubField< Type > &psi, const bool cache)
Correct weighted values in the average.
TypeName("cellPoint")
Runtime type information.
Class containing Lagrangian geometry and topology.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Dimension set for the base types.
Mesh consisting of general polyhedral cells.
A class for managing temporary objects.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
const volScalarField & psi
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const HashTable< dimensionSet > & dimensions()
Get the table of dimension sets.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.