mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: make it easier to perform dry runs for lumpedPointMotion
This commit is contained in:
@ -27,13 +27,18 @@ linkParallelCase()
|
|||||||
|
|
||||||
echo "Linking $dst parallel case from $src"
|
echo "Linking $dst parallel case from $src"
|
||||||
mkdir $dst
|
mkdir $dst
|
||||||
for i in constant system
|
|
||||||
|
# Copy system - may wish to change things
|
||||||
|
for i in system 0
|
||||||
do
|
do
|
||||||
cp -r $src/$i $dst
|
echo " copy $i/"
|
||||||
|
( cd $dst && cp -r ../$src/$i . )
|
||||||
done
|
done
|
||||||
|
|
||||||
echo " link processor directories with $# times: $@"
|
echo " link constant/"
|
||||||
|
( cd $dst && ln -sf ../$src/constant . )
|
||||||
|
|
||||||
|
echo " link processor*/ with $# times: $@"
|
||||||
for proc in $(cd $src && \ls -d processor*)
|
for proc in $(cd $src && \ls -d processor*)
|
||||||
do
|
do
|
||||||
( cd $dst && ln -sf ../$src/$proc . )
|
( cd $dst && ln -sf ../$src/$proc . )
|
||||||
|
|||||||
@ -3,7 +3,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
# The 0/ field only
|
# The 0/ field only
|
||||||
runApplication reconstructPar -withZero -time 0
|
# runApplication reconstructPar -withZero -time 0
|
||||||
|
runApplication reconstructParMesh -constant -withZero -time 0
|
||||||
|
|
||||||
# Check the location of the pressure zones
|
# Check the location of the pressure zones
|
||||||
# runParallel lumpedPointZones <<- Parallel file writing not yet done
|
# runParallel lumpedPointZones <<- Parallel file writing not yet done
|
||||||
|
|||||||
@ -2,6 +2,9 @@
|
|||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
|
# Cleanup old junk that may prevent things from starting
|
||||||
|
\rm -f comms/OpenFOAM.lock
|
||||||
|
|
||||||
# If OpenFOAM stops prematurely, trigger the external solver to stop
|
# If OpenFOAM stops prematurely, trigger the external solver to stop
|
||||||
trap '[ -e comms/OpenFOAM.lock ] && echo "status=done" > comms/OpenFOAM.lock' EXIT TERM INT
|
trap '[ -e comms/OpenFOAM.lock ] && echo "status=done" > comms/OpenFOAM.lock' EXIT TERM INT
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ unset parallel
|
|||||||
parallel=true
|
parallel=true
|
||||||
|
|
||||||
# Dummy 0 directory
|
# Dummy 0 directory
|
||||||
mkdir 0
|
mkdir -p 0
|
||||||
|
|
||||||
if [ "${parallel:-false}" = false ]
|
if [ "${parallel:-false}" = false ]
|
||||||
then
|
then
|
||||||
@ -39,6 +39,11 @@ else
|
|||||||
|
|
||||||
runParallel renumberMesh -overwrite
|
runParallel renumberMesh -overwrite
|
||||||
|
|
||||||
|
# In case serial calculations are needed later
|
||||||
|
|
||||||
|
restore0Dir # Overwrite dummy 0 directory
|
||||||
|
# runApplication reconstructParMesh -constant
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user