36 #ifndef AveragingMethod_H
37 #define AveragingMethod_H
166 virtual bool write(
const bool write =
true)
const;
Base class for lagrangian averaging methods.
void operator+=(tmp< FieldField< Field, Type >> x)
Add-equal tmp.
virtual GradType interpolateGrad(const barycentric &coordinates, const tetIndices &tetIs) const =0
Interpolate gradient.
const fvMesh & mesh_
The mesh on which the averaging is to be done.
virtual bool writeData(Ostream &) const
Dummy write.
virtual autoPtr< AveragingMethod< Type > > clone() const =0
Construct and return a clone.
void operator=(const AveragingMethod< Type > &x)
Assign to another average.
AveragingMethod(const IOobject &io, const dictionary &dict, const fvMesh &mesh, const labelList &size)
Constructors.
void operator/=(tmp< FieldField< Field, scalar >> x)
Divide-equal tmp.
virtual void add(const barycentric &coordinates, const tetIndices &tetIs, const Type &value)=0
Member Functions.
virtual ~AveragingMethod()
Destructor.
void operator*=(tmp< FieldField< Field, Type >> x)
Multiply-equal tmp.
static autoPtr< AveragingMethod< Type > > New(const IOobject &io, const dictionary &dict, const fvMesh &mesh)
Selector.
const dictionary & dict_
Protected data.
virtual tmp< Field< Type > > primitiveField() const =0
Return an internal field of the average.
virtual bool write(const bool write=true) const
Write using setting from DB.
virtual void updateGrad()
Protected member functions.
declareRunTimeSelectionTable(autoPtr, AveragingMethod, dictionary,(const IOobject &io, const dictionary &dict, const fvMesh &mesh),(io, dict, mesh))
Declare runtime constructor selection table.
virtual void average()
Calculate the average.
TypeName("averagingMethod")
Runtime type information.
virtual Type interpolate(const barycentric &coordinates, const tetIndices &tetIs) const =0
Interpolate.
outerProduct< vector, Type >::type GradType
Protected typedefs.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
label size() const
Return the number of elements in the UPtrList.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh data needed to do the Finite Volume discretisation.
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
A class for managing temporary objects.
Macros to ease declaration of run-time selection tables.