55 " Foam::patchProbes::findElements(const fvMesh&)"
56 ) <<
" Unknown patch name "
72 bndFaces[i] = pp.start() + i;
77 overallBb = overallBb.extend(rndGen, 1
E-4);
78 overallBb.min() -=
point(ROOTVSMALL, ROOTVSMALL, ROOTVSMALL);
79 overallBb.max() +=
point(ROOTVSMALL, ROOTVSMALL, ROOTVSMALL);
107 scalar span = boundaryTree.
bb().
mag();
117 info = boundaryTree.findNearest
128 if (isA<emptyPolyPatch>(bm[patchi]))
132 " Foam::patchProbes::findElements(const fvMesh&)"
134 <<
" The sample point: " << sample
135 <<
" belongs to " << patchi
136 <<
" which is an empty patch. This is not permitted. "
137 <<
" This sample will not be included "
156 nearest[probeI]= sampleInfo;
167 Info<<
"patchProbes::findElements" <<
" : " <<
endl;
170 label procI = nearest[sampleI].second().second();
171 label localI = nearest[sampleI].first().index();
174 <<
" found on processor:" << procI
175 <<
" in local cell/face:" << localI
176 <<
" with cc:" << nearest[sampleI].first().rawPoint()
177 <<
" in patch : "<< pp.name() <<
endl;
187 localI = nearest[sampleI].first().index();
203 Foam::patchProbes::patchProbes
208 const bool loadFromFiles
211 probes(name, obr, dict, loadFromFiles)
225 if (probeLocations_.size() && checkFieldTypes())
227 sampleAndWrite(scalarFields_);
228 sampleAndWrite(vectorFields_);
229 sampleAndWrite(sphericalTensorFields_);
230 sampleAndWrite(symmTensorFields_);
231 sampleAndWrite(tensorFields_);
237 dict.
lookup(
"patchName") >> patchName_;