Go to the documentation of this file.
58 while(
true && size()>0)
63 newSamplePoints[newSampleI] = operator[](sampleI);
64 newSampleCells[newSampleI] =
cells_[sampleI];
65 newSampleFaces[newSampleI] =
faces_[sampleI];
66 newSampleSegments[newSampleI] =
segments_[sampleI];
67 newSampleCurveDist[newSampleI] =
curveDist_[sampleI];
72 (sampleI < size() - 1)
77 const point mid = 0.5*(operator[](sampleI) + operator[](sampleI+1));
85 <<
" newSampleI:" << newSampleI
86 <<
" pts[sampleI]:" << operator[](sampleI)
87 <<
" face[sampleI]:" <<
faces_[sampleI]
88 <<
" pts[sampleI+1]:" << operator[](sampleI+1)
89 <<
" face[sampleI+1]:" <<
faces_[sampleI+1]
95 newSamplePoints[newSampleI] = mid;
96 newSampleCells[newSampleI] = cell1;
97 newSampleFaces[newSampleI] = -1;
98 newSampleSegments[newSampleI] =
segments_[sampleI];
99 newSampleCurveDist[newSampleI] =
100 mag(newSamplePoints[newSampleI] -
start());
105 newSamplePoints[newSampleI] = operator[](sampleI+1);
106 newSampleCells[newSampleI] =
cells_[sampleI+1];
107 newSampleFaces[newSampleI] =
faces_[sampleI+1];
108 newSampleSegments[newSampleI] =
segments_[sampleI+1];
109 newSampleCurveDist[newSampleI] =
110 mag(newSamplePoints[newSampleI] -
start());
117 if (sampleI == size() - 1)
124 newSamplePoints.
setSize(newSampleI);
125 newSampleCells.
setSize(newSampleI);
126 newSampleFaces.
setSize(newSampleI);
127 newSampleSegments.
setSize(newSampleI);
128 newSampleCurveDist.
setSize(newSampleI);
A class for handling words, derived from string.
label getCell(const label faceI, const point &sample) const
Returns cell using face and containing sample.
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
virtual ~midPointAndFaceSet()
Destructor.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
const point & start() const
dimensioned< scalar > mag(const dimensioned< Type > &)
Mesh consisting of general polyhedral cells.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
labelList segments_
Segment numbers.
midPointAndFaceSet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const word &axis, const point &start, const point &end)
Construct from components.
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.
errorManip< error > abort(error &err)
labelList cells_
Cell numbers.
scalarList curveDist_
Cumulative distance "distance" write specifier.
void setSize(const label)
Reset size of List.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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...
labelList faces_
Face numbers (-1 if not known)
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.