Moment lagrangian averaging procedure. More...
Public Types | |
typedef AveragingMethod< Type >::TypeGrad | TypeGrad |
Public Member Functions | |
TypeName ("moment") | |
Moment (const IOobject &io, const dictionary &dict, const fvMesh &mesh) | |
Moment (const Moment< Type > &am) | |
virtual autoPtr< AveragingMethod< Type > > | clone () const |
virtual | ~Moment () |
void | add (const barycentric &coordinates, const tetIndices &tetIs, const Type &value) |
Type | interpolate (const barycentric &coordinates, const tetIndices &tetIs) const |
TypeGrad | interpolateGrad (const barycentric &coordinates, const tetIndices &tetIs) const |
tmp< Field< Type > > | primitiveField () const |
tmp< Field< TypeGrad > > | internalFieldGrad () const |
![]() | |
TypeName ("averagingMethod") | |
declareRunTimeSelectionTable (autoPtr, AveragingMethod, dictionary,(const IOobject &io, const dictionary &dict, const fvMesh &mesh),(io, dict, mesh)) | |
AveragingMethod (const IOobject &io, const dictionary &dict, const fvMesh &mesh, const labelList &size) | |
AveragingMethod (const AveragingMethod< Type > &am) | |
virtual autoPtr< AveragingMethod< Type > > | clone () const=0 |
virtual | ~AveragingMethod ()=default |
virtual void | average () |
virtual void | average (const AveragingMethod< scalar > &weight) |
virtual bool | writeData (Ostream &) const |
virtual bool | write (const bool valid=true) const |
virtual tmp< Field< Type > > | primitiveField () const=0 |
void | operator= (const AveragingMethod< Type > &x) |
void | operator= (const Type &x) |
void | operator= (tmp< FieldField< Field, Type >> x) |
void | operator+= (tmp< FieldField< Field, Type >> x) |
void | operator*= (tmp< FieldField< Field, Type >> x) |
void | operator/= (tmp< FieldField< Field, scalar >> x) |
Additional Inherited Members | |
![]() | |
static autoPtr< AveragingMethod< Type > > | New (const IOobject &io, const dictionary &dict, const fvMesh &mesh) |
![]() | |
typedef outerProduct< vector, Type >::type | TypeGrad |
![]() | |
const dictionary & | dict_ |
const fvMesh & | mesh_ |
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 | ||
) |
Definition at line 28 of file Moment.C.
References A, Foam::constant::physicoChemical::b, Foam::constant::universal::c, tetIndices::faceTriIs(), forAll, Foam::inv(), tetrahedron::mag(), mesh, Foam::sqr(), Foam::sum(), T, Tensor::T(), tetIndices::tet(), and Foam::Zero.
TypeName | ( | "moment" | ) |
|
inlinevirtual |
|
virtual |
Implements AveragingMethod< Type >.
Definition at line 125 of file Moment.C.
References tetIndices::cell(), coordinates(), delta, and tetIndices::faceTriIs().
|
virtual |
Implements AveragingMethod< Type >.
Definition at line 152 of file Moment.C.
References tetIndices::cell(), coordinates(), delta, and tetIndices::faceTriIs().
|
virtual |
Implements AveragingMethod< Type >.
Definition at line 183 of file Moment.C.
References tetIndices::cell().
Foam::tmp< Foam::Field< Type > > primitiveField |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.