Commit 8d4c181c authored by Henry Weller's avatar Henry Weller
Browse files

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
parent 126a1555
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment