39 const fileName& fileName,
40 const UPtrList<const surfaceVectorField>& surfVectorFields
45 std::ofstream str(fileName.c_str());
60 DynamicList<floatScalar> pField(3*
mesh.
nFaces());
70 <<
"FIELD attributes " << surfVectorFields.size() <<
std::endl;
73 forAll(surfVectorFields, fieldi)
77 str << svf.name() <<
" 3 "
80 DynamicList<floatScalar> fField(3*
mesh.
nFaces());
93 if (isA<emptyFvsPatchVectorField>(pf))
#define forAll(list, i)
Loop across all elements in list.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
const polyMesh & mesh() const
Return reference to polyMesh.
const vectorField & faceCentres() const
label nInternalFaces() const
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
void insert(const scalar, DynamicList< floatScalar > &)
Append scalar to given DynamicList.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
Write header.
void writeSurfFields(const bool binary, const vtkMesh &vMesh, const fileName &fileName, const UPtrList< const surfaceVectorField > &surfVectorFields)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
vectorField pointField
pointField is a vectorField.
SurfaceField< vector > surfaceVectorField
fvsPatchField< vector > fvsPatchVectorField
Write a patch with its data.