50 scalar
b = 0.5854101966249685;
51 scalar
c = 0.1381966011250105;
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);
102 const Moment<Type>& am
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]
A list of keyword definitions, which are a keyword followed by a number of values (eg...
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
AveragingMethod< Type >::TypeGrad TypeGrad
Public typedefs.
void add(const barycentric &coordinates, const tetIndices &tetIs, const Type &value)
Member Functions.
Type interpolate(const barycentric &coordinates, const tetIndices &tetIs) const
Interpolate.
tetPointRef tet(const polyMesh &mesh) const
The tet geometry for this tet, where point0 is the cell centre.
A field of fields is a PtrList of fields with reference counting.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
static List< tetIndices > cellTetIndices(const polyMesh &mesh, label cI)
Return the tet decomposition of the given cell, see.
#define forAll(list, i)
Loop across all elements in list.
Moment lagrangian averaging procedure.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
Generic templated field type.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
label cell() const noexcept
Return the cell index.
TypeGrad interpolateGrad(const barycentric &coordinates, const tetIndices &tetIs) const
Interpolate gradient.
A triangular face using a FixedList of labels corresponding to mesh vertices.
dimensionedScalar cbrt(const dimensionedScalar &ds)
scalar mag() const
Return volume.
Base class for lagrangian averaging methods.
Storage and named access for the indices of a tet which is part of the decomposition of a cell...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
tmp< Field< Type > > primitiveField() const
Return an internal field of the average.
PtrList< coordinateSystem > coordinates(solidRegions.size())
Mesh data needed to do the Finite Volume discretisation.
const dimensionedScalar c
Speed of light in a vacuum.
tmp< FieldField< Field, Type > > T() const
Return the field transpose (only defined for second rank tensors)
Moment(const IOobject &io, const dictionary &dict, const fvMesh &mesh)
Constructors.
virtual ~Moment()
Destructor.
A class for managing temporary objects.
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
Tensor of scalars, i.e. Tensor<scalar>.
Defines the attributes of an object for which implicit objectRegistry management is supported...
triFace faceTriIs(const polyMesh &mesh, const bool warn=true) const
The indices corresponding to the tri on the face for this tet. The normal of the tri points out of th...
static constexpr const zero Zero
Global zero (0)