2 label nPoints = points.size();
5 gmvFile <<
"gmvinput " <<
format <<
nl;
6 gmvFile <<
"nodes " << nPoints <<
nl;
9 gmvFile << points[indx].x() <<
" ";
14 gmvFile << points[indx].y() <<
" ";
19 gmvFile << points[indx].z() <<
" ";
22 gmvFile <<
"cells " << cells.size() <<
nl;
25 label nNodes = cells[indx].size();
28 gmvFile <<
"hex " << 8 <<
" ";
29 for (
label ip=0; ip<nNodes; ip++)
31 gmvFile << cells[indx][ip] + 1 <<
" ";
37 gmvFile <<
"tet " << 4 <<
" ";
38 for (
label ip=0; ip<nNodes; ip++)
40 gmvFile << cells[indx][ip] + 1 <<
" ";
46 gmvFile <<
"prism " << 6 <<
" ";
47 for (
label ip=0; ip<nNodes; ip++)
49 gmvFile << cells[indx][ip] + 1 <<
" ";
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word format(conversionProperties.lookup("format"))
vectorField pointField
pointField is a vectorField.
List< cellShape > cellShapeList
List of cellShapes and PtrList of List of cellShape.