ENH: suppress cell/patch/proc ids for foamToVTK (#1230)

- reduces output size, consistent with vtkWrite function object

STYLE: mark some foamToVTK options as advanced (ie, visible with -help-full)
This commit is contained in:
Mark Olesen
2019-03-11 11:02:58 +01:00
committed by Andrew Heather
parent aafbca93b2
commit 5d445f4ed6
5 changed files with 55 additions and 17 deletions

View File

@ -528,15 +528,13 @@ bool Foam::functionObjects::vtkWrite::write()
{
if (internalWriter.valid())
{
// cellIds + procIds (parallel)
// Optionally with cellID and procID fields
internalWriter->beginCellData
(
(writeIds_ ? 1 + (internalWriter->parallel() ? 1 : 0) : 0)
+ (internalWriter->parallel() ? 1 : 0)
+ nVolFields + nDimFields
);
// Write cellID field + procID (parallel only)
if (writeIds_)
{
internalWriter->writeCellIDs();
@ -548,11 +546,13 @@ bool Foam::functionObjects::vtkWrite::write()
{
for (vtk::patchWriter& writer : patchWriters)
{
// Optionally with patchID field
writer.beginCellData
(
(writeIds_ ? 1 : 0)
+ nVolFields
);
if (writeIds_)
{
writer.writePatchIDs();

View File

@ -98,7 +98,7 @@ Description
directory | The output directory name | no | postProcessing/NAME
width | Padding width for file name | no | 8
decompose | Decompose polyhedral cells | no | false
writeIds | Write cell/patch ids as field | no | false
writeIds | Write cell,patch,proc id fields | no | false
\endtable
\heading Output Selection