46 void volPointInterpolation::makeWeights()
50 Info<<
"volPointInterpolation::makeWeights() : "
51 <<
"constructing weighting factors"
60 pointWeights_.
clear();
61 pointWeights_.
setSize(points.size());
63 forAll(pointWeights_, pointi)
65 pointWeights_[pointi].
setSize(pointCells[pointi].size());
85 const labelList& pcp = pointCells[pointi];
90 1.0/
mag(points[pointi] - cellCentres[pcp[pointCelli]]);
92 sumWeights[pointi] += pw[pointCelli];
98 if (sumWeights.boundaryField()[
patchi].coupled())
100 refCast<coupledPointPatchScalarField>
101 (sumWeights.boundaryField()[
patchi]).initSwapAdd
103 sumWeights.internalField()
110 if (sumWeights.boundaryField()[
patchi].coupled())
112 refCast<coupledPointPatchScalarField>
113 (sumWeights.boundaryField()[
patchi]).swapAdd
115 sumWeights.internalField()
126 pw[pointCelli] /= sumWeights[pointi];
132 Info<<
"volPointInterpolation::makeWeights() : "
133 <<
"finished constructing weighting factors"
141 volPointInterpolation::volPointInterpolation(
const fvMesh& vm)
144 boundaryInterpolator_(vm)