5 gmvFile <<
"gmvinput " <<
format <<
nl;
7 for (label indx=0;indx<
nPoints;indx++)
9 gmvFile <<
points[indx].x() <<
" ";
12 for (label indx=0;indx<
nPoints;indx++)
14 gmvFile <<
points[indx].y() <<
" ";
17 for (label indx=0;indx<
nPoints;indx++)
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 <<
" ";
constexpr char nl
The newline '\n' character (0x0a)
List< cellShape > cellShapeList
List of cellShape.
#define forAll(list, i)
Loop across all elements in list.
vectorField pointField
pointField is a vectorField.
word format(conversionProperties.get< word >("format"))