Go to the documentation of this file.
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"
A class for handling words, derived from Foam::string.
A class for handling file names.
T getOrDefault(const word &optName, const T &deflt) const
static void addNote(const string ¬e)
Unit conversion functions.
Ostream & endl(Ostream &os)
void exit(const int errNo=1)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Foam::argList args(argc, argv)
void printUsage(bool full=true) const
bool found(const word &optName) const