Go to the documentation of this file.
54 while(
true && size()>0)
59 (sampleI < size() - 1)
64 0.5*(operator[](sampleI) + operator[](sampleI+1));
73 <<
" sampleI:" << sampleI
74 <<
" pts[sampleI]:" << operator[](sampleI)
75 <<
" face[sampleI]:" <<
faces_[sampleI]
76 <<
" pts[sampleI+1]:" << operator[](sampleI+1)
77 <<
" face[sampleI+1]:" <<
faces_[sampleI+1]
83 midCells[midI] = cell1;
85 midCurveDist[midI] =
mag(midPoints[midI] -
start());
91 if (sampleI == size() - 1)
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.
List< label > labelList
A List of labels.
virtual ~midPointSet()
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.
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)
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...
midPointSet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const word &axis, const point &start, const point &end)
Construct from components.
labelList faces_
Face numbers (-1 if not known)
void size(const label)
Override size to be inconsistent with allocated storage.
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.