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

Function genSamples

src/sampling/sampledSet/patchSeed/patchSeedSet.C:167–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165
166
167void Foam::patchSeedSet::genSamples()
168{
169 // Storage for sample points
170 DynamicList<point> samplingPts;
171 DynamicList<label> samplingCells;
172 DynamicList<label> samplingFaces;
173 DynamicList<label> samplingSegments;
174 DynamicList<scalar> samplingCurveDist;
175
176 calcSamples
177 (
178 samplingPts,
179 samplingCells,
180 samplingFaces,
181 samplingSegments,
182 samplingCurveDist
183 );
184
185 samplingPts.shrink();
186 samplingCells.shrink();
187 samplingFaces.shrink();
188 samplingSegments.shrink();
189 samplingCurveDist.shrink();
190
191 setSamples
192 (
193 samplingPts,
194 samplingCells,
195 samplingFaces,
196 samplingSegments,
197 samplingCurveDist
198 );
199}
200
201
202// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

Callers 1

patchSeedSet.CFile · 0.70

Calls 3

setSamplesFunction · 0.85
shrinkMethod · 0.80
calcSamplesFunction · 0.70

Tested by

no test coverage detected