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];
83 average *= invSumWeight;
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
vectorField pointField
pointField is a vectorField.
List< label > labelList
A List of labels.
volScalarField scalarField(fieldObject, mesh)
dimensioned< scalar > mag(const dimensioned< Type > &)
const doubleScalar e
Elementary charge.