62int main(
int argc,
char *argv[])
66 "Convert a KIVA3v grid to OpenFOAM"
68 argList::noParallel();
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"
void printUsage(bool full=true) const
Print usage.
bool found(const word &optName) const
Return true if the named option is found.
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.
A class for handling file names.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Foam::argList args(argc, argv)
Unit conversion functions.