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 ()=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 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 61 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 68 of file AveragingMethod.C.
|
virtualdefault |
Destructor.
|
protectedvirtual |
Protected member functions.
Update the gradient calculation
Definition at line 36 of file AveragingMethod.C.
TypeName | ( | "averagingMethod" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
AveragingMethod< Type > | , | ||
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.
Implemented in Dual< Type >, Moment< Type >, and Basic< Type >.
|
static |
Selector.
Definition at line 84 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< ParcelType >::trackingData::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 114 of file AveragingMethod.C.
Referenced by Stochastic< CloudType >::calculate(), and MPPICParcel< ParcelType >::trackingData::updateAverages().
|
virtual |
Reimplemented in Dual< Type >.
Definition at line 122 of file AveragingMethod.C.
Dummy write.
Definition at line 133 of file AveragingMethod.C.
Write using setting from DB.
Definition at line 140 of file AveragingMethod.C.
Return an internal field of the average.
Implemented in Dual< Type >, Moment< Type >, and Basic< Type >.
Referenced by Implicit< CloudType >::cacheFields().
|
inline |
Assign to another average.
Definition at line 32 of file AveragingMethodI.H.
|
inline |
Assign to value.
Definition at line 43 of file AveragingMethodI.H.
|
inline |
Assign to tmp.
Definition at line 54 of file AveragingMethodI.H.
|
inline |
Add-equal tmp.
Definition at line 65 of file AveragingMethodI.H.
|
inline |
Multiply-equal tmp.
Definition at line 76 of file AveragingMethodI.H.
|
inline |
Divide-equal tmp.
Definition at line 87 of file AveragingMethodI.H.
|
protected |
|
protected |
The mesh on which the averaging is to be done.
Definition at line 77 of file AveragingMethod.H.