Thermophysical utilities: standardised argument naming for files
This commit is contained in:
@ -52,7 +52,7 @@ typedef species::thermo<janafThermo<perfectGas<specie>>, absoluteEnthalpy>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
argList::validArgs.append("controlFile");
|
||||
argList::validArgs.append("control file");
|
||||
argList args(argc, argv);
|
||||
|
||||
const fileName controlFileName = args[1];
|
||||
|
||||
@ -45,11 +45,11 @@ int main(int argc, char *argv[])
|
||||
// Increase the precision of the output for JANAF coefficients
|
||||
Ostream::defaultPrecision(10);
|
||||
|
||||
argList::validArgs.append("CHEMKINFile");
|
||||
argList::validArgs.append("CHEMKINThermodynamicsFile");
|
||||
argList::validArgs.append("CHEMKINTransport");
|
||||
argList::validArgs.append("FOAMChemistryFile");
|
||||
argList::validArgs.append("FOAMThermodynamicsFile");
|
||||
argList::validArgs.append("CHEMKIN file");
|
||||
argList::validArgs.append("CHEMKIN thermodynamics file");
|
||||
argList::validArgs.append("CHEMKIN transport file");
|
||||
argList::validArgs.append("OpenFOAM chemistry file");
|
||||
argList::validArgs.append("OpenFOAM thermodynamics file");
|
||||
|
||||
argList::addBoolOption
|
||||
(
|
||||
|
||||
@ -54,7 +54,7 @@ typedef species::thermo<janafThermo<perfectGas<specie>>, absoluteEnthalpy>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
argList::validArgs.append("controlFile");
|
||||
argList::validArgs.append("control file");
|
||||
argList args(argc, argv);
|
||||
|
||||
const fileName controlFileName = args[1];
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -52,7 +52,7 @@ typedef species::thermo<janafThermo<perfectGas<specie>>, absoluteEnthalpy>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
argList::validArgs.append("controlFile");
|
||||
argList::validArgs.append("control file");
|
||||
argList args(argc, argv);
|
||||
|
||||
const fileName controlFileName(args[1]);
|
||||
|
||||
Reference in New Issue
Block a user