foamList: Added support for listing scalar and vector field boundary conditions

Usage: foamList [OPTIONS]
options:
  -case <dir>       specify alternate case directory, default is the cwd
  -compressibleTurbulenceModels
                    List compressible turbulenceModels
  -functionObjects  List functionObjects
  -fvOptions        List fvOptions
  -incompressibleTurbulenceModels
                    List incompressible turbulenceModels
  -noFunctionObjects
                    do not execute functionObjects
  -registeredSwitches
                    List switches registered for run-time modification
  -scalarBCs        List scalar field boundary conditions (fvPatchField<scalar>)
  -switches         List switches declared in libraries but not set in
                    etc/controlDict
  -unset            List switches declared in libraries but not set in
                    etc/controlDict
  -vectorBCs        List vector field boundary conditions (fvPatchField<vector>)
  -srcDoc           display source code in browser
  -doc              display application documentation in browser
  -help             print the usage
This commit is contained in:
Henry Weller
2016-06-14 17:43:31 +01:00
parent fbc0d4f4f1
commit dc305b04f3

View File

@ -46,6 +46,7 @@ Description
#include "IOobject.H"
#include "HashSet.H"
#include "etcFiles.H"
#include "fvPatchField.H"
#include "functionObject.H"
#include "fvOption.H"
#include "turbulentTransportModel.H"
@ -157,6 +158,16 @@ int main(int argc, char *argv[])
"List switches declared in libraries but not set in etc/controlDict"
);
argList::addBoolOption
(
"scalarBCs",
"List scalar field boundary conditions (fvPatchField<scalar>)"
);
argList::addBoolOption
(
"vectorBCs",
"List vector field boundary conditions (fvPatchField<vector>)"
);
argList::addBoolOption
(
"functionObjects",
"List functionObjects"
@ -194,6 +205,20 @@ int main(int argc, char *argv[])
listSwitches(args);
}
if (args.optionFound("scalarBCs"))
{
Info<< "scalarBCs"
<< fvPatchField<scalar>::dictionaryConstructorTablePtr_->sortedToc()
<< endl;
}
if (args.optionFound("vectorBCs"))
{
Info<< "vectorBCs"
<< fvPatchField<vector>::dictionaryConstructorTablePtr_->sortedToc()
<< endl;
}
if (args.optionFound("functionObjects"))
{
Info<< "functionObjects"
@ -244,6 +269,7 @@ int main(int argc, char *argv[])
<< endl;
}
return 0;
}