Go to the documentation of this file.
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.timeName() +
"." + 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);
static SLList< string > validArgs
A list of valid (mandatory) arguments.
A class for handling words, derived from string.
A class for handling file names.
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
#define forAll(list, i)
Loop across all elements in list.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
fileName lessExt() const
Return file name without extension (part before last .)
virtual readUpdateState readUpdate()
Update the mesh based on the mesh files saved in time.
static bool canWriteType(const word &ext, const bool verbose=false)
Can we write this file format?
virtual Ostream & write(const token &)=0
Write next token to stream.
int main(int argc, char *argv[])
word ext() const
Return file name extension (part after last .)
readUpdateState
Enumeration defining the state of the mesh after a read update.
static instantList timeDirs
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool optionFound(const word &opt) const
Return true if the named option is found.
static void noParallel()
Remove the parallel options.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
Foam::argList args(argc, argv)
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.