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