59 int main(
int argc,
char *argv[])
63 "convert pro-STAR (v4) mesh to OpenFOAM" 71 "write in ASCII instead of binary format" 77 "geometry scaling factor - default is 0.001 ([mm] to [m])" 82 "retain solid cells and treat them like fluid cells" 113 reader.writeMesh(mesh, format);
A class for handling file names.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
static unsigned int defaultPrecision()
Return the default precision.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
const fileName & rootPath() const
Return root path.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
T optionLookupOrDefault(const word &opt, const T &deflt) const
Read a value from the named option if present.
const fileName & caseName() const
Return case name (parallel run) or global case (serial run)
Read pro-STAR vrt/cel/bnd files. The protected data in meshReader are filled.
bool optionFound(const word &opt) const
Return true if the named option is found.
Extract command arguments and options from the supplied argc and argv parameters. ...
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
streamFormat
Enumeration for the format of data in the stream.
fileName lessExt() const
Return file name without extension (part before last .)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
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.
Foam::argList args(argc, argv)
static bool keepSolids
Keep solids (default false)