44 transform_(mesh.nCells(),
Zero),
45 scale_(0.5*
pow(mesh.V(), 1.0/3.0))
48 scalar
b = 0.5854101966249685;
49 scalar
c = 0.1381966011250105;
66 polyMeshTetDecomposition::cellTetIndices(mesh, celli);
74 const face&
f = mesh.faces()[facei];
80 mesh.points()[f[tetIs.
faceBasePt()]] - mesh.C()[celli],
81 mesh.points()[f[tetIs.
facePtA()]] - mesh.C()[celli],
82 mesh.points()[f[tetIs.
facePtB()]] - mesh.C()[celli]
88 const scalar v(6.0*tetIs.
tet(mesh).
mag()/mesh.V()[celli]);
93 transform_[celli] =
inv(A);
109 transform_(am.transform_)
132 const point position,
139 const Type v = value/this->mesh_.V()[celli];
144 * (position - this->mesh_.C()[celli])
149 dataX_[celli] += v + dv.x();
150 dataY_[celli] += v + dv.y();
151 dataZ_[celli] += v + dv.z();
158 const point position,
169 dataX_[celli] - data_[celli],
170 dataY_[celli] - data_[celli],
171 dataZ_[celli] - data_[celli]
173 & (position - this->mesh_.C()[celli])
183 const point position,
192 dataX_[celli] - data_[celli],
193 dataY_[celli] - data_[celli],
194 dataZ_[celli] - data_[celli]
#define forAll(list, i)
Loop across all elements in list.
label cell() const
Return the cell.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label facePtA() const
Return face point A.
TypeGrad interpolateGrad(const point position, const tetIndices &tetIs) const
Interpolate gradient.
tmp< Field< Type > > primitiveField() const
Return an internal field of the average.
A face is a list of labels corresponding to mesh vertices.
A list of keyword definitions, which are a keyword followed by any number of values (e...
void add(const point position, const tetIndices &tetIs, const Type &value)
Member Functions.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
AveragingMethod< Type >::TypeGrad TypeGrad
Public typedefs.
outerProduct< vector, Type >::type TypeGrad
Protected typedefs.
Vector< scalar > vector
A scalar version of the templated Vector.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
label faceBasePt() const
Return the face base point.
Moment lagrangian averaging procedure.
label facePtB() const
Return face point B.
Type interpolate(const point position, const tetIndices &tetIs) const
Interpolate.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Base class for lagrangian averaging methods.
List< label > labelList
A List of labels.
Storage and named access for the indices of a tet which is part of the decomposition of a cell...
label face() const
Return the face.
scalar mag() const
Return volume.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Mesh data needed to do the Finite Volume discretisation.
const dimensionedScalar c
Speed of light in a vacuum.
Moment(const IOobject &io, const dictionary &dict, const fvMesh &mesh)
Constructors.
virtual ~Moment()
Destructor.
A class for managing temporary objects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
tetPointRef tet(const polyMesh &mesh) const
Return the geometry corresponding to this tet from the.