32 void Foam::snappyLayerDriver::averageNeighbours
35 const PackedBoolList& isMasterEdge,
40 const Field<Type>& data,
50 if (isMasterEdge.get(meshEdges[edgei]) == 1)
52 const edge&
e = edges[edgei];
61 - pts[meshPoints[
e[0]]]
64 scalar eWeight = 1.0/eMag;
69 average[v0] += eWeight*data[v1];
70 average[v1] += eWeight*data[v0];
#define forAll(list, i)
Loop across all elements in list.
volScalarField scalarField(fieldObject, mesh)
tmp< VolField< Type > > average(const SurfaceField< Type > &ssf)
Area-weighted average a surfaceField creating a volField.
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
vectorField pointField
pointField is a vectorField.
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)
dimensioned< scalar > mag(const dimensioned< Type > &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)