mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: improve option naming consistency in
- foamToVTK, foamToEnsight, foamToEnsightParts
This commit is contained in:
@ -42,24 +42,26 @@ Usage
|
||||
- \par -noZero
|
||||
Exclude the often incomplete initial conditions.
|
||||
|
||||
- \par -noLagrangian
|
||||
Suppress writing lagrangian positions and fields.
|
||||
|
||||
- \par -noPatches
|
||||
- \par -no-boundary
|
||||
Suppress writing any patches.
|
||||
|
||||
- \par -patches patchList
|
||||
Specify particular patches to write.
|
||||
Specifying an empty list suppresses writing the internalMesh.
|
||||
- \par -no-internal
|
||||
Suppress writing the internal mesh.
|
||||
|
||||
- \par -faceZones zoneList
|
||||
- \par -no-lagrangian
|
||||
Suppress writing lagrangian positions and fields.
|
||||
|
||||
- \par -patches patch or patch list
|
||||
Specify particular patches to write.
|
||||
|
||||
- \par -faceZones patch or zone list
|
||||
Specify faceZones to write, with wildcards
|
||||
|
||||
- \par -cellZone zoneName
|
||||
Specify single cellZone to write (not lagrangian)
|
||||
|
||||
- \par -width \<n\>
|
||||
Width of EnSight data subdir (default: 8)
|
||||
Width of Ensight data subdir (default: 8)
|
||||
|
||||
Note
|
||||
Writes to \a EnSight directory to avoid collisions with
|
||||
@ -124,42 +126,47 @@ int main(int argc, char *argv[])
|
||||
argList::addBoolOption
|
||||
(
|
||||
"nodeValues",
|
||||
"Write values in nodes"
|
||||
"Write values at nodes"
|
||||
);
|
||||
argList::addBoolOption
|
||||
(
|
||||
"noLagrangian",
|
||||
"Suppress writing lagrangian positions and fields"
|
||||
);
|
||||
argList::addBoolOption
|
||||
(
|
||||
"noInternal",
|
||||
"Do not generate file for mesh, only for patches"
|
||||
);
|
||||
argList::addBoolOption
|
||||
(
|
||||
"noBoundary",
|
||||
"no-boundary", // noPatches
|
||||
"Suppress writing any patches"
|
||||
);
|
||||
argList::addOptionCompat("noBoundary", {"noPatches", 1806});
|
||||
argList::addOptionCompat("no-boundary", {"noPatches", 1806});
|
||||
|
||||
argList::addBoolOption
|
||||
(
|
||||
"no-internal",
|
||||
"Suppress writing the internal mesh"
|
||||
);
|
||||
argList::addBoolOption
|
||||
(
|
||||
"no-lagrangian", // noLagrangian
|
||||
"Suppress writing lagrangian positions and fields"
|
||||
);
|
||||
argList::addOptionCompat("no-lagrangian", {"noLagrangian", 1806});
|
||||
|
||||
argList::addOption
|
||||
(
|
||||
"patches",
|
||||
"wordRes",
|
||||
"Specify particular patches to write - eg '(outlet \"inlet.*\")'."
|
||||
"Specify single patch or multiple patches to write\n"
|
||||
"Eg, 'inlet' or '(outlet \"inlet.*\")'"
|
||||
);
|
||||
argList::addOption
|
||||
(
|
||||
"faceZones",
|
||||
"wordRes",
|
||||
"Specify faceZones to write - eg '( slice \"mfp-.*\" )'."
|
||||
"Specify single or multiple faceZones to write\n"
|
||||
"Eg, 'cells' or '( slice \"mfp-.*\" )'."
|
||||
);
|
||||
argList::addOption
|
||||
(
|
||||
"fields",
|
||||
"wordRes",
|
||||
"Specify fields to export (all by default) - eg '( \"U.*\" )'."
|
||||
"Specify single or multiple fields to write (all by default)\n"
|
||||
"Eg, 'T' or '( \"U.*\" )'"
|
||||
);
|
||||
argList::addOption
|
||||
(
|
||||
@ -171,13 +178,13 @@ int main(int argc, char *argv[])
|
||||
(
|
||||
"name",
|
||||
"subdir",
|
||||
"Sub-directory name for ensight output (default: 'EnSight')"
|
||||
"Sub-directory name for Ensight output (default: 'EnSight')"
|
||||
);
|
||||
argList::addOption
|
||||
(
|
||||
"width",
|
||||
"n",
|
||||
"Width of ensight data subdir"
|
||||
"Width of Ensight data subdir"
|
||||
);
|
||||
|
||||
#include "setRootCase.H"
|
||||
@ -235,8 +242,9 @@ int main(int argc, char *argv[])
|
||||
// Output configuration (geometry related)
|
||||
//
|
||||
ensightMesh::options writeOpts(format);
|
||||
writeOpts.useInternalMesh(!args.found("noInternal"));
|
||||
writeOpts.useBoundaryMesh(!args.found("noBoundary"));
|
||||
writeOpts.useBoundaryMesh(!args.found("no-boundary"));
|
||||
writeOpts.useInternalMesh(!args.found("no-internal"));
|
||||
const bool doLagrangian = !args.found("no-lagrangian");
|
||||
|
||||
if (args.found("patches"))
|
||||
{
|
||||
@ -248,9 +256,8 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
//
|
||||
// output configuration (field related)
|
||||
// Output configuration (field related)
|
||||
//
|
||||
const bool doLagrangian = !args.found("noLagrangian");
|
||||
|
||||
wordRes fieldPatterns;
|
||||
args.readListIfPresent<wordRe>("fields", fieldPatterns);
|
||||
|
||||
Reference in New Issue
Block a user