AveragingMethod< Type > Class Template Referenceabstract

Base class for lagrangian averaging methods. More...

Inheritance diagram for AveragingMethod< Type >:
[legend]
Collaboration diagram for AveragingMethod< Type >:
[legend]

Public Member Functions

 TypeName ("averagingMethod")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, AveragingMethod, dictionary,(const IOobject &io, const dictionary &dict, const fvMesh &mesh),(io, dict, mesh))
 Declare runtime constructor selection table. More...
 
 AveragingMethod (const IOobject &io, const dictionary &dict, const fvMesh &mesh, const labelList &size)
 Constructors. More...
 
 AveragingMethod (const AveragingMethod< Type > &am)
 Construct a copy. More...
 
virtual autoPtr< AveragingMethod< Type > > clone () const =0
 Construct and return a clone. More...
 
virtual ~AveragingMethod ()=default
 Destructor. More...
 
virtual void add (const barycentric &coordinates, const tetIndices &tetIs, const Type &value)=0
 Member Functions. More...
 
virtual Type interpolate (const barycentric &coordinates, const tetIndices &tetIs) const =0
 Interpolate. More...
 
virtual TypeGrad interpolateGrad (const barycentric &coordinates, const tetIndices &tetIs) const =0
 Interpolate gradient. More...
 
virtual void average ()
 Calculate the average. More...
 
virtual void average (const AveragingMethod< scalar > &weight)
 
virtual bool writeData (Ostream &) const
 Dummy write. More...
 
virtual bool write (const bool valid=true) const
 Write using setting from DB. More...
 
virtual tmp< Field< Type > > primitiveField () const =0
 Return an internal field of the average. More...
 
void operator= (const AveragingMethod< Type > &x)
 Assign to another average. More...
 
void operator= (const Type &x)
 Assign to value. More...
 
void operator= (tmp< FieldField< Field, Type >> x)
 Assign to tmp. More...
 
void operator+= (tmp< FieldField< Field, Type >> x)
 Add-equal tmp. More...
 
void operator*= (tmp< FieldField< Field, Type >> x)
 Multiply-equal tmp. More...
 
void operator/= (tmp< FieldField< Field, scalar >> x)
 Divide-equal tmp. More...
 

Static Public Member Functions

static autoPtr< AveragingMethod< Type > > New (const IOobject &io, const dictionary &dict, const fvMesh &mesh)
 Selector. More...
 

Protected Types

typedef outerProduct< vector, Type >::type TypeGrad
 Protected typedefs. More...
 

Protected Member Functions

virtual void updateGrad ()
 Protected member functions. More...
 

Protected Attributes

const dictionarydict_
 Protected data. More...
 
const fvMeshmesh_
 The mesh on which the averaging is to be done. More...
 

Detailed Description

template<class Type>
class Foam::AveragingMethod< Type >

Base class for lagrangian averaging methods.

Source files

Definition at line 69 of file KinematicParcel.H.

Member Typedef Documentation

◆ TypeGrad

typedef outerProduct<vector, Type>::type TypeGrad
protected

Protected typedefs.

Gradient type

Definition at line 68 of file AveragingMethod.H.

Constructor & Destructor Documentation

◆ AveragingMethod() [1/2]

AveragingMethod ( const IOobject io,
const dictionary dict,
const fvMesh mesh,
const labelList size 
)

Constructors.

Construct from components

Definition at line 44 of file AveragingMethod.C.

◆ AveragingMethod() [2/2]

AveragingMethod ( const AveragingMethod< Type > &  am)

Construct a copy.

Definition at line 68 of file AveragingMethod.C.

◆ ~AveragingMethod()

virtual ~AveragingMethod ( )
virtualdefault

Destructor.

Member Function Documentation

◆ updateGrad()

void updateGrad ( )
protectedvirtual

Protected member functions.

Update the gradient calculation

Definition at line 36 of file AveragingMethod.C.

◆ TypeName()

TypeName ( "averagingMethod"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
AveragingMethod< Type >  ,
dictionary  ,
(const IOobject &io, const dictionary &dict, const fvMesh &mesh ,
(io, dict, mesh  
)

Declare runtime constructor selection table.

◆ clone()

virtual autoPtr<AveragingMethod<Type> > clone ( ) const
pure virtual

Construct and return a clone.

Implemented in Dual< Type >, Moment< Type >, and Basic< Type >.

◆ New()

Foam::autoPtr< Foam::AveragingMethod< Type > > New ( const IOobject io,
const dictionary dict,
const fvMesh mesh 
)
static

Selector.

Definition at line 84 of file AveragingMethod.C.

◆ add()

virtual void add ( const barycentric coordinates,
const tetIndices tetIs,
const Type &  value 
)
pure virtual

Member Functions.

Add point value to interpolation

Implemented in Dual< Type >, Moment< Type >, and Basic< Type >.

Referenced by Stochastic< CloudType >::calculate(), MPPICParcel< ParcelType >::trackingData::updateAverages(), and KinematicParcel< ParcelType >::trackingData::updateAverages().

Here is the caller graph for this function:

◆ interpolate()

virtual Type interpolate ( const barycentric coordinates,
const tetIndices tetIs 
) const
pure virtual

Interpolate.

Implemented in Dual< Type >, Moment< Type >, and Basic< Type >.

Referenced by Stochastic< CloudType >::calculate().

Here is the caller graph for this function:

◆ interpolateGrad()

virtual TypeGrad interpolateGrad ( const barycentric coordinates,
const tetIndices tetIs 
) const
pure virtual

Interpolate gradient.

Implemented in Dual< Type >, Moment< Type >, and Basic< Type >.

◆ average() [1/2]

void average ( )
virtual

Calculate the average.

Reimplemented in Dual< Type >.

Definition at line 115 of file AveragingMethod.C.

Referenced by Stochastic< CloudType >::calculate(), MPPICParcel< ParcelType >::trackingData::updateAverages(), and KinematicParcel< ParcelType >::trackingData::updateAverages().

Here is the caller graph for this function:

◆ average() [2/2]

void average ( const AveragingMethod< scalar > &  weight)
virtual

Reimplemented in Dual< Type >.

Definition at line 123 of file AveragingMethod.C.

◆ writeData()

bool writeData ( Ostream os) const
virtual

Dummy write.

Definition at line 134 of file AveragingMethod.C.

◆ write()

bool write ( const bool  valid = true) const
virtual

Write using setting from DB.

Definition at line 141 of file AveragingMethod.C.

◆ primitiveField()

virtual tmp<Field<Type> > primitiveField ( ) const
pure virtual

Return an internal field of the average.

Implemented in Dual< Type >, Moment< Type >, and Basic< Type >.

Referenced by Implicit< CloudType >::cacheFields().

Here is the caller graph for this function:

◆ operator=() [1/3]

void operator= ( const AveragingMethod< Type > &  x)
inline

Assign to another average.

Definition at line 32 of file AveragingMethodI.H.

◆ operator=() [2/3]

void operator= ( const Type &  x)
inline

Assign to value.

Definition at line 43 of file AveragingMethodI.H.

◆ operator=() [3/3]

void operator= ( tmp< FieldField< Field, Type >>  x)
inline

Assign to tmp.

Definition at line 54 of file AveragingMethodI.H.

◆ operator+=()

void operator+= ( tmp< FieldField< Field, Type >>  x)
inline

Add-equal tmp.

Definition at line 65 of file AveragingMethodI.H.

◆ operator*=()

void operator*= ( tmp< FieldField< Field, Type >>  x)
inline

Multiply-equal tmp.

Definition at line 76 of file AveragingMethodI.H.

◆ operator/=()

void operator/= ( tmp< FieldField< Field, scalar >>  x)
inline

Divide-equal tmp.

Definition at line 87 of file AveragingMethodI.H.

Member Data Documentation

◆ dict_

const dictionary& dict_
protected

Protected data.

Dictionary

Definition at line 74 of file AveragingMethod.H.

◆ mesh_

const fvMesh& mesh_
protected

The mesh on which the averaging is to be done.

Definition at line 77 of file AveragingMethod.H.


The documentation for this class was generated from the following files: