Go to the documentation of this file.
50 scalar
b = 0.5854101966249685;
51 scalar
c = 0.1381966011250105;
68 polyMeshTetDecomposition::cellTetIndices(
mesh, celli);
81 mesh.points()[triIs[0]] -
mesh.C()[celli],
82 mesh.points()[triIs[1]] -
mesh.C()[celli],
83 mesh.points()[triIs[2]] -
mesh.C()[celli]
94 transform_[celli] =
inv(
A);
110 transform_(am.transform_)
138 const label celli = tetIs.
cell();
147 const Type v = value/this->mesh_.V()[celli];
148 const TypeGrad dv = transform_[celli] & (v*
delta/scale_[celli]);
151 dataX_[celli] += v + dv.x();
152 dataY_[celli] += v + dv.y();
153 dataZ_[celli] += v + dv.z();
164 const label celli = tetIs.
cell();
178 dataX_[celli] - data_[celli],
179 dataY_[celli] - data_[celli],
180 dataZ_[celli] - data_[celli]
182 &
delta/scale_[celli]
195 const label celli(tetIs.
cell());
200 dataX_[celli] - data_[celli],
201 dataY_[celli] - data_[celli],
202 dataZ_[celli] - data_[celli]
Base class for lagrangian averaging methods.
List< label > labelList
A List of labels.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
tetPointRef tet(const polyMesh &mesh) const
Return the geometry corresponding to this tet.
A field of fields is a PtrList of fields with reference counting.
label cell() const
Return the cell.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
virtual ~Moment()
Destructor.
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
#define forAll(list, i)
Loop across all elements in list.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
PtrList< coordinateSystem > coordinates(solidRegions.size())
Moment(const IOobject &io, const dictionary &dict, const fvMesh &mesh)
Constructors.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
triFace faceTriIs(const polyMesh &mesh, const bool warn=true) const
Return the indices corresponding to the tri on the face for.
Type interpolate(const barycentric &coordinates, const tetIndices &tetIs) const
Interpolate.
Mesh data needed to do the Finite Volume discretisation.
Vector< scalar > vector
A scalar version of the templated Vector.
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
Moment lagrangian averaging procedure.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
A triangular face using a FixedList of labels corresponding to mesh vertices.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
TypeGrad interpolateGrad(const barycentric &coordinates, const tetIndices &tetIs) const
Interpolate gradient.
const dimensionedScalar c
Speed of light in a vacuum.
void add(const barycentric &coordinates, const tetIndices &tetIs, const Type &value)
Member Functions.
dimensionedScalar cbrt(const dimensionedScalar &ds)
scalar mag() const
Return volume.
AveragingMethod< Type >::TypeGrad TypeGrad
Public typedefs.
tmp< Field< Type > > primitiveField() const
Return an internal field of the average.
outerProduct< vector, Type >::type TypeGrad
Protected typedefs.