45 void Foam::cloudSet::calcSamples
47 DynamicList<point>& samplingPts,
48 DynamicList<label>& samplingCells,
49 DynamicList<label>& samplingFaces,
50 DynamicList<label>& samplingSegments,
51 DynamicList<scalar>& samplingCurveDist
54 const meshSearch& queryMesh = searchEngine();
56 forAll(sampleCoords_, sampleI)
58 label celli = queryMesh.findCell(sampleCoords_[sampleI]);
62 samplingPts.append(sampleCoords_[sampleI]);
63 samplingCells.append(celli);
64 samplingFaces.append(-1);
65 samplingSegments.append(0);
66 samplingCurveDist.append(1.0 * sampleI);
72 void Foam::cloudSet::genSamples()
75 DynamicList<point> samplingPts;
76 DynamicList<label> samplingCells;
77 DynamicList<label> samplingFaces;
78 DynamicList<label> samplingSegments;
79 DynamicList<scalar> samplingCurveDist;
91 samplingCells.shrink();
92 samplingFaces.shrink();
93 samplingSegments.shrink();
94 samplingCurveDist.shrink();
119 sampleCoords_(sampleCoords)
139 sampleCoords_(dict.
lookup(
"points"))
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search...
#define forAll(list, i)
Loop across all elements in list.
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...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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...
A class for handling words, derived from string.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
virtual ~cloudSet()
Destructor.
Mesh consisting of general polyhedral cells.
cloudSet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const word &axis, const List< point > &sampleCoords)
Construct from components.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.