48 void Foam::pointVolInterpolation::makeWeights()
const
53 <<
"weighting factors already calculated"
59 Info<<
"pointVolInterpolation::makeWeights() : "
60 <<
"constructing weighting factors"
69 volWeightsPtr_ =
new FieldField<Field, scalar>(cellCentres.size());
70 FieldField<Field, scalar>& weightingFactors = *volWeightsPtr_;
72 forAll(weightingFactors, pointi)
86 const labelList& curCellPoints = cellPoints[cellI];
88 forAll(curCellPoints, cellPointI)
90 weightingFactors[cellI][cellPointI] = 1.0/
93 cellCentres[cellI] -
points[curCellPoints[cellPointI]]
101 forAll(cellCentres, cellI)
103 const labelList& curCellPoints = cellPoints[cellI];
105 forAll(curCellPoints, cellPointI)
107 pointVolSumWeights[cellI] += weightingFactors[cellI][cellPointI];
111 forAll(cellCentres, cellI)
113 const labelList& curCellPoints = cellPoints[cellI];
115 forAll(curCellPoints, cellPointI)
117 weightingFactors[cellI][cellPointI] /= pointVolSumWeights[cellI];
123 Info<<
"pointVolInterpolation::makeWeights() : "
124 <<
"finished constructing weighting factors"
131 void Foam::pointVolInterpolation::clearAddressing()
const
138 void Foam::pointVolInterpolation::clearGeom()
const
145 Foam::pointVolInterpolation::patchInterpolators()
const
147 if (!patchInterpolatorsPtr_)
149 const fvBoundaryMesh& bdry = vMesh().boundary();
151 patchInterpolatorsPtr_ =
152 new PtrList<primitivePatchInterpolation>(bdry.size());
156 patchInterpolatorsPtr_->set
164 return *patchInterpolatorsPtr_;
178 volWeightsPtr_(nullptr),
179 patchInterpolatorsPtr_(nullptr)
204 return *volWeightsPtr_;