MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / genSamples

Function genSamples

src/sampling/sampledSet/patchCloud/patchCloudSet.C:230–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228
229
230void Foam::patchCloudSet::genSamples()
231{
232 // Storage for sample points
233 DynamicList<point> samplingPts;
234 DynamicList<label> samplingCells;
235 DynamicList<label> samplingFaces;
236 DynamicList<label> samplingSegments;
237 DynamicList<scalar> samplingCurveDist;
238
239 calcSamples
240 (
241 samplingPts,
242 samplingCells,
243 samplingFaces,
244 samplingSegments,
245 samplingCurveDist
246 );
247
248 samplingPts.shrink();
249 samplingCells.shrink();
250 samplingFaces.shrink();
251 samplingSegments.shrink();
252 samplingCurveDist.shrink();
253
254 setSamples
255 (
256 samplingPts,
257 samplingCells,
258 samplingFaces,
259 samplingSegments,
260 samplingCurveDist
261 );
262}
263
264
265// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

Callers 1

patchCloudSet.CFile · 0.70

Calls 3

setSamplesFunction · 0.85
shrinkMethod · 0.80
calcSamplesFunction · 0.70

Tested by

no test coverage detected