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 xlabel 'Refinement'
set ylabel 'Deflection' 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 postscript eps color "Arial,20" linewidth 6
set terminal pdf color linewidth 6 set terminal pdf color linewidth 6
set title 'Deflection of a cantilever beam' #set title 'Deflection'
set output "cantilever_deflection.pdf" set output "cantilever_deflection.pdf"
plot 'average_deflection_3.8462e+05' using 1:4 with lines title "mu_c = mu", \ plot [][0:24] 'deflection.data' using 1:2 with linespoints title "1-1", \
'average_deflection_0' using 1:4 with lines title "mu_c = 0" 'deflection.data' using 1:3 with linespoints title "2-1", \
'deflection.data' using 1:4 with linespoints title "2-2", \
set title 'Lateral deflection of a cantilever beam' 'deflection.data' using 1:5 with linespoints title "3-2", \
set output "cantilever_lateral_deflection.pdf" '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 ...@@ -5,12 +5,12 @@ set -e
runComputation(){ runComputation(){
numLevels=$1 numLevels=$1
mu_c=$2 deformationOrder=$2
kappa=$3 rotationOrder=$3
#RESULTPATH=`pwd`/richards_surfacewater_results_${leakage}_${richardsonDamping}/ #RESULTPATH=`pwd`/richards_surfacewater_results_${leakage}_${richardsonDamping}/
#LOGFILE=${RESULTPATH}/"richards_${mu_c}_${numLevels}.log" #LOGFILE=${RESULTPATH}/"richards_${mu_c}_${numLevels}.log"
LOGFILE="./cosserat_continuum_${mu_c}_${numLevels}_${kappa}.log" LOGFILE="./cosserat_continuum_${deformationOrder}_${rotationOrder}_${numLevels}.log"
#echo $RESULTPATH #echo $RESULTPATH
...@@ -20,51 +20,36 @@ LOGFILE="./cosserat_continuum_${mu_c}_${numLevels}_${kappa}.log" ...@@ -20,51 +20,36 @@ LOGFILE="./cosserat_continuum_${mu_c}_${numLevels}_${kappa}.log"
# fi # fi
#rm $RESULTPATH/* #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 # run the actual simulation
################################################# #################################################
../cosserat-continuum -numLevels ${numLevels} -materialParameters.mu_c ${mu_c} -materialParameters.kappa ${kappa} | tee ${LOGFILE} ../build-cmake/src/cosserat-continuum-${deformationOrder}-${rotationOrder} cosserat-continuum-cantilever.parset -numLevels ${numLevels} | tee ${LOGFILE}
#################################################
# Delete the directories for the iterates.
# If we let the stay they eat up to much memory
#################################################
} }
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 for order in 3; do
mu_c=0
for kappa in 1 0.1 0.01; do
# Do one simulation run # Do one simulation run
runComputation $numLevels $mu_c $kappa & #runComputation $numLevels $order $order
# Never have more than MAXPROCS processes #runComputation $numLevels 2 1
NPROC=$(($NPROC+1))
if [ "$NPROC" -ge "$MAXPROCS" ]; then runComputation $numLevels 3 2
wait
NPROC=0 # Never have more than MAXPROCS processes
fi NPROC=$(($NPROC+1))
if [ "$NPROC" -ge "$MAXPROCS" ]; then
done wait
NPROC=0
fi
done
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