sampledSurface::writers: Added writeFormat option to select ascii or binary

e.g. in tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/system/cuttingPlane

    surfaceFormat   vtk;
    writeFormat     binary;
    fields          (p U);

selects writing the VTK surface files in binary format which significantly
speeds-up reading of the files in paraview.

Currently binary writing is supported in VTK and EnSight formats.
This commit is contained in:
Henry Weller
2020-01-29 14:59:31 +00:00
parent ccc8a78ec1
commit b55bc28698
12 changed files with 53 additions and 54 deletions

View File

@ -525,12 +525,7 @@ void Foam::functionObjects::fieldValues::surfaceFieldValue::initialise
surfaceWriterPtr_.reset
(
surfaceWriter::New
(
surfaceFormat,
dict.subOrEmptyDict("formatOptions").
subOrEmptyDict(surfaceFormat)
).ptr()
surfaceWriter::New(surfaceFormat, dict).ptr()
);
}
}