mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use standardized 0.orig/ for overset tutorials
This commit is contained in:
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
@ -10,4 +8,4 @@ rm -f constant/polyMesh/zoneID
|
|||||||
|
|
||||||
rm -rf 0
|
rm -rf 0
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
@ -11,7 +12,9 @@ runApplication subsetMesh box -patch hole -overwrite
|
|||||||
# Select cellSets
|
# Select cellSets
|
||||||
runApplication -s zoneID topoSet
|
runApplication -s zoneID topoSet
|
||||||
|
|
||||||
rm -rf 0 && cp -r 0.org 0
|
restore0Dir
|
||||||
|
|
||||||
# Use cellSets to write zoneID
|
# Use cellSets to write zoneID
|
||||||
runApplication setFields
|
runApplication setFields
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
@ -10,4 +8,4 @@ rm -f constant/polyMesh/zoneID
|
|||||||
|
|
||||||
rm -rf 0
|
rm -rf 0
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
./Allrun.pre
|
./Allrun.pre
|
||||||
@ -6,8 +7,10 @@
|
|||||||
# Run it for a bit
|
# Run it for a bit
|
||||||
|
|
||||||
# Serial
|
# Serial
|
||||||
#runApplication `getApplication`
|
#runApplication $(getApplication)
|
||||||
|
|
||||||
# Parallel
|
# Parallel
|
||||||
runApplication decomposePar -cellDist
|
runApplication decomposePar -cellDist
|
||||||
runParallel `getApplication`
|
runParallel $(getApplication)
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
@ -11,7 +12,9 @@ runApplication subsetMesh box -patch hole -overwrite
|
|||||||
# Select cellSets
|
# Select cellSets
|
||||||
runApplication -s zoneID topoSet
|
runApplication -s zoneID topoSet
|
||||||
|
|
||||||
rm -rf 0 && cp -r 0.org 0
|
restore0Dir
|
||||||
|
|
||||||
# Use cellSets to write zoneID
|
# Use cellSets to write zoneID
|
||||||
runApplication setFields
|
runApplication setFields
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
@ -11,4 +9,4 @@ rm -f constant/cellInterpolationWeight
|
|||||||
|
|
||||||
rm -rf 0
|
rm -rf 0
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
./Allrun.pre
|
./Allrun.pre
|
||||||
|
|
||||||
# Run it for a bit
|
# Run it for a bit
|
||||||
runApplication `getApplication`
|
runApplication $(getApplication)
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
# Create background mesh
|
# Create background mesh
|
||||||
@ -13,8 +14,9 @@ runApplication mergeMeshes . ../cylinderMesh -overwrite
|
|||||||
# Select cellSets for the different zones
|
# Select cellSets for the different zones
|
||||||
runApplication topoSet
|
runApplication topoSet
|
||||||
|
|
||||||
# Copy standard fields
|
restore0Dir
|
||||||
rm -rf 0 && cp -r 0.org 0
|
|
||||||
|
|
||||||
# Use cellSets to write zoneID
|
# Use cellSets to write zoneID
|
||||||
runApplication setFields
|
runApplication setFields
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
@ -11,4 +9,4 @@ rm -f constant/cellInterpolationWeight
|
|||||||
|
|
||||||
rm -rf 0
|
rm -rf 0
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,6 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
./Allrun.pre
|
./Allrun.pre
|
||||||
|
|
||||||
runApplication overPimpleDyMFoam
|
runApplication overPimpleDyMFoam
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
@ -13,7 +14,9 @@ rm log.topoSet
|
|||||||
|
|
||||||
runApplication topoSet
|
runApplication topoSet
|
||||||
|
|
||||||
rm -rf 0 && cp -r 0.org 0
|
restore0Dir
|
||||||
|
|
||||||
# Use cellSets to write zoneID
|
# Use cellSets to write zoneID
|
||||||
runApplication setFields
|
runApplication setFields
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
@ -11,4 +9,4 @@ rm -f constant/cellInterpolationWeight
|
|||||||
|
|
||||||
rm -rf 0
|
rm -rf 0
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
./Allrun.pre
|
./Allrun.pre
|
||||||
|
|
||||||
# Get application directory
|
|
||||||
application=`getApplication`
|
|
||||||
|
|
||||||
# Serial
|
# Serial
|
||||||
#runApplication $application
|
#runApplication $(getApplication)
|
||||||
|
|
||||||
# Parallel
|
# Parallel
|
||||||
runApplication decomposePar -cellDist
|
runApplication decomposePar -cellDist
|
||||||
runParallel $application
|
runParallel $(getApplication)
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
@ -11,7 +12,9 @@ runApplication subsetMesh box -patch hole -overwrite
|
|||||||
# Select cellSets
|
# Select cellSets
|
||||||
runApplication -s 2 topoSet
|
runApplication -s 2 topoSet
|
||||||
|
|
||||||
rm -rf 0 && cp -r 0.org 0
|
restore0Dir
|
||||||
|
|
||||||
# Use cellSets to write zoneID
|
# Use cellSets to write zoneID
|
||||||
runApplication setFields
|
runApplication setFields
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
@ -11,4 +9,4 @@ rm -f constant/cellInterpolationWeight
|
|||||||
|
|
||||||
rm -rf 0
|
rm -rf 0
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,11 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
# Source tutorial run functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
# Serial
|
# Serial
|
||||||
#runApplication $(getApplication)
|
#runApplication $(getApplication)
|
||||||
|
|
||||||
# Parallel
|
# Parallel
|
||||||
runApplication decomposePar -cellDist
|
runApplication decomposePar -cellDist
|
||||||
runParallel $application
|
runParallel $(getApplication)
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
# Source tutorial run functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication extrudeMesh
|
runApplication extrudeMesh
|
||||||
@ -8,8 +7,9 @@ runApplication createPatch -overwrite
|
|||||||
mergeMeshes . ../aeroFoil_overset -overwrite
|
mergeMeshes . ../aeroFoil_overset -overwrite
|
||||||
runApplication topoSet
|
runApplication topoSet
|
||||||
|
|
||||||
# Copy standard fields
|
restore0Dir
|
||||||
rm -rf 0 && cp -r 0.org 0
|
|
||||||
|
|
||||||
# Use cellSets to write zoneID
|
# Use cellSets to write zoneID
|
||||||
runApplication setFields
|
runApplication setFields
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
# Source tutorial clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
rm -rf 0/
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|
||||||
|
rm -rf 0
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
@ -13,8 +11,7 @@ runApplication createPatch -overwrite
|
|||||||
# split mesh into 2 regions at the AMI coupled patch
|
# split mesh into 2 regions at the AMI coupled patch
|
||||||
runApplication mergeOrSplitBaffles -overwrite
|
runApplication mergeOrSplitBaffles -overwrite
|
||||||
|
|
||||||
echo "Copying 0.org to 0"
|
restore0Dir
|
||||||
cp -r 0.org 0
|
|
||||||
|
|
||||||
runApplication setFields
|
runApplication setFields
|
||||||
|
|
||||||
@ -22,4 +19,4 @@ runApplication setFields
|
|||||||
|
|
||||||
runApplication $(getApplication)
|
runApplication $(getApplication)
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
@ -13,15 +11,17 @@ runApplication createPatch -overwrite
|
|||||||
# split mesh into 2 regions at the AMI coupled patch
|
# split mesh into 2 regions at the AMI coupled patch
|
||||||
runApplication mergeOrSplitBaffles -overwrite
|
runApplication mergeOrSplitBaffles -overwrite
|
||||||
|
|
||||||
echo "Copying 0.org to 0"
|
restore0Dir
|
||||||
cp -r 0.org 0
|
|
||||||
|
|
||||||
runApplication setFields
|
runApplication setFields
|
||||||
|
|
||||||
runApplication decomposePar
|
runApplication decomposePar
|
||||||
|
|
||||||
(cd processor0/constant/polyMesh/ && ln -s ../../../include/meshModifiers .)
|
echo "Symlink include/meshModifiers"
|
||||||
(cd processor1/constant/polyMesh/ && ln -s ../../../include/meshModifiers .)
|
find -maxdepth 1 -name "processor*" -type d | while read procDir
|
||||||
|
do
|
||||||
|
(cd $procDir/constant/polyMesh && ln -sf ../../../include/meshModifiers .)
|
||||||
|
done
|
||||||
|
|
||||||
runParallel $(getApplication)
|
runParallel $(getApplication)
|
||||||
|
|
||||||
@ -29,4 +29,4 @@ runApplication reconstructParMesh
|
|||||||
|
|
||||||
runApplication reconstructPar
|
runApplication reconstructPar
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,11 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
rm -rf 0 > /dev/null 2>&1
|
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
rm -rf 0
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
# Create background mesh
|
# Create background mesh
|
||||||
@ -10,8 +11,9 @@ runApplication mergeMeshes . ../floatingBody -overwrite
|
|||||||
# Select cellSets for the different zones
|
# Select cellSets for the different zones
|
||||||
runApplication topoSet
|
runApplication topoSet
|
||||||
|
|
||||||
# Copy standard fields
|
restore0Dir
|
||||||
rm -rf 0 && cp -r 0.org 0
|
|
||||||
|
|
||||||
# Use cellSets to write zoneID
|
# Use cellSets to write zoneID
|
||||||
runApplication setFields
|
runApplication setFields
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user