Skip to content
Snippets Groups Projects
Commit 6779036a authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: paraFoam -touch-proc option for processor directories

- Can be useful when investigating mesh topologies
parent 8005e2b4
No related merge requests found
...@@ -39,12 +39,14 @@ usage() { ...@@ -39,12 +39,14 @@ usage() {
Usage: ${0##*/} [OPTION] [--] [PARAVIEW_OPTION] Usage: ${0##*/} [OPTION] [--] [PARAVIEW_OPTION]
options: options:
-block use blockMesh reader (uses .blockMesh extension) -block use blockMesh reader (uses .blockMesh extension)
-case <dir> specify alternative case directory, default is the cwd -case <dir> specify alternative case directory, default is the cwd
-region <name> specify alternative mesh region -region <name> specify alternative mesh region
-touch only create the file (eg, .blockMesh, .OpenFOAM, etc) -touch create the file (eg, .blockMesh, .OpenFOAM, .foam, ...)
-touchAll create .blockMesh, .OpenFOAM files (and for all regions) -touch-all | -touchAll
-vtk | -builtin use VTK builtin OpenFOAM reader (uses .foam extension) create .blockMesh, .OpenFOAM files (and for all regions)
-touch-proc same as '-touch' but for each processor
-vtk | -builtin use VTK builtin OpenFOAM reader (uses .foam extension)
-help print the usage -help print the usage
--help paraview help --help paraview help
...@@ -102,11 +104,16 @@ do ...@@ -102,11 +104,16 @@ do
unset plugin unset plugin
shift shift
;; ;;
-touchAll) -touch-all | -touchAll)
optTouch=all optTouch=all
unset plugin unset plugin
shift shift
;; ;;
-touch-proc*)
optTouch=processor
unset plugin
shift
;;
--) --)
shift shift
break # Stop here, treat balance as paraview options break # Stop here, treat balance as paraview options
...@@ -205,6 +212,16 @@ all) ...@@ -205,6 +212,16 @@ all)
done done
exit 0 exit 0
;; ;;
processor)
for i in processor*
do
(
cd $i 2> /dev/null && touch "${caseFile%.*}#${i#processor}.$extension"
)
done
echo "Created '$caseFile' for processor directories" 1>&2
exit 0
;;
true) true)
touch "$caseFile" touch "$caseFile"
echo "Created '$caseFile'" 1>&2 echo "Created '$caseFile'" 1>&2
......
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