MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / writeTail

Function writeTail

src/surfMesh/surfaceFormats/vtk/VTKsurfaceFormatCore.C:55–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55void Foam::fileFormats::VTKsurfaceFormatCore::writeTail
56(
57 Ostream& os,
58 const UList<surfZone>& zoneLst
59)
60{
61 label nFaces = 0;
62 forAll(zoneLst, zoneI)
63 {
64 nFaces += zoneLst[zoneI].size();
65 }
66
67 // Print zone numbers
68 os << nl
69 << "CELL_DATA " << nFaces << nl
70 << "FIELD attributes 1" << nl
71 << "region 1 " << nFaces << " float" << nl;
72
73
74 forAll(zoneLst, zoneI)
75 {
76 forAll(zoneLst[zoneI], localFacei)
77 {
78 if (localFacei)
79 {
80 if (localFacei % 20)
81 {
82 os << ' ';
83 }
84 else
85 {
86 os << nl;
87 }
88 }
89 os << zoneI + 1;
90 }
91 os << nl;
92 }
93}
94
95
96void Foam::fileFormats::VTKsurfaceFormatCore::writeTail

Callers 1

VTKsurfaceFormat.CFile · 0.85

Calls 2

forAllFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected