46 void Foam::sampledSets::lineCellFace::calcSamples
48 DynamicList<point>& samplingPts,
49 DynamicList<label>& samplingCells,
50 DynamicList<label>& samplingFaces,
51 DynamicList<label>& samplingSegments,
52 DynamicList<scalar>& samplingCurveDist
56 DynamicList<point> facePts;
57 DynamicList<label> faceCells;
58 DynamicList<label> faceFaces;
59 DynamicList<label> faceSegments;
60 DynamicList<scalar> faceCurveDist;
82 samplingPts.append(facePts[0]);
83 samplingCells.append(faceCells[0]);
84 samplingFaces.append(faceFaces[0]);
85 samplingSegments.append(faceSegments[0]);
86 samplingCurveDist.append(faceCurveDist[0]);
88 for (
label facei = 1; facei < facePts.size(); ++ facei)
95 samplingSegments.last(),
96 samplingCurveDist.last(),
107 samplingPts.append(facePts[facei]);
108 samplingCells.append(faceCells[facei]);
109 samplingFaces.append(faceFaces[facei]);
110 samplingSegments.append(faceSegments[facei]);
111 samplingCurveDist.append(faceCurveDist[facei]);
116 void Foam::sampledSets::lineCellFace::genSamples()
118 DynamicList<point> samplingPts;
119 DynamicList<label> samplingCells;
120 DynamicList<label> samplingFaces;
121 DynamicList<label> samplingSegments;
122 DynamicList<scalar> samplingCurveDist;
133 samplingPts.shrink();
134 samplingCells.shrink();
135 samplingFaces.shrink();
136 samplingSegments.shrink();
137 samplingCurveDist.shrink();
161 start_(dict.
lookup(
"start")),
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual ~lineCellFace()
Destructor.
Macros for easy insertion into run-time selection tables.
Holds list of sampling points which is filled at construction time. Various implementations of this b...
lineCellFace(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict)
Construct from dictionary.
A class for handling words, derived from string.
static void calcMidPointSample(const polyMesh &mesh, const point &prevPt, const label prevFace, const label prevSegment, const scalar prevCurveDist, const point &nextPt, const label nextFace, const label nextSegment, DynamicList< point > &samplingPts, DynamicList< label > &samplingCells, DynamicList< label > &samplingFaces, DynamicList< label > &samplingSegments, DynamicList< scalar > &samplingCurveDist)
Calculate the next mid point sample.
addToRunTimeSelectionTable(sampledSet, arcUniform, word)
virtual bool write()
Sample and write.
Mesh consisting of general polyhedral cells.
defineTypeNameAndDebug(arcUniform, 0)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.