62 int main(
int argc,
char *argv[])
66 "Convert a KIVA3v grid to OpenFOAM" 73 "Specify alternative input file name - default is otape17" 79 "Specify kiva version [kiva3|kiva3v] - default is '3v'" 85 "Minimum z-height for transferring liner faces to cylinder-head" 94 kivaVersions kivaVersion = kiva3v;
97 const word versionName =
args[
"version"];
99 if (versionName ==
"kiva3")
103 else if (versionName ==
"kiva3v")
105 kivaVersion = kiva3v;
110 <<
"KIVA file version " << versionName <<
" not supported"
static void addNote(const string ¬e)
Add extra notes for the usage information.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Unit conversion functions.
Ostream & endl(Ostream &os)
Add newline and flush stream.
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.
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
void printUsage(bool full=true) const
Print usage.
A class for handling words, derived from Foam::string.
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Foam::argList args(argc, argv)
bool found(const word &optName) const
Return true if the named option is found.