mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: cleanup handling of 0.org directories (in parallel)
- remove duplicate 0/ files from the repository
This commit is contained in:
@ -7,10 +7,10 @@
|
||||
\cp ../lesFiles/fvS* ../lesFiles/controlDict system/
|
||||
\cp ../lesFiles/turbulenceProperties constant/
|
||||
|
||||
# $1 for special test cases?
|
||||
\ls -d processor* | xargs -I {} \rm -rf ./{}/0 $1
|
||||
\ls -d processor* | xargs -I {} \mv ./{}/500 ./{}/0 $1
|
||||
\ls -d processor* | xargs -I {} \rm -rf ./{}/0/uniform $1
|
||||
# restart from iteration 500
|
||||
\ls -d processor* | xargs -I {} \rm -rf ./{}/0
|
||||
\ls -d processor* | xargs -I {} \mv ./{}/500 ./{}/0
|
||||
\ls -d processor* | xargs -I {} \rm -rf ./{}/0/uniform
|
||||
|
||||
runParallel pisoFoam
|
||||
|
||||
|
||||
@ -20,9 +20,7 @@ runParallel snappyHexMesh -decomposeParDict system/decomposeParDict.ptscotch -pr
|
||||
find . -type f -iname "*level*" -exec rm {} \;
|
||||
|
||||
#- set the initial fields
|
||||
# $1 for special test cases?
|
||||
\ls -d processor* | xargs -I {} \rm -rf ./{}/0 $1
|
||||
\ls -d processor* | xargs -I {} \cp -r 0.org ./{}/0 $1
|
||||
restore0Dir -processor
|
||||
|
||||
runParallel renumberMesh -overwrite
|
||||
runParallel potentialFoam -initialiseUBCs
|
||||
|
||||
@ -17,8 +17,7 @@ runParallel snappyHexMesh -overwrite
|
||||
# restore0Dir
|
||||
|
||||
#- For parallel running: set the initial fields
|
||||
\ls -d processor* | xargs -I {} \rm -rf ./{}/0
|
||||
\ls -d processor* | xargs -I {} \cp -r 0.org ./{}/0
|
||||
restore0Dir -processor
|
||||
|
||||
runParallel patchSummary
|
||||
runParallel potentialFoam
|
||||
|
||||
@ -8,17 +8,16 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
mkdir 0
|
||||
|
||||
runApplication blockMesh
|
||||
cp system/decomposeParDict.hierarchical system/decomposeParDict
|
||||
\cp system/decomposeParDict.hierarchical system/decomposeParDict
|
||||
runApplication decomposePar
|
||||
|
||||
cp system/decomposeParDict.ptscotch system/decomposeParDict
|
||||
\cp system/decomposeParDict.ptscotch system/decomposeParDict
|
||||
runParallel snappyHexMesh -overwrite
|
||||
|
||||
find . -type f -iname "*level*" -exec rm {} \;
|
||||
|
||||
# - set the initial fields
|
||||
\ls -d processor* | xargs -I {} \rm -rf ./{}/0
|
||||
\ls -d processor* | xargs -I {} \cp -r 0.org ./{}/0
|
||||
restore0Dir -processor
|
||||
|
||||
runParallel topoSet
|
||||
runParallel $(getApplication)
|
||||
|
||||
Reference in New Issue
Block a user