Basic Lagrangian averaging process in which values are averaged in the cells and then interpolated assuming a constant value within the cell. More...

Public Member Functions | |
| TypeName ("LagrangianAverage") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, LagrangianAverage, dictionary,(const word &name, const LagrangianMesh &mesh, const dimensionSet &dimensions, const Field< scalar > &cellWeightSum),(name, mesh, dimensions, cellWeightSum)) | |
| Declare run-time constructor selection tables. More... | |
| LagrangianAverage (const word &name, const LagrangianMesh &mesh, const dimensionSet &dimensions) | |
| Construct with a name, for a mesh and with given dimensions. More... | |
| virtual | ~LagrangianAverage () |
| Destructor. More... | |
| virtual void | remove (const LagrangianSubSubField< scalar > &weight, const LagrangianSubSubField< Type > &psi)=0 |
| Remove weighted values from the average. More... | |
| void | remove (const LagrangianSubSubField< Type > &weightPsi) |
| Remove values from the average. More... | |
| virtual void | add (const LagrangianSubSubField< scalar > &weight, const LagrangianSubSubField< Type > &psi, const bool cache)=0 |
| Add weighted values to the average. More... | |
| void | add (const LagrangianSubSubField< Type > &weightPsi, const bool cache) |
| Add values to the average. More... | |
| virtual void | correct (const LagrangianSubSubField< scalar > &weight, const LagrangianSubSubField< Type > &psi, const bool cache)=0 |
| Correct weighted values in the average. More... | |
| void | correct (const LagrangianSubSubField< Type > &weightPsi, const bool cache) |
| Correct values in the average. More... | |
| tmp< LagrangianSubField< Type > > | interpolate (const LagrangianSubMesh &subMesh) const |
| Interpolate to a sub-mesh. More... | |
| void | operator= (const LagrangianAverage< Type > &)=delete |
| Disallow default bitwise assignment. More... | |
| template<template< class > class WeightPF, template< class > class PsiPF> | |
| Foam::autoPtr< Foam::LagrangianAverage< Type > > | New (const word &type, const word &name, const DimensionedField< scalar, LagrangianMesh, WeightPF > &weight, const DimensionedField< Type, LagrangianMesh, PsiPF > &psi) |
| template<class CellMesh , template< class > class PsiPF> | |
| Foam::LagrangianAverageNewReturnType< CellMesh, Type >::type | New (const word &type, const word &name, const DimensionedField< scalar, CellMesh > &cellWeightSum, const DimensionedField< Type, LagrangianMesh, PsiPF > &weightPsi) |
Static Public Member Functions | |
| template<template< class > class WeightPF, template< class > class PsiPF> | |
| static autoPtr< LagrangianAverage< Type > > | New (const word &type, const word &name, const DimensionedField< scalar, LagrangianMesh, WeightPF > &weight, const DimensionedField< Type, LagrangianMesh, PsiPF > &psi) |
| Select to average a field. More... | |
| template<class CellMesh , template< class > class WeightPsiPF> | |
| static LagrangianAverageNewReturnType< CellMesh, Type >::type | New (const word &type, const word &name, const DimensionedField< scalar, CellMesh > &cellWeightSum, const DimensionedField< Type, LagrangianMesh, WeightPsiPF > &weightPsi) |
| Select to average a field with a given cell weight sum. More... | |
Basic Lagrangian averaging process in which values are averaged in the cells and then interpolated assuming a constant value within the cell.
Base class for methods of local-averaging of Lagrangian properties.
Lagrangian averaging process in which values are averaged onto the mesh cell-centres and points using the basis functions associated with the tetrahedral decomposition. Interpolation back to the Lagrangian points is then done with the same basis functions.
Definition at line 67 of file LagrangianAverage.H.
| LagrangianAverage | ( | const word & | name, |
| const LagrangianMesh & | mesh, | ||
| const dimensionSet & | dimensions | ||
| ) |
Construct with a name, for a mesh and with given dimensions.
Definition at line 32 of file LagrangianAverage.C.
|
virtual |
Destructor.
Definition at line 138 of file LagrangianAverage.C.
| TypeName | ( | "LagrangianAverage< Type >" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| LagrangianAverage< Type > | , | ||
| dictionary | , | ||
| (const word &name, const LagrangianMesh &mesh, const dimensionSet &dimensions, const Field< scalar > &cellWeightSum) | , | ||
| (name, mesh, dimensions, cellWeightSum) | |||
| ) |
Declare run-time constructor selection tables.
|
static |
Select to average a field.
|
static |
Select to average a field with a given cell weight sum.
|
pure virtual |
Remove weighted values from the average.
Implemented in cellPoint< Type >, and cell< Type >.
| void remove | ( | const LagrangianSubSubField< Type > & | weightPsi | ) |
Remove values from the average.
Definition at line 145 of file LagrangianAverage.C.
References Foam::NullObjectRef().

|
pure virtual |
Add weighted values to the average.
Implemented in cellPoint< Type >, and cell< Type >.
| void add | ( | const LagrangianSubSubField< Type > & | weightPsi, |
| const bool | cache | ||
| ) |
Add values to the average.
Definition at line 155 of file LagrangianAverage.C.
References Foam::add(), and Foam::NullObjectRef().

|
pure virtual |
Correct weighted values in the average.
Implemented in cellPoint< Type >, and cell< Type >.
| void correct | ( | const LagrangianSubSubField< Type > & | weightPsi, |
| const bool | cache | ||
| ) |
Correct values in the average.
Definition at line 166 of file LagrangianAverage.C.
References Foam::MULES::correct(), and Foam::NullObjectRef().

| Foam::tmp< Foam::LagrangianSubField< Type > > interpolate | ( | const LagrangianSubMesh & | subMesh | ) | const |
Interpolate to a sub-mesh.
Definition at line 178 of file LagrangianAverage.C.
References Foam::fvc::interpolate(), DimensionedField< Type, GeoMesh, PrimitiveField >::New(), and tmp< T >::ref().

|
delete |
Disallow default bitwise assignment.
| Foam::autoPtr<Foam::LagrangianAverage<Type> > New | ( | const word & | type, |
| const word & | name, | ||
| const DimensionedField< scalar, LagrangianMesh, WeightPF > & | weight, | ||
| const DimensionedField< Type, LagrangianMesh, PsiPF > & | psi | ||
| ) |
Definition at line 50 of file LagrangianAverage.C.
References DimensionedField< Type, GeoMesh, PrimitiveField >::dimensions(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, DimensionedField< Type, GeoMesh, PrimitiveField >::mesh(), IOobject::name(), Foam::name(), Foam::nl, psi, and Foam::type().

| Foam::LagrangianAverageNewReturnType<CellMesh, Type>::type New | ( | const word & | type, |
| const word & | name, | ||
| const DimensionedField< scalar, CellMesh > & | cellWeightSum, | ||
| const DimensionedField< Type, LagrangianMesh, PsiPF > & | weightPsi | ||
| ) |
Definition at line 94 of file LagrangianAverage.C.
References DimensionedField< Type, GeoMesh, PrimitiveField >::dimensions(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, DimensionedField< Type, GeoMesh, PrimitiveField >::mesh(), IOobject::name(), Foam::name(), Foam::nl, Foam::NullObjectRef(), and Foam::type().
