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

Function genSamples

src/sampling/sampledSet/circle/circleSet.C:139–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138
139void Foam::circleSet::genSamples()
140{
141 // Storage for sample points
142 DynamicList<point> samplingPts;
143 DynamicList<label> samplingCells;
144 DynamicList<label> samplingFaces;
145 DynamicList<label> samplingSegments;
146 DynamicList<scalar> samplingCurveDist;
147
148 calcSamples
149 (
150 samplingPts,
151 samplingCells,
152 samplingFaces,
153 samplingSegments,
154 samplingCurveDist
155 );
156
157 samplingPts.shrink();
158 samplingCells.shrink();
159 samplingFaces.shrink();
160 samplingSegments.shrink();
161 samplingCurveDist.shrink();
162
163 setSamples
164 (
165 samplingPts,
166 samplingCells,
167 samplingFaces,
168 samplingSegments,
169 samplingCurveDist
170 );
171}
172
173
174// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

Callers 1

circleSet.CFile · 0.70

Calls 3

setSamplesFunction · 0.85
shrinkMethod · 0.80
calcSamplesFunction · 0.70

Tested by

no test coverage detected