54 int main(
int argc,
char *argv[])
64 "geometry scaling factor - default is 1"
76 scalar scaleFactor = 0;
81 word exportExt = exportName.
ext();
94 runTime.setTime(
timeDirs[timeI], timeI);
95 #include "getTimeIndex.H"
103 exportName = exportBase +
"." + exportExt;
108 exportBase +
'_' + runTime.
name() +
"." + exportExt;
112 surf.scalePoints(scaleFactor);
114 Info<<
"writing " << exportName;
117 Info<<
" triangulated";
121 if (scaleFactor <= 0)
127 Info<<
" with scaling " << scaleFactor <<
endl;
129 surf.
write(exportName);
#define forAll(list, i)
Loop across all elements in list.
static bool canWriteType(const word &ext, const bool verbose=false)
Can we write this file format?
virtual Ostream & write(const char)=0
Write character.
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
bool optionFound(const word &opt) const
Return true if the named option is found.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
A class for handling file names.
word name() const
Return file name (part beyond last /)
fileName lessExt() const
Return file name without extension (part before last .)
word ext() const
Return file name extension (part after last .)
readUpdateState
Enumeration defining the state of the mesh after a read update.
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
A class for handling words, derived from string.
int main(int argc, char *argv[])
static instantList timeDirs
Ostream & endl(Ostream &os)
Add newline and flush stream.
Foam::argList args(argc, argv)