sampledSurfaces: Write multiple fields to the same file

This prevents excessive duplication of surface geometry and makes
post-processing tasks in paraview more convenient.

The Nastran and Star-CD surface formats were found not to work, so
support for these output types has been removed. Raw, VTK, Foam and
Ensight formats are all still available.
This commit is contained in:
Will Bainbridge
2021-11-18 16:24:55 +00:00
parent c9b4fc75d4
commit 261ce05fac
33 changed files with 741 additions and 2705 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-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -632,12 +632,12 @@ int main(int argc, char *argv[])
vtkSurfaceWriter(IOstream::ASCII).write
(
surfFileName.path(),
surfFileNameBase,
"zone_" + surfFileNameBase,
surf.points(),
faces,
false, // face based data
"zone",
scalarFaceZone,
false // face based data
scalarFaceZone
);
}