Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sander, Oliver
dune-gfe
Commits
2e66ed1b
Commit
2e66ed1b
authored
7 years ago
by
Sander, Oliver
Browse files
Options
Downloads
Patches
Plain Diff
Update the locking testsuite
parent
3ebacac4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
locking_testsuite/deflection.plt
+14
-8
14 additions, 8 deletions
locking_testsuite/deflection.plt
locking_testsuite/testsuite.sh
+21
-36
21 additions, 36 deletions
locking_testsuite/testsuite.sh
with
35 additions
and
44 deletions
locking_testsuite/deflection.plt
+
14
−
8
View file @
2e66ed1b
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 lines
points
title "
1-1
", \
'
average_
deflection
_0
' using 1:
4
with lines title "
mu_c = 0"
'deflection
.data
' using 1:
3
with lines
points
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"
This diff is collapsed.
Click to expand it.
locking_testsuite/testsuite.sh
+
21
−
36
View file @
2e66ed1b
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment