utilities: Remove unused case related options

This commit is contained in:
Henry Weller
2018-06-11 15:21:34 +01:00
parent 712d4ca07d
commit 2e1825a50f
23 changed files with 58 additions and 43 deletions

View File

@ -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-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -37,10 +37,8 @@ Description
#include "point.H"
#include "DynamicList.H"
using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
string getLine(std::ifstream& is)
@ -111,7 +109,8 @@ labelList parseVertices(const string& line)
int main(int argc, char *argv[])
{
argList::noParallel();
#include "removeCaseOptions.H"
argList::validArgs.append("OBJ file");
argList::validArgs.append("output VTK file");
argList args(argc, argv);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -47,12 +47,13 @@ using namespace Foam;
int main(int argc, char *argv[])
{
#include "removeCaseOptions.H"
argList::addNote
(
"add two surfaces via a geometric merge on points."
);
argList::noParallel();
argList::validArgs.append("surface file");
argList::validArgs.append("surface file");
argList::validArgs.append("output surface file");

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -41,10 +41,10 @@ using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int main(int argc, char *argv[])
{
argList::noParallel();
#include "removeCaseOptions.H"
argList::validArgs.append("surface file");
argList::validArgs.append("output surface file");
argList::validArgs.append("includedAngle [0..180]");

View File

@ -171,7 +171,8 @@ labelList countBins
int main(int argc, char *argv[])
{
argList::noParallel();
#include "removeCaseOptions.H"
argList::validArgs.append("surface file");
argList::addBoolOption
(

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -46,7 +46,8 @@ using namespace Foam;
int main(int argc, char *argv[])
{
argList::noParallel();
#include "removeCaseOptions.H"
argList::validArgs.append("surface file");
argList::validArgs.append("output surface file");
argList::validArgs.append("min length");

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -65,7 +65,8 @@ int mapVertex(::List<int>& collapse_map, int a, int mx)
int main(int argc, char *argv[])
{
argList::noParallel();
#include "removeCaseOptions.H"
argList::validArgs.append("surface file");
argList::validArgs.append("output surface file");
argList::validArgs.append("reductionFactor");

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -50,21 +50,20 @@ Note
#include "triSurface.H"
#include "OFstream.H"
#include "OSspecific.H"
#include "Time.H"
using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int main(int argc, char *argv[])
{
#include "removeCaseOptions.H"
argList::addNote
(
"convert between surface formats"
);
argList::noParallel();
argList::validArgs.append("surface file");
argList::validArgs.append("output surface file");

View File

@ -36,12 +36,12 @@ Description
using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int main(int argc, char *argv[])
{
argList::noParallel();
#include "removeCaseOptions.H"
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)");

View File

@ -48,6 +48,8 @@ using namespace Foam;
int main(int argc, char *argv[])
{
#include "removeCaseOptions.H"
argList::addNote
(
"Calculates the inertia tensor and principal axes and moments "
@ -55,7 +57,6 @@ int main(int argc, char *argv[])
"Inertia can either be of the solid body or of a thin shell."
);
argList::noParallel();
argList::validArgs.append("surface file");
argList::addBoolOption
(

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -128,7 +128,8 @@ void getFixedPoints
int main(int argc, char *argv[])
{
argList::noParallel();
#include "removeCaseOptions.H"
argList::validOptions.clear();
argList::validArgs.append("surface file");
argList::validArgs.append("output surface file");

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -70,6 +70,8 @@ using namespace Foam;
int main(int argc, char *argv[])
{
#include "removeCaseOptions.H"
argList::addNote
(
"convert between surface formats, "
@ -77,7 +79,6 @@ int main(int argc, char *argv[])
"Normally use surfaceMeshConvert instead."
);
argList::noParallel();
argList::validArgs.append("surface file");
argList::validArgs.append("output surface file");

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -41,12 +41,13 @@ using namespace Foam;
int main(int argc, char *argv[])
{
#include "removeCaseOptions.H"
argList::addNote
(
"set face normals consistent with a user-provided 'outside' point"
);
argList::noParallel();
argList::validArgs.append("surface file");
argList::validArgs.append("output surface file");
argList::validArgs.append("visiblePoint");

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -38,12 +38,12 @@ Description
using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int main(int argc, char *argv[])
{
argList::noParallel();
#include "removeCaseOptions.H"
argList::validArgs.append("surface file");
argList::validArgs.append("output surface file");
argList::validArgs.append("merge distance");

View File

@ -40,12 +40,12 @@ Description
using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int main(int argc, char *argv[])
{
argList::noParallel();
#include "removeCaseOptions.H"
argList::validArgs.append("surface file");
argList::validArgs.append("output surface file");
argList args(argc, argv);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -38,12 +38,13 @@ using namespace Foam;
int main(int argc, char *argv[])
{
#include "removeCaseOptions.H"
argList::addNote
(
"write surface mesh regions to separate files"
);
argList::noParallel();
argList::validArgs.append("surface file");
argList args(argc, argv);

View File

@ -38,7 +38,8 @@ using namespace Foam;
int main(int argc, char *argv[])
{
argList::noParallel();
#include "removeCaseOptions.H"
argList::validOptions.clear();
argList::validArgs.append("surface file");
argList::validArgs.append("output surface file");

View File

@ -666,11 +666,12 @@ bool splitBorderEdges
int main(int argc, char *argv[])
{
#include "removeCaseOptions.H"
argList::addNote
(
"split multiply connected surface edges by duplicating points"
);
argList::noParallel();
argList::validArgs.append("surface file");
argList::validArgs.append("output surface file");
argList::addBoolOption

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -50,7 +50,8 @@ using namespace Foam;
int main(int argc, char *argv[])
{
argList::noParallel();
#include "removeCaseOptions.H"
argList::validArgs.append("surface file");
argList::validArgs.append("output surface file");
argList::validArgs.append("surfaceSubsetDict");

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -56,6 +56,8 @@ using namespace Foam::constant::mathematical;
int main(int argc, char *argv[])
{
#include "removeCaseOptions.H"
argList::addNote
(
"Transform (scale/rotate) a surface. "

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -42,6 +42,8 @@ using namespace Foam;
int main(int argc, char *argv[])
{
#include "removeCaseOptions.H"
// Increase the precision of the output for JANAF coefficients
Ostream::defaultPrecision(10);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -33,7 +33,6 @@ Description
#include "Time.H"
#include "dictionary.H"
#include "IFstream.H"
#include "OSspecific.H"
#include "IOmanip.H"
#include "specie.H"

View File

@ -52,6 +52,8 @@ typedef species::thermo<janafThermo<perfectGas<specie>>, absoluteEnthalpy>
int main(int argc, char *argv[])
{
#include "removeCaseOptions.H"
argList::validArgs.append("properties dictionary");
argList args(argc, argv);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License