Moment lagrangian averaging procedure. More...
Public Types | |
typedef AveragingMethod< Type >::TypeGrad | TypeGrad |
Public typedefs. More... | |
Public Member Functions | |
TypeName ("moment") | |
Runtime type information. More... | |
Moment (const IOobject &io, const dictionary &dict, const fvMesh &mesh) | |
Constructors. More... | |
Moment (const Moment< Type > &am) | |
Construct a copy. More... | |
virtual autoPtr< AveragingMethod< Type > > | clone () const |
Construct and return a clone. More... | |
virtual | ~Moment () |
Destructor. More... | |
void | add (const point position, const tetIndices &tetIs, const Type &value) |
Member Functions. More... | |
Type | interpolate (const point position, const tetIndices &tetIs) const |
Interpolate. More... | |
TypeGrad | interpolateGrad (const point position, const tetIndices &tetIs) const |
Interpolate gradient. More... | |
tmp< Field< Type > > | internalField () const |
Return an internal field of the average. More... | |
tmp< Field< TypeGrad > > | internalFieldGrad () const |
Return an internal field of the gradient. More... | |
![]() | |
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 | 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... | |
Private Member Functions | |
virtual void | updateGrad () |
Private member functions. More... | |
Private Attributes | |
Field< Type > & | data_ |
Private data. More... | |
Field< Type > & | dataX_ |
X-data moment. More... | |
Field< Type > & | dataY_ |
Y-data moment. More... | |
Field< Type > & | dataZ_ |
Z-data moment. More... | |
Field< symmTensor > | transform_ |
Transform tensor from moment to gradient. More... | |
Field< scalar > | scale_ |
Length scale for moment values. More... | |
Additional Inherited Members | |
![]() | |
static autoPtr< AveragingMethod< Type > > | New (const IOobject &io, const dictionary &dict, const fvMesh &mesh) |
Selector. More... | |
![]() | |
typedef outerProduct< vector, Type >::type | TypeGrad |
Protected typedefs. More... | |
![]() | |
const dictionary & | dict_ |
Protected data. More... | |
const fvMesh & | mesh_ |
The mesh on which the averaging is to be done. More... | |
Moment lagrangian averaging procedure.
Point values and moments from the cell centroid are summed over computational cells. A linear function is generated which has the same integrated moment as that of the point data.
The computed linear function is used to interpolate values within a cell. The gradient is calculated from the coefficients of the function, and is assumed constant over the cell.
typedef AveragingMethod<Type>::TypeGrad TypeGrad |
Moment | ( | const IOobject & | io, |
const dictionary & | dict, | ||
const fvMesh & | mesh | ||
) |
Constructors.
Construct from components
Definition at line 33 of file Moment.C.
References A(), Foam::constant::physicoChemical::b, Foam::constant::universal::c, f(), tetIndices::face(), tetIndices::faceBasePt(), tetIndices::facePtA(), tetIndices::facePtB(), forAll, Foam::inv(), tetrahedron::mag(), mesh, Foam::sqr(), Foam::sum(), T, Tensor::T(), and tetIndices::tet().
|
privatevirtual |
TypeName | ( | "moment" | ) |
Runtime type information.
|
inlinevirtual |
|
virtual |
Member Functions.
Add point value to interpolation
Implements AveragingMethod< Type >.
Definition at line 131 of file Moment.C.
References tetIndices::cell().
|
virtual |
Interpolate.
Implements AveragingMethod< Type >.
Definition at line 157 of file Moment.C.
References tetIndices::cell().
|
virtual |
Interpolate gradient.
Implements AveragingMethod< Type >.
Definition at line 182 of file Moment.C.
References tetIndices::cell().
Foam::tmp< Foam::Field< Type > > internalField |
|
private |
|
private |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.