sampledSurface: Added support for writing surfaces in binary format

by specifying

    writeFormat binary;

in the sampledSurface dictionary.
This commit is contained in:
Henry Weller
2020-01-29 12:42:05 +00:00
parent 3631f13a98
commit 84759ee0b8
23 changed files with 154 additions and 88 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -629,7 +629,7 @@ int main(int argc, char *argv[])
faces[i] = surf[i].triFaceFace();
}
vtkSurfaceWriter().write
vtkSurfaceWriter(IOstream::ASCII).write
(
surfFileName.path(),
surfFileNameBase,

View File

@ -463,7 +463,7 @@ namespace Foam
{
const faceList faces(searchSurf.faces());
vtkSurfaceWriter().write
vtkSurfaceWriter(runTime.writeFormat()).write
(
runTime.constantPath()/"triSurface",// outputDir
searchSurf.objectRegistry::name(), // surfaceName
@ -474,7 +474,7 @@ namespace Foam
false // isNodeValues
);
vtkSurfaceWriter().write
vtkSurfaceWriter(runTime.writeFormat()).write
(
runTime.constantPath()/"triSurface",// outputDir
searchSurf.objectRegistry::name(), // surfaceName
@ -525,7 +525,7 @@ namespace Foam
externalClosenessPointField[meshPointMap[pi]];
}
vtkSurfaceWriter().write
vtkSurfaceWriter(runTime.writeFormat()).write
(
runTime.constantPath()/"triSurface",// outputDir
searchSurf.objectRegistry::name(), // surfaceName
@ -536,7 +536,7 @@ namespace Foam
true // isNodeValues
);
vtkSurfaceWriter().write
vtkSurfaceWriter(runTime.writeFormat()).write
(
runTime.constantPath()/"triSurface",// outputDir
searchSurf.objectRegistry::name(), // surfaceName
@ -574,7 +574,7 @@ namespace Foam
if (writeVTK)
{
vtkSurfaceWriter().write
vtkSurfaceWriter(runTime.writeFormat()).write
(
runTime.constantPath()/"triSurface",// outputDir
sFeatFileName, // surfaceName
@ -646,7 +646,7 @@ namespace Foam
if (writeVTK)
{
vtkSurfaceWriter().write
vtkSurfaceWriter(runTime.writeFormat()).write
(
runTime.constantPath()/"triSurface",// outputDir
sFeatFileName, // surfaceName