Go to the documentation of this file.
26 #include "writeSurfFields.H"
29 #include "writeFuns.H"
44 const fileName& fileName,
45 const PtrList<surfaceVectorField>& surfVectorFields
48 const fvMesh&
mesh = vMesh.mesh();
50 std::ofstream str(fileName.c_str());
65 DynamicList<floatScalar> pField(3*
mesh.
nFaces());
75 <<
"FIELD attributes " << surfVectorFields.size() <<
std::endl;
78 forAll(surfVectorFields, fieldI)
82 str << svf.name() <<
" 3 "
85 DynamicList<floatScalar> fField(3*
mesh.
nFaces());
92 forAll(svf.boundaryField(), patchI)
98 if (isA<emptyFvsPatchVectorField>(pf))
vectorField pointField
pointField is a vectorField.
#define forAll(list, i)
Loop across all elements in list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
fvsPatchField< vector > fvsPatchVectorField
static void write(std::ostream &, const bool, DynamicList< floatScalar > &)
Write floats ascii or binary.
label nInternalFaces() const
void writeSurfFields(const bool binary, const vtkMesh &vMesh, const fileName &fileName, const PtrList< surfaceVectorField > &surfVectorFields)
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
const vectorField & faceCentres() const
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
static void insert(const point &, DynamicList< floatScalar > &dest)
Append point to given DynamicList.