62 int main(
int argc,
char *argv[])
66 "Convert Ensight mesh to OpenFOAM" 75 "Merge tolerance as a fraction of bounding box - 0 to disable merging" 81 "Geometry scaling factor - default is 1" 86 "Do not automatically flip inverted cells" 87 " (default is to do a geometric test)" static void addNote(const string ¬e)
Add extra notes for the usage information.
A class for handling file names.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static unsigned int defaultPrecision() noexcept
Return the default precision.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
static void noParallel()
Remove the parallel options.
T getOrDefault(const word &optName, const T &deflt) const
Get a value from the named option if present, or return default.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const dimensionedScalar e
Elementary charge.
Extract command arguments and options from the supplied argc and argv parameters. ...
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
const fileName & caseName() const noexcept
Return case name (parallel run) or global case (serial run)
virtual bool write(const bool writeOnProc=true) const
Write mesh using IO settings from time.
const word & constant() const noexcept
Return constant name.
const fileName & rootPath() const noexcept
Return root path.
T get(const label index) const
Get a value from the argument at index.
void setInstance(const fileName &instance, const IOobjectOption::writeOption wOpt=IOobject::AUTO_WRITE)
Set the instance for mesh files.
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)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Foam::argList args(argc, argv)
bool found(const word &optName) const
Return true if the named option is found.