如题,根据probes的字母意思解释,是Set of locations to sample(设置位置集),我看了下probes.H和probes.C的源程序,没有看懂,probes.C的部分代码如下:
const label celli = mesh.findCell(location); elementList_[probei] = celli; if (celli != -1) { const labelList& cellFaces = mesh.cells()[celli]; const vector& cellCentre = mesh.cellCentres()[celli]; scalar minDistance = great; label minFaceID = -1; forAll(cellFaces, i) { label facei = cellFaces[i]; vector dist = mesh.faceCentres()[facei] - cellCentre;//是指面心和体心的插值么? if (mag(dist) < minDistance) { minDistance = mag(dist); minFaceID = facei; } } faceList_[probei] = minFaceID; }
A
a602657563
@a602657563