Base class for lagrangian averaging methods. More...
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 () |
Destructor. More... | |
virtual void | add (const point position, const tetIndices &tetIs, const Type &value)=0 |
Member Functions. More... | |
virtual Type | interpolate (const point position, const tetIndices &tetIs) const =0 |
Interpolate. More... | |
virtual TypeGrad | interpolateGrad (const point position, 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 |
Write using setting from DB. More... | |
virtual tmp< Field< Type > > | internalField () 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 dictionary & | dict_ |
Protected data. More... | |
const fvMesh & | mesh_ |
The mesh on which the averaging is to be done. More... | |
Base class for lagrangian averaging methods.
Definition at line 55 of file MPPICParcel.H.
|
protected |
AveragingMethod | ( | const IOobject & | io, |
const dictionary & | dict, | ||
const fvMesh & | mesh, | ||
const labelList & | size | ||
) |
AveragingMethod | ( | const AveragingMethod< Type > & | am | ) |
Construct a copy.
Definition at line 58 of file AveragingMethod.C.
|
virtual |
Destructor.
Definition at line 105 of file AveragingMethod.C.
|
protectedvirtual |
Protected member functions.
Update the gradient calculation
Reimplemented in Moment< Type >, and Basic< Type >.
Definition at line 112 of file AveragingMethod.C.
TypeName | ( | "averagingMethod" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
AveragingMethod | , | ||
dictionary | , | ||
(const IOobject &io, const dictionary &dict, const fvMesh &mesh) | , | ||
(io, dict, mesh) | |||
) |
Declare runtime constructor selection table.
|
pure virtual |
Construct and return a clone.
|
static |
Selector.
Definition at line 74 of file AveragingMethod.C.
|
pure virtual |
Member Functions.
Add point value to interpolation
Implemented in Dual< Type >, Moment< Type >, and Basic< Type >.
Referenced by Stochastic< CloudType >::calculate(), and MPPICParcel::TrackingData< CloudType >::updateAverages().
|
pure virtual |
Interpolate.
Implemented in Dual< Type >, Moment< Type >, and Basic< Type >.
Referenced by Stochastic< CloudType >::calculate().
|
pure virtual |
Interpolate gradient.
Implemented in Dual< Type >, Moment< Type >, and Basic< Type >.
|
virtual |
Calculate the average.
Reimplemented in Dual< Type >.
Definition at line 121 of file AveragingMethod.C.
Referenced by Stochastic< CloudType >::calculate(), and MPPICParcel::TrackingData< CloudType >::updateAverages().
|
virtual |
Reimplemented in Dual< Type >.
Definition at line 129 of file AveragingMethod.C.
|
virtual |
Dummy write.
Definition at line 140 of file AveragingMethod.C.
|
virtual |
Write using setting from DB.
Definition at line 147 of file AveragingMethod.C.
Return an internal field of the average.
Referenced by Implicit< CloudType >::cacheFields().
|
inline |
Assign to another average.
Definition at line 30 of file AveragingMethodI.H.
|
inline |
Assign to value.
Definition at line 41 of file AveragingMethodI.H.
|
inline |
Assign to tmp.
Definition at line 52 of file AveragingMethodI.H.
|
inline |
Add-equal tmp.
Definition at line 63 of file AveragingMethodI.H.
|
inline |
Multiply-equal tmp.
Definition at line 74 of file AveragingMethodI.H.
|
inline |
Divide-equal tmp.
Definition at line 85 of file AveragingMethodI.H.
|
protected |
|
protected |
The mesh on which the averaging is to be done.
Definition at line 71 of file AveragingMethod.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.