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

Function genSamples

src/sampling/sampledSet/cloud/cloudSet.C:72–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71
72void Foam::cloudSet::genSamples()
73{
74 // Storage for sample points
75 DynamicList<point> samplingPts;
76 DynamicList<label> samplingCells;
77 DynamicList<label> samplingFaces;
78 DynamicList<label> samplingSegments;
79 DynamicList<scalar> samplingCurveDist;
80
81 calcSamples
82 (
83 samplingPts,
84 samplingCells,
85 samplingFaces,
86 samplingSegments,
87 samplingCurveDist
88 );
89
90 samplingPts.shrink();
91 samplingCells.shrink();
92 samplingFaces.shrink();
93 samplingSegments.shrink();
94 samplingCurveDist.shrink();
95
96 setSamples
97 (
98 samplingPts,
99 samplingCells,
100 samplingFaces,
101 samplingSegments,
102 samplingCurveDist
103 );
104}
105
106
107// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

Callers 1

cloudSet.CFile · 0.70

Calls 3

setSamplesFunction · 0.85
shrinkMethod · 0.80
calcSamplesFunction · 0.70

Tested by

no test coverage detected