34 void Foam::snappyLayerDriver::averageNeighbours
37 const bitSet& isMasterEdge,
42 const Field<Type>& data,
52 if (isMasterEdge.test(meshEdges[edgeI]))
54 const edge&
e = edges[edgeI];
63 -
pts[meshPoints[
e[0]]]
66 scalar eWeight = 1.0/eMag;
71 average[v0] += eWeight*data[v1];
72 average[v1] += eWeight*data[v0];
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &f1)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
List< edge > edgeList
List of edge.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
tmp< GeometricField< Type, faPatchField, areaMesh > > average(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Area-weighted average a edgeField creating a areaField.
#define forAll(list, i)
Loop across all elements in list.
vectorField pointField
pointField is a vectorField.
const dimensionedScalar e
Elementary charge.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
List< label > labelList
A List of labels.
static constexpr const zero Zero
Global zero (0)