Skip to content
Snippets Groups Projects
Commit 9a3742c4 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

work with the latest executable

[[Imported from SVN: r2019]]
parent 918b29a2
No related branches found
No related tags found
No related merge requests found
...@@ -6,8 +6,8 @@ set -e ...@@ -6,8 +6,8 @@ set -e
runComputation(){ runComputation(){
RESULTPATH=`pwd`/$1/ RESULTPATH=`pwd`/$1/
PARAMETERFILE=${RESULTPATH}${1}".parset" PARAMETERFILE=${RESULTPATH}${1}"_"${3}".parset"
LOGFILE=${RESULTPATH}${1}".log" LOGFILE=${RESULTPATH}${1}"_"${3}".log"
#echo $RESULTPATH #echo $RESULTPATH
...@@ -22,13 +22,10 @@ cat > "${PARAMETERFILE}" <<EOF ...@@ -22,13 +22,10 @@ cat > "${PARAMETERFILE}" <<EOF
numLevels = $2 numLevels = $2
# Tolerance of the Dirichlet-Neumann solver # Tolerance of the Dirichlet-Neumann solver
ddTolerance = 1e-12 ddTolerance = 1e-9
# Max number of Dirichlet-Neumann steps # Max number of Dirichlet-Neumann steps
maxDirichletNeumannSteps = 500 maxDirichletNeumannSteps = 30
# Damping for the Dirichlet-Neumann solver
damping = $3
# Tolerance of the trust-region solver for the rod problem # Tolerance of the trust-region solver for the rod problem
trTolerance = 1e-12 trTolerance = 1e-12
...@@ -36,8 +33,8 @@ trTolerance = 1e-12 ...@@ -36,8 +33,8 @@ trTolerance = 1e-12
# Max number of steps of the trust region solver # Max number of steps of the trust region solver
maxTrustRegionSteps = 20 maxTrustRegionSteps = 20
# Initial trust-region radius # Verbosity of the trust-region solver
initialTrustRegionRadius = 1 trVerbosity = 0
# Number of multigrid iterations per trust-region step # Number of multigrid iterations per trust-region step
numIt = 30 numIt = 30
...@@ -58,33 +55,132 @@ baseIt = 100 ...@@ -58,33 +55,132 @@ baseIt = 100
mgTolerance = 1e-13 mgTolerance = 1e-13
# Tolerance of the base grid solver # Tolerance of the base grid solver
baseTolerance = 1e-8 baseTolerance = 1e-13
# Initial trust-region radius
initialTrustRegionRadius = 1
# Damping
damping = $3
# Measure convergence # Measure convergence
instrumented = 1 instrumented = 0
############################ ############################
# Problem specifications # Problem specifications
############################ ############################
path = /home/haile/sander/data/multicoupling/simplecoupling/ #path = /home/haile/sander/data/multicoupling/simplecoupling/
gridFile = hexarod.grid #gridFile = hexarod.grid
dirichletNodes = hexarod.dn #dirichletNodes = hexarod.dn
dirichletValues = hexarod.nodv #dirichletValues = hexarod.nodv
interfaceNodes = hexarod.ifn #interfaceNodes = hexarod.ifn
#numRodBaseElements = 4
## Cross-section area
#rodA = 0.0625
## Geometric moments (here: square of edge length 0.25)
#rodJ1 = 0.0013021
#rodJ2 = 0.0013021
## Material parameters
#rodE = 1e6
#rodNu = 0.3
# Number of elements of the rod grid #E = 1e6
numRodBaseElements = 5 #nu = 0.3
#rodRestEndPoint0X = 0.125
#rodRestEndPoint0Y = 0.125
#rodRestEndPoint0Z = 1
#rodRestEndPoint1X = 0.125
#rodRestEndPoint1Y = 0.125
#rodRestEndPoint1Z = 2
## Dirichlet values
#dirichletValueX = 0.125
#dirichletValueY = 0.125
#dirichletValueZ = 2.5
#dirichletAxisX = 0
#dirichletAxisY = 0
#dirichletAxisZ = 1
#dirichletAngle = 0
########################################################
#path = /home/haile/sander/data/multicoupling/simplecoupling/
#gridFile = cube_5x5x5.grid
#dirichletNodes = cube_5x5x5.dn
#dirichletValues = cube_5x5x5.nodv
#interfaceNodes = cube_5x5x5.ifn
#numRodBaseElements = 5
# Cross-section area
#rodA = 1
# Geometric moments (here: square of edge length one)
#rod J1 = 0.0833333
#rod J2 = 0.0833333
# Material parameters
#rodE = 2.5e5
#rodNu = 0.3
## Dirichlet values
#dirichletValueX = 0.5
#dirichletValueY = 1.5
#dirichletValueZ = 10
#dirichletAxisX = 0
#dirichletAxisY = 0
#dirichletAxisZ = 1
#dirichletAngle = 90
########################################################
path = /home/haile/sander/data/multicoupling/simplecoupling/
gridFile = cube_4x4x4.grid
dirichletNodes = cube_4x4x4.dn
dirichletValues = cube_4x4x4.nodv
interfaceNodes = cube_4x4x4.ifn
numRodBaseElements = 4
# Cross-section area
rodA = 0.0625
# Geometric moments (here: square of edge length 0.25)
rodJ1 = 0.0013021
rodJ2 = 0.0013021
# Material parameters
rodE = 1e6
rodNu = 0.3
E = 1e6
nu = 0.3
rodRestEndPoint0X = 0.625
rodRestEndPoint0Y = 0.625
rodRestEndPoint0Z = 1
#rodRestEndPoint1X = 0.625
#rodRestEndPoint1Y = 0.625
#rodRestEndPoint1Z = 2
rodRestEndPoint1X = 0.625
rodRestEndPoint1Y = -0.082
rodRestEndPoint1Z = 1.707
# Dirichlet values # Dirichlet values
dirichletValueX = 0.5 dirichletValueX = 0.625
dirichletValueY = 0.6 dirichletValueY = 0.875
dirichletValueZ = 10 dirichletValueZ = 2
dirichletAxisX = 0 dirichletAxisX = 0
dirichletAxisY = 0 dirichletAxisY = 0
dirichletAxisZ = 1 dirichletAxisZ = 1
dirichletAngle = 10 dirichletAngle = 90
# Where to write the results # Where to write the results
resultPath = $RESULTPATH resultPath = $RESULTPATH
...@@ -103,23 +199,23 @@ EOF ...@@ -103,23 +199,23 @@ EOF
# run problems # run problems
#for level in 2; do for level in 4; do
for level in 1 2 3 4 5 6; do #for level in 1 2 3 4; do
LEVELDIR=${level}"levels" LEVELDIR=${level}"levels_rot"
if test -e ${LEVELDIR}/convrates; then if test -e ${LEVELDIR}/convrates; then
rm ${LEVELDIR}/convrates rm ${LEVELDIR}/convrates
fi fi
#for damping in 0.05; do for damping in 0.6; do
for damping in 0.001 0.002 0.005 0.01 0.02 0.03 0.04 0.05; do # for damping in 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3; do
echo "Computing on "${level}" levels with damping factor "${damping} echo "Computing on "${level}" levels with damping factor "${damping}
runComputation $LEVELDIR $level $damping runComputation $LEVELDIR $level $damping
# Append convergence rate of this run to overall list for this level # Append convergence rate of this run to overall list for this level
cat convrate >> ${LEVELDIR}/convrates #cat convrate >> ${LEVELDIR}/convrates
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment