mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: add notes to some (most) command-line options
- mapFields and splitMeshRegions need more clarification
This commit is contained in:
@ -31,7 +31,7 @@ Usage
|
||||
|
||||
- foamToTecplot360 [OPTION]
|
||||
|
||||
@param -fields \<fields\>\n
|
||||
@param -fields \<names\>\n
|
||||
Convert selected fields only. For example,
|
||||
@verbatim
|
||||
-fields '( p T U )'
|
||||
@ -163,30 +163,65 @@ labelList getSelectedPatches
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
argList::addNote
|
||||
(
|
||||
"Tecplot binary file format writer"
|
||||
);
|
||||
|
||||
timeSelector::addOptions();
|
||||
#include "addRegionOption.H"
|
||||
|
||||
# include "addRegionOption.H"
|
||||
|
||||
argList::addOption("fields", "fields");
|
||||
argList::addOption("cellSet", "cellSet name");
|
||||
argList::addOption("faceSet", "faceSet name");
|
||||
argList::addBoolOption("nearCellValue");
|
||||
argList::addBoolOption("noInternal");
|
||||
argList::addBoolOption("noPointValues");
|
||||
argList::addOption
|
||||
(
|
||||
"fields",
|
||||
"names",
|
||||
"convert selected fields only. eg, '(p T U)'"
|
||||
);
|
||||
argList::addOption
|
||||
(
|
||||
"cellSet",
|
||||
"name",
|
||||
"restrict conversion to the specified cellSet"
|
||||
);
|
||||
argList::addOption
|
||||
(
|
||||
"faceSet",
|
||||
"name",
|
||||
"restrict conversion to the specified cellSet"
|
||||
);
|
||||
argList::addBoolOption
|
||||
(
|
||||
"nearCellValue",
|
||||
"output cell value on patches instead of patch value itself"
|
||||
);
|
||||
argList::addBoolOption
|
||||
(
|
||||
"noInternal",
|
||||
"do not generate file for mesh, only for patches"
|
||||
);
|
||||
argList::addBoolOption
|
||||
(
|
||||
"noPointValues",
|
||||
"no pointFields"
|
||||
);
|
||||
argList::addOption
|
||||
(
|
||||
"excludePatches",
|
||||
"patches (wildcards) to exclude"
|
||||
);
|
||||
argList::addBoolOption("noFaceZones");
|
||||
argList::addBoolOption
|
||||
(
|
||||
"noFaceZones",
|
||||
"no faceZones"
|
||||
);
|
||||
|
||||
# include "setRootCase.H"
|
||||
# include "createTime.H"
|
||||
#include "setRootCase.H"
|
||||
#include "createTime.H"
|
||||
|
||||
bool doWriteInternal = !args.optionFound("noInternal");
|
||||
bool doFaceZones = !args.optionFound("noFaceZones");
|
||||
|
||||
bool nearCellValue = args.optionFound("nearCellValue");
|
||||
const bool doWriteInternal = !args.optionFound("noInternal");
|
||||
const bool doFaceZones = !args.optionFound("noFaceZones");
|
||||
const bool nearCellValue = args.optionFound("nearCellValue");
|
||||
const bool noPointValues = args.optionFound("noPointValues");
|
||||
|
||||
if (nearCellValue)
|
||||
{
|
||||
@ -195,8 +230,6 @@ int main(int argc, char *argv[])
|
||||
<< nl << endl;
|
||||
}
|
||||
|
||||
bool noPointValues = args.optionFound("noPointValues");
|
||||
|
||||
if (noPointValues)
|
||||
{
|
||||
WarningIn(args.executable())
|
||||
|
||||
Reference in New Issue
Block a user