39 #ifndef CloudAverageField_H
40 #define CloudAverageField_H
86 mutable enum class psiAverageState
97 template<
class MethodWeightSum,
class MethodNoWeightSum,
class ... Args>
A cloud field that is averaged and then interpolated back to the cloud. Uses CloudDerivedField to pro...
void remove(const LagrangianSubMesh &subMesh)
Remove this sub-mesh from the average.
CloudAverageField(const word &name, const DimensionedField< scalar, volMesh > &cellWeightSum, const CloudDerivedField< Type > &weightPsi)
Construct from a name, a cell weight sum and a derived field.
void add(const LagrangianSubMesh &subMesh, const bool cache)
Add this sub-mesh to the average.
void correct(const LagrangianSubMesh &subMesh, const bool cache)
Correct the average with values from the sub-mesh.
A field derived from other state fields of the cloud. Stores and virtualises a function or a method w...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Simple wrapper to provide an optional reference to a Lagrangian model.
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for managing temporary objects.
A class for handling words, derived from string.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
Foam::argList args(argc, argv)