Go to the documentation of this file.
66 const scalar deltax = spanBox_.x()/(pointsDensity_.x() + 1);
67 const scalar deltay = spanBox_.y()/(pointsDensity_.y() + 1);
68 const scalar deltaz = spanBox_.z()/(pointsDensity_.z() + 1);
71 for (
label k=1;
k<=pointsDensity_.z();
k++)
73 for (
label j=1; j<=pointsDensity_.y(); j++)
75 for (
label i=1; i<=pointsDensity_.x(); i++)
77 vector t(deltax*i , deltay*j, deltaz*
k);
78 sampleCoords[
p] = coordSys_.origin() + t;
86 sampleCoords[i] =
transform(coordSys_.R().R(), sampleCoords[i]);
89 forAll(sampleCoords, sampleI)
95 samplingPts.
append(sampleCoords[sampleI]);
96 samplingCells.
append(cellI);
98 samplingSegments.
append(0);
99 samplingCurveDist.
append(1.0 * sampleI);
126 samplingSegments.
shrink();
127 samplingCurveDist.
shrink();
155 pointsDensity_(pointsDensity),
Holds list of sampling points which is filled at construction time. Various implementations of this b...
void genSamples()
Uses calcSamples to obtain samples. Copies them into *this.
A class for handling words, derived from string.
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
#define forAll(list, i)
Loop across all elements in list.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Mesh consisting of general polyhedral cells.
dimensionSet transform(const dimensionSet &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & shrink()
Shrink the allocated space to the number of elements used.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
virtual ~arraySet()
Destructor.
arraySet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const word &axis, const coordinateSystem &coordSys, const Vector< label > &pointsDensity, const Vector< scalar > &spanBox)
Construct from components.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
void setSamples(const List< point > &samplingPts, const labelList &samplingCells, const labelList &samplingFaces, const labelList &samplingSegments, const scalarList &samplingCurveDist)
Sets sample data.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label findCell(const point &location, const label seedCellI=-1, const bool useTreeSearch=true) const
Find cell containing location.
label k
Boltzmann constant.
void calcSamples(DynamicList< point > &samplingPts, DynamicList< label > &samplingCells, DynamicList< label > &samplingFaces, DynamicList< label > &samplingSegments, DynamicList< scalar > &samplingCurveDist) const
Samples all points in sampleCoords.
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
Base class for other coordinate system specifications.