29 #include "writeFuns.H" 39 const fileName& fileName,
40 const UPtrList<const surfaceVectorField>& surfVectorFields
43 const fvMesh& mesh = vMesh.mesh();
45 std::ofstream str(fileName.c_str());
47 writeFuns::writeHeader
58 str <<
"POINTS " << mesh.nFaces() <<
" float" <<
std::endl;
60 DynamicList<floatScalar> pField(3*mesh.nFaces());
62 for (
label facei = 0; facei < mesh.nFaces(); facei++)
69 str <<
"POINT_DATA " << mesh.nFaces() << std::endl
70 <<
"FIELD attributes " << surfVectorFields.size() <<
std::endl;
73 forAll(surfVectorFields, fieldi)
77 str << svf.
name() <<
" 3 " 78 << mesh.nFaces() <<
" float" <<
std::endl;
80 DynamicList<floatScalar> fField(3*mesh.nFaces());
82 for (
label facei = 0; facei < mesh.nInternalFaces(); facei++)
91 const fvPatch& pp = mesh.boundary()[
patchi];
93 if (isA<emptyFvsPatchVectorField>(pf))
fvsPatchField< vector > fvsPatchVectorField
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
Ostream & endl(Ostream &os)
Add newline and flush stream.
void writeSurfFields(const bool binary, const vtkMesh &vMesh, const fileName &fileName, const UPtrList< const surfaceVectorField > &surfVectorFields)
vectorField pointField
pointField is a vectorField.
timeIndices insert(timeIndex, timeDirs[timeI].value())
Write a patch with its data.
const word & name() const
Return name.