diff --git a/applications/utilities/surface/surfaceAdd/surfaceAdd.C b/applications/utilities/surface/surfaceAdd/surfaceAdd.C index fedb28839..a246bf2c8 100644 --- a/applications/utilities/surface/surfaceAdd/surfaceAdd.C +++ b/applications/utilities/surface/surfaceAdd/surfaceAdd.C @@ -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 @@ -53,9 +53,9 @@ int main(int argc, char *argv[]) ); argList::noParallel(); - argList::validArgs.append("surfaceFile"); - argList::validArgs.append("surfaceFile"); - argList::validArgs.append("output surfaceFile"); + argList::validArgs.append("surface file"); + argList::validArgs.append("surface file"); + argList::validArgs.append("output surface file"); argList::addOption ( diff --git a/applications/utilities/surface/surfaceAutoPatch/surfaceAutoPatch.C b/applications/utilities/surface/surfaceAutoPatch/surfaceAutoPatch.C index 9280fb99a..84ce0735c 100644 --- a/applications/utilities/surface/surfaceAutoPatch/surfaceAutoPatch.C +++ b/applications/utilities/surface/surfaceAutoPatch/surfaceAutoPatch.C @@ -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 @@ -45,8 +45,8 @@ using namespace Foam; int main(int argc, char *argv[]) { argList::noParallel(); - argList::validArgs.append("input surfaceFile"); - argList::validArgs.append("output surfaceFile"); + argList::validArgs.append("surface file"); + argList::validArgs.append("output surface file"); argList::validArgs.append("includedAngle [0..180]"); argList args(argc, argv); diff --git a/applications/utilities/surface/surfaceBooleanFeatures/surfaceBooleanFeatures.C b/applications/utilities/surface/surfaceBooleanFeatures/surfaceBooleanFeatures.C index 1acf1835a..d955c6822 100644 --- a/applications/utilities/surface/surfaceBooleanFeatures/surfaceBooleanFeatures.C +++ b/applications/utilities/surface/surfaceBooleanFeatures/surfaceBooleanFeatures.C @@ -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 @@ -395,9 +395,9 @@ void calcFeaturePoints(const pointField& points, const edgeList& edges) int main(int argc, char *argv[]) { argList::noParallel(); + argList::validArgs.append("surface file"); + argList::validArgs.append("surface file"); argList::validArgs.append("action"); - argList::validArgs.append("surface file"); - argList::validArgs.append("surface file"); argList::addBoolOption ( @@ -428,7 +428,7 @@ int main(int argc, char *argv[]) #include "setRootCase.H" #include "createTime.H" - word action(args.args()[1]); + word action(args.args()[3]); HashTable validActions; validActions.insert("intersection", booleanSurface::INTERSECTION); @@ -442,7 +442,7 @@ int main(int argc, char *argv[]) << "Supported actions:" << validActions.toc() << abort(FatalError); } - fileName surf1Name(args.args()[2]); + fileName surf1Name = args[1]; Info<< "Reading surface " << surf1Name << endl; triSurface surf1(surf1Name); @@ -450,7 +450,7 @@ int main(int argc, char *argv[]) surf1.writeStats(Info); Info<< endl; - fileName surf2Name(args[3]); + fileName surf2Name = args[2]; Info<< "Reading surface " << surf2Name << endl; triSurface surf2(surf2Name); diff --git a/applications/utilities/surface/surfaceCheck/surfaceCheck.C b/applications/utilities/surface/surfaceCheck/surfaceCheck.C index 6ca0010b6..acdd407c2 100644 --- a/applications/utilities/surface/surfaceCheck/surfaceCheck.C +++ b/applications/utilities/surface/surfaceCheck/surfaceCheck.C @@ -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 @@ -172,7 +172,7 @@ labelList countBins int main(int argc, char *argv[]) { argList::noParallel(); - argList::validArgs.append("surfaceFile"); + argList::validArgs.append("surface file"); argList::addBoolOption ( "checkSelfIntersection", diff --git a/applications/utilities/surface/surfaceClean/surfaceClean.C b/applications/utilities/surface/surfaceClean/surfaceClean.C index acea21f0b..254fa89c1 100644 --- a/applications/utilities/surface/surfaceClean/surfaceClean.C +++ b/applications/utilities/surface/surfaceClean/surfaceClean.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -47,10 +47,10 @@ using namespace Foam; int main(int argc, char *argv[]) { argList::noParallel(); - argList::validArgs.append("surfaceFile"); + argList::validArgs.append("surface file"); + argList::validArgs.append("output surface file"); argList::validArgs.append("min length"); argList::validArgs.append("min quality"); - argList::validArgs.append("output surfaceFile"); argList::addBoolOption ( "noClean", @@ -59,9 +59,9 @@ int main(int argc, char *argv[]) argList args(argc, argv); const fileName inFileName = args[1]; - const scalar minLen = args.argRead(2); - const scalar minQuality = args.argRead(3); - const fileName outFileName = args[4]; + const fileName outFileName = args[2]; + const scalar minLen = args.argRead(3); + const scalar minQuality = args.argRead(4); Info<< "Reading surface " << inFileName << nl << "Collapsing all triangles with" << nl diff --git a/applications/utilities/surface/surfaceCoarsen/surfaceCoarsen.C b/applications/utilities/surface/surfaceCoarsen/surfaceCoarsen.C index cff623031..4189080be 100644 --- a/applications/utilities/surface/surfaceCoarsen/surfaceCoarsen.C +++ b/applications/utilities/surface/surfaceCoarsen/surfaceCoarsen.C @@ -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 @@ -66,14 +66,14 @@ int mapVertex(::List& collapse_map, int a, int mx) int main(int argc, char *argv[]) { argList::noParallel(); - argList::validArgs.append("surfaceFile"); + argList::validArgs.append("surface file"); + argList::validArgs.append("output surface file"); argList::validArgs.append("reductionFactor"); - argList::validArgs.append("output surfaceFile"); argList args(argc, argv); const fileName inFileName = args[1]; - const scalar reduction = args.argRead(2); - const fileName outFileName = args[3]; + const fileName outFileName = args[2]; + const scalar reduction = args.argRead(3); if (reduction <= 0 || reduction > 1) { diff --git a/applications/utilities/surface/surfaceConvert/surfaceConvert.C b/applications/utilities/surface/surfaceConvert/surfaceConvert.C index 02e10b9f0..38b3cd0aa 100644 --- a/applications/utilities/surface/surfaceConvert/surfaceConvert.C +++ b/applications/utilities/surface/surfaceConvert/surfaceConvert.C @@ -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 @@ -65,8 +65,8 @@ int main(int argc, char *argv[]) ); argList::noParallel(); - argList::validArgs.append("inputFile"); - argList::validArgs.append("outputFile"); + argList::validArgs.append("surface file"); + argList::validArgs.append("output surface file"); argList::addBoolOption ( diff --git a/applications/utilities/surface/surfaceFeatureConvert/surfaceFeatureConvert.C b/applications/utilities/surface/surfaceFeatureConvert/surfaceFeatureConvert.C index 8e4d17846..52acadd06 100644 --- a/applications/utilities/surface/surfaceFeatureConvert/surfaceFeatureConvert.C +++ b/applications/utilities/surface/surfaceFeatureConvert/surfaceFeatureConvert.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -46,8 +46,8 @@ int main(int argc, char *argv[]) "Convert between edgeMesh formats" ); argList::noParallel(); - argList::validArgs.append("inputFile"); - argList::validArgs.append("outputFile"); + argList::validArgs.append("edge file"); + argList::validArgs.append("output edge file"); argList::addOption ( "scale", diff --git a/applications/utilities/surface/surfaceFind/surfaceFind.C b/applications/utilities/surface/surfaceFind/surfaceFind.C index 0bc555b1f..042c5994b 100644 --- a/applications/utilities/surface/surfaceFind/surfaceFind.C +++ b/applications/utilities/surface/surfaceFind/surfaceFind.C @@ -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 @@ -42,7 +42,7 @@ using namespace Foam; int main(int argc, char *argv[]) { argList::noParallel(); - argList::validArgs.append("surfaceFile"); + argList::validArgs.append("surface file"); argList::addOption("x", "X", "The point x-coordinate (if non-zero)"); argList::addOption("y", "Y", "The point y-coordinate (if non-zero)"); argList::addOption("z", "Z", "The point y-coordinate (if non-zero)"); diff --git a/applications/utilities/surface/surfaceInertia/surfaceInertia.C b/applications/utilities/surface/surfaceInertia/surfaceInertia.C index b79c28633..0a528485f 100644 --- a/applications/utilities/surface/surfaceInertia/surfaceInertia.C +++ b/applications/utilities/surface/surfaceInertia/surfaceInertia.C @@ -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 @@ -56,7 +56,7 @@ int main(int argc, char *argv[]) ); argList::noParallel(); - argList::validArgs.append("surfaceFile"); + argList::validArgs.append("surface file"); argList::addBoolOption ( "shellProperties", diff --git a/applications/utilities/surface/surfaceLambdaMuSmooth/surfaceLambdaMuSmooth.C b/applications/utilities/surface/surfaceLambdaMuSmooth/surfaceLambdaMuSmooth.C index 9daa17943..3ed24ffe9 100644 --- a/applications/utilities/surface/surfaceLambdaMuSmooth/surfaceLambdaMuSmooth.C +++ b/applications/utilities/surface/surfaceLambdaMuSmooth/surfaceLambdaMuSmooth.C @@ -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 @@ -130,11 +130,11 @@ int main(int argc, char *argv[]) { argList::noParallel(); argList::validOptions.clear(); - argList::validArgs.append("surfaceFile"); + argList::validArgs.append("surface file"); + argList::validArgs.append("output surface file"); argList::validArgs.append("lambda (0..1)"); argList::validArgs.append("mu (0..1)"); argList::validArgs.append("iterations"); - argList::validArgs.append("output surfaceFile"); argList::addOption ( "featureFile", @@ -143,10 +143,10 @@ int main(int argc, char *argv[]) argList args(argc, argv); const fileName surfFileName = args[1]; - const scalar lambda = args.argRead(2); - const scalar mu = args.argRead(3); - const label iters = args.argRead