44 const fileName& fileName,
45 const PtrList<surfaceVectorField>& surfVectorFields
48 const fvMesh&
mesh = vMesh.mesh();
50 std::ofstream str(fileName.c_str());
52 str <<
"# vtk DataFile Version 2.0" <<
std::endl
67 str <<
"POINTS " << mesh.nFaces() <<
" float" <<
std::endl;
69 DynamicList<floatScalar> pField(3*mesh.nFaces());
71 for (label faceI = 0; faceI < mesh.nFaces(); faceI++)
78 str <<
"POINT_DATA " << mesh.nFaces() << std::endl
79 <<
"FIELD attributes " << surfVectorFields.size() <<
std::endl;
82 forAll(surfVectorFields, fieldI)
86 str << svf.name() <<
" 3 "
87 << mesh.nFaces() <<
" float" <<
std::endl;
89 DynamicList<floatScalar> fField(3*mesh.nFaces());
91 for (label faceI = 0; faceI < mesh.nInternalFaces(); faceI++)
96 forAll(svf.boundaryField(), patchI)
100 const fvPatch& pp = mesh.boundary()[patchI];
102 if (isA<emptyFvsPatchVectorField>(pf))