From dc305b04f3445877f6001e165d95cc8b4c6065bc Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 14 Jun 2016 17:43:31 +0100 Subject: [PATCH] foamList: Added support for listing scalar and vector field boundary conditions Usage: foamList [OPTIONS] options: -case 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) -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) -srcDoc display source code in browser -doc display application documentation in browser -help print the usage --- .../miscellaneous/foamList/foamList.C | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/applications/utilities/miscellaneous/foamList/foamList.C b/applications/utilities/miscellaneous/foamList/foamList.C index e787a1352b..429e2c5113 100644 --- a/applications/utilities/miscellaneous/foamList/foamList.C +++ b/applications/utilities/miscellaneous/foamList/foamList.C @@ -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)" + ); + argList::addBoolOption + ( + "vectorBCs", + "List vector field boundary conditions (fvPatchField)" + ); + argList::addBoolOption ( "functionObjects", "List functionObjects" @@ -194,6 +205,20 @@ int main(int argc, char *argv[]) listSwitches(args); } + if (args.optionFound("scalarBCs")) + { + Info<< "scalarBCs" + << fvPatchField::dictionaryConstructorTablePtr_->sortedToc() + << endl; + } + + if (args.optionFound("vectorBCs")) + { + Info<< "vectorBCs" + << fvPatchField::dictionaryConstructorTablePtr_->sortedToc() + << endl; + } + if (args.optionFound("functionObjects")) { Info<< "functionObjects" @@ -244,6 +269,7 @@ int main(int argc, char *argv[]) << endl; } + return 0; }