63 int main(
int argc,
char *argv[])
67 "read OpenFOAM mesh and write a pro-STAR (v4) bnd/cel/vrt format" 76 "geometry scaling factor - default is 1000 ([m] to [mm])" 81 "suppress writing a boundary (.bnd) file" 96 scalar scaleFactor = 1000;
109 runTime.setTime(timeDirs[timeI], timeI);
111 #include "getTimeIndex.H" 127 meshName +=
'_' + runTime.timeName();
static string defaultMeshName
Specify a default mesh name.
#define forAll(list, i)
Loop across all elements in list.
A class for handling file names.
const fileName & globalCaseName() const
Return case name.
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.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
Writes polyMesh in pro-STAR (v4) bnd/cel/vrt format.
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
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.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
static void addNote(const string &)
Add extra notes for the 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.