Skip to content
Snippets Groups Projects
Commit 2e66ed1b authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Update the locking testsuite

parent 3ebacac4
No related branches found
No related tags found
No related merge requests found
set xlabel 'Refinement'
set ylabel 'Deflection'
set key bottom
# Tweak the aspect ratio a little
set size 0.8,1
# Plot only integral tics (the '1' is the increment between tics)
set xtics 1
#set terminal postscript eps color "Arial,20" linewidth 6
set terminal pdf color linewidth 6
set title 'Deflection of a cantilever beam'
#set title 'Deflection'
set output "cantilever_deflection.pdf"
plot 'average_deflection_3.8462e+05' using 1:4 with lines title "mu_c = mu", \
'average_deflection_0' using 1:4 with lines title "mu_c = 0"
set title 'Lateral deflection of a cantilever beam'
set output "cantilever_lateral_deflection.pdf"
plot [][0:24] 'deflection.data' using 1:2 with linespoints title "1-1", \
'deflection.data' using 1:3 with linespoints title "2-1", \
'deflection.data' using 1:4 with linespoints title "2-2", \
'deflection.data' using 1:5 with linespoints title "3-2", \
'deflection.data' using 1:6 with linespoints title "3-3"
plot 'average_deflection_3.8462e+05' using 1:3 with lines title "mu_c = mu", \
'average_deflection_0' using 1:3 with lines title "mu_c = 0"
......@@ -5,12 +5,12 @@ set -e
runComputation(){
numLevels=$1
mu_c=$2
kappa=$3
deformationOrder=$2
rotationOrder=$3
#RESULTPATH=`pwd`/richards_surfacewater_results_${leakage}_${richardsonDamping}/
#LOGFILE=${RESULTPATH}/"richards_${mu_c}_${numLevels}.log"
LOGFILE="./cosserat_continuum_${mu_c}_${numLevels}_${kappa}.log"
LOGFILE="./cosserat_continuum_${deformationOrder}_${rotationOrder}_${numLevels}.log"
#echo $RESULTPATH
......@@ -20,51 +20,36 @@ LOGFILE="./cosserat_continuum_${mu_c}_${numLevels}_${kappa}.log"
# fi
#rm $RESULTPATH/*
#################################################
# Make directories for the iterates
#################################################
# for i in $(eval echo "{0..$LASTTIMESTEP}"); do
# ITERATESDIRNAME=${RESULTPATH}/iterates_$i
# if ! test -d ${ITERATESDIRNAME}; then
# mkdir ${ITERATESDIRNAME}
# fi
# done
#################################################
# run the actual simulation
#################################################
../cosserat-continuum -numLevels ${numLevels} -materialParameters.mu_c ${mu_c} -materialParameters.kappa ${kappa} | tee ${LOGFILE}
#################################################
# Delete the directories for the iterates.
# If we let the stay they eat up to much memory
#################################################
../build-cmake/src/cosserat-continuum-${deformationOrder}-${rotationOrder} cosserat-continuum-cantilever.parset -numLevels ${numLevels} | tee ${LOGFILE}
}
MAXPROCS=4
MAXPROCS=1
for numLevels in 1 2 3 4 5; do
for numLevels in 1 2 3 4; do
#for mu_c in 3.8462e+05 0; do
mu_c=0
for order in 3; do
for kappa in 1 0.1 0.01; do
# Do one simulation run
runComputation $numLevels $mu_c $kappa &
# Never have more than MAXPROCS processes
NPROC=$(($NPROC+1))
if [ "$NPROC" -ge "$MAXPROCS" ]; then
wait
NPROC=0
fi
done
#runComputation $numLevels $order $order
#runComputation $numLevels 2 1
runComputation $numLevels 3 2
# Never have more than MAXPROCS processes
NPROC=$(($NPROC+1))
if [ "$NPROC" -ge "$MAXPROCS" ]; then
wait
NPROC=0
fi
done
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment