42 void Foam::midPointAndFaceSet::genSamples()
46 List<point> mpfSamplePoints(3*size());
58 mpfSamplePoints[mpfSamplei] = operator[](samplei);
59 mpfSampleCells[mpfSamplei] = cells_[samplei];
60 mpfSampleFaces[mpfSamplei] = faces_[samplei];
61 mpfSampleSegments[mpfSamplei] = segments_[samplei];
62 mpfSampleCurveDist[mpfSamplei] = curveDist_[samplei];
67 (samplei < size() - 1)
68 && (segments_[samplei] == segments_[samplei+1])
71 point midPoint(0.5*(
operator[](samplei) +
operator[](samplei+1)));
72 label cellm = pointInCell(midPoint, samplei);
76 mpfSamplePoints[mpfSamplei] = midPoint;
77 mpfSampleCells[mpfSamplei] = cellm;
78 mpfSampleFaces[mpfSamplei] = -1;
79 mpfSampleSegments[mpfSamplei] = segments_[samplei];
80 mpfSampleCurveDist[mpfSamplei] =
81 mag(mpfSamplePoints[mpfSamplei] - start());
87 mpfSamplePoints[mpfSamplei] = operator[](samplei+1);
88 mpfSampleCells[mpfSamplei] = cells_[samplei+1];
89 mpfSampleFaces[mpfSamplei] = faces_[samplei+1];
90 mpfSampleSegments[mpfSamplei] = segments_[samplei+1];
91 mpfSampleCurveDist[mpfSamplei] =
92 mag(mpfSamplePoints[mpfSamplei] - start());
99 if (samplei == size() - 1)
106 mpfSamplePoints.setSize(mpfSamplei);
107 mpfSampleCells.setSize(mpfSamplei);
108 mpfSampleFaces.setSize(mpfSamplei);
109 mpfSampleSegments.setSize(mpfSamplei);
110 mpfSampleCurveDist.setSize(mpfSamplei);
134 faceOnlySet(name, mesh, searchEngine, axis, start, end)
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...
Macros for easy insertion into run-time selection tables.
virtual ~midPointAndFaceSet()
Destructor.
A class for handling words, derived from string.
List< scalar > scalarList
A List of scalars.
List< label > labelList
A List of labels.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
vector point
Point is a vector.
dimensioned< scalar > mag(const dimensioned< Type > &)
Mesh consisting of general polyhedral cells.
midPointAndFaceSet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const word &axis, const point &start, const point &end)
Construct from components.