如何获得cell信息?
-
http://www.openfoam.com/documentation/cpp-guide/html/classFoam_1_1primitiveMesh.html
primitiveMesh派生了polyMesh,polyMesh派生了fvMesh,也就是实际用的mesh
看看primitiveMesh有这么些乱七八糟的函数,总有一款适合你virtual const pointField & points () const =0 Return mesh points. More... virtual const faceList & faces () const =0 Return faces. More... virtual const labelList & faceOwner () const =0 Face face-owner addresing. More... virtual const labelList & faceNeighbour () const =0 Face face-neighbour addressing. More... const edgeList & edges () const Return mesh edges. Uses calcEdges. More... const labelListList & cellCells () const const labelListList & edgeCells () const const labelListList & pointCells () const const cellList & cells () const const labelListList & edgeFaces () const const labelListList & pointFaces () const const labelListList & cellEdges () const const labelListList & faceEdges () const const labelListList & pointEdges () const const labelListList & pointPoints () const const labelListList & cellPoints () const
-