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

Function genSamples

src/sampling/sampledSet/array/arraySet.C:105–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104
105void Foam::arraySet::genSamples()
106{
107 // Storage for sample points
108 DynamicList<point> samplingPts;
109 DynamicList<label> samplingCells;
110 DynamicList<label> samplingFaces;
111 DynamicList<label> samplingSegments;
112 DynamicList<scalar> samplingCurveDist;
113
114 calcSamples
115 (
116 samplingPts,
117 samplingCells,
118 samplingFaces,
119 samplingSegments,
120 samplingCurveDist
121 );
122
123 samplingPts.shrink();
124 samplingCells.shrink();
125 samplingFaces.shrink();
126 samplingSegments.shrink();
127 samplingCurveDist.shrink();
128
129 setSamples
130 (
131 samplingPts,
132 samplingCells,
133 samplingFaces,
134 samplingSegments,
135 samplingCurveDist
136 );
137}
138
139
140// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

Callers 1

arraySet.CFile · 0.70

Calls 3

setSamplesFunction · 0.85
shrinkMethod · 0.80
calcSamplesFunction · 0.70

Tested by

no test coverage detected