Go to the documentation of this file.
60 int main(
int argc,
char *argv[])
64 "Extract boundaries from an OpenFOAM mesh and write in a surface format"
75 "Geometry scaling factor - default is 1"
88 const bool doTriangulate =
args.
found(
"tri");
91 word exportExt = exportName.
ext();
105 #include "getTimeIndex.H"
113 exportName = exportBase +
"." + exportExt;
124 Info<<
"writing " << exportName;
127 Info<<
" triangulated";
131 if (scaleFactor <= 0)
137 Info<<
" with scaling " << scaleFactor <<
endl;
139 surf.
write(exportName);
A class for handling words, derived from Foam::string.
A class for handling file names.
T getOrDefault(const word &optName, const T &deflt) const
Get a value from the named option if present, or return default.
static word timeName(const scalar t, const int precision=precision_)
static void addNote(const string ¬e)
Add extra notes for the usage information.
virtual void scalePoints(const scalar scaleFactor)
Scale points. A non-positive factor is ignored.
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 .)
word ext() const
Return file name extension (part after last .)
static bool canWriteType(const word &fileType, bool verbose=false)
Can we write this file format? Also checks proxy types.
T get(const label index) const
Get a value from the argument at index.
#define forAll(list, i)
Loop across all elements in list.
virtual readUpdateState readUpdate()
Update the mesh based on the mesh files saved in time.
static void addArgument(const string &argName, const string &usage="")
Append a (mandatory) argument to validArgs.
messageStream Info
Information stream (stdout output on master, null elsewhere)
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
readUpdateState
Enumeration defining the state of the mesh after a read update.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
static void addOptions(const bool constant=true, const bool withZero=false)
Add timeSelector options to argList::validOptions.
virtual void setTime(const Time &t)
Reset the time and time-index to those of the given time.
static void noParallel()
Remove the parallel options.
static instantList select0(Time &runTime, const argList &args)
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
Foam::argList args(argc, argv)
bool found(const word &optName) const
Return true if the named option is found.