sampledSurface: Added support for writing surfaces in binary format
by specifying
writeFormat binary;
in the sampledSurface dictionary.
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user