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

Function genSamples

src/sampling/sampledSet/face/faceOnlySet.C:290–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288
289
290void Foam::faceOnlySet::genSamples()
291{
292 // Storage for sample points
293 DynamicList<point> samplingPts;
294 DynamicList<label> samplingCells;
295 DynamicList<label> samplingFaces;
296 DynamicList<label> samplingSegments;
297 DynamicList<scalar> samplingCurveDist;
298
299 calcSamples
300 (
301 samplingPts,
302 samplingCells,
303 samplingFaces,
304 samplingSegments,
305 samplingCurveDist
306 );
307
308 samplingPts.shrink();
309 samplingCells.shrink();
310 samplingFaces.shrink();
311 samplingSegments.shrink();
312 samplingCurveDist.shrink();
313
314 // Copy into *this
315 setSamples
316 (
317 samplingPts,
318 samplingCells,
319 samplingFaces,
320 samplingSegments,
321 samplingCurveDist
322 );
323}
324
325
326// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

Callers 1

faceOnlySet.CFile · 0.70

Calls 3

setSamplesFunction · 0.85
shrinkMethod · 0.80
calcSamplesFunction · 0.70

Tested by

no test coverage detected