Go to the documentation of this file.
36 #ifndef AveragingMethod_H
37 #define AveragingMethod_H
56 public FieldField<Field, Type>
137 const point position,
145 const point position,
152 const point position,
164 virtual bool write()
const;
Base class for lagrangian averaging methods.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for managing temporary objects.
void operator+=(tmp< FieldField< Field, Type > > x)
Add-equal tmp.
typeOfRank< typename pTraits< arg1 >::cmptType, int(pTraits< arg1 >::rank)+int(pTraits< arg2 >::rank) >::type type
virtual ~AveragingMethod()
Destructor.
void operator/=(tmp< FieldField< Field, scalar > > x)
Divide-equal tmp.
static autoPtr< AveragingMethod< Type > > New(const IOobject &io, const dictionary &dict, const fvMesh &mesh)
Selector.
virtual tmp< Field< Type > > internalField() const =0
Return an internal field of the average.
virtual TypeGrad interpolateGrad(const point position, const tetIndices &tetIs) const =0
Interpolate gradient.
void operator*=(tmp< FieldField< Field, Type > > x)
Multiply-equal tmp.
const dictionary & dict_
Protected data.
declareRunTimeSelectionTable(autoPtr, AveragingMethod, dictionary,(const IOobject &io, const dictionary &dict, const fvMesh &mesh),(io, dict, mesh))
Declare runtime constructor selection table.
virtual void updateGrad()
Protected member functions.
virtual void add(const point position, const tetIndices &tetIs, const Type &value)=0
Member Functions.
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.
virtual Type interpolate(const point position, const tetIndices &tetIs) const =0
Interpolate.
AveragingMethod(const IOobject &io, const dictionary &dict, const fvMesh &mesh, const labelList &size)
Constructors.
TypeName("averagingMethod")
Runtime type information.
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual bool write() const
Write using setting from DB.
Macros to ease declaration of run-time selection tables.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void operator=(const AveragingMethod< Type > &x)
Assign to another average.
const fvMesh & mesh_
The mesh on which the averaging is to be done.
virtual bool writeData(Ostream &) const
Dummy write.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual autoPtr< AveragingMethod< Type > > clone() const =0
Construct and return a clone.
virtual void average()
Calculate the average.
outerProduct< vector, Type >::type TypeGrad
Protected typedefs.