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;
114 Info<<
"writing " << exportName;
117 Info<<
" triangulated";
121 if (scaleFactor <= 0)
127 Info<<
" with scaling " << scaleFactor <<
endl;
129 surf.
write(exportName);
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define forAll(list, i)
Loop across all elements in list.
virtual Ostream & write(const char)=0
Write character.
A class for handling file names.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool optionFound(const word &opt) const
Return true if the named option is found.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
word ext() const
Return file name extension (part after last .)
A class for handling words, derived from string.
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
static bool canWriteType(const word &ext, const bool verbose=false)
Can we write this file format?
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
readUpdateState readUpdate(const stitchType stitch=stitchType::geometric)
Update the mesh based on the mesh files saved in time.
virtual void scalePoints(const scalar)
Scale points. A non-positive factor is ignored.
fileName lessExt() const
Return file name without extension (part before last .)
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
readUpdateState
Enumeration defining the state of the mesh after a read update.
Foam::argList args(argc, argv)
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.