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
5e538b58
Commit
5e538b58
authored
17 years ago
by
Oliver Sander
Committed by
sander@PCPOOL.MI.FU-BERLIN.DE
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
test suite for the Dirichlet-Neumann solver. Initial commit
[[Imported from SVN: r1621]]
parent
cb10e965
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dirneu_testsuite/testsuite.sh
+115
-0
115 additions, 0 deletions
dirneu_testsuite/testsuite.sh
with
115 additions
and
0 deletions
dirneu_testsuite/testsuite.sh
0 → 100755
+
115
−
0
View file @
5e538b58
#!/bin/bash
set
-e
runComputation
(){
RESULTPATH
=
`
pwd
`
/
$1
/
PARAMETERFILE
=
${
RESULTPATH
}${
1
}
".parset"
LOGFILE
=
${
RESULTPATH
}${
1
}
".log"
#echo $RESULTPATH
# Set up directory where to store the results
if
!
test
-d
"
$RESULTPATH
"
;
then
mkdir
$RESULTPATH
fi
#rm $RESULTPATH/*
cat
>
"
${
PARAMETERFILE
}
"
<<
EOF
# Number of grid levels
numLevels =
$2
# Tolerance of the Dirichlet-Neumann solver
ddTolerance = 1e-12
# Max number of Dirichlet-Neumann steps
maxDirichletNeumannSteps = 50
# Damping for the Dirichlet-Neumann solver
damping =
$3
# Tolerance of the trust-region solver for the rod problem
trTolerance = 1e-12
# Max number of steps of the trust region solver
maxTrustRegionSteps = 20
# Initial trust-region radius
initialTrustRegionRadius = 1
# Number of multigrid iterations per trust-region step
numIt = 30
# Number of presmoothing steps
nu1 = 3
# Number of postsmoothing steps
nu2 = 3
# Number of coarse grid corrections
mu = 1
# Number of base solver iterations
baseIt = 100
# Tolerance of the multigrid solver
mgTolerance = 1e-13
# Tolerance of the base grid solver
baseTolerance = 1e-8
# Measure convergence
instrumented = 1
############################
# Problem specifications
############################
path = /home/haile/sander/data/multicoupling/simplecoupling/
gridFile = hexarod.grid
dirichletNodes = hexarod.dn
dirichletValues = hexarod.nodv
interfaceNodes = hexarod.ifn
# Number of elements of the rod grid
numRodBaseElements = 5
# Dirichlet values
dirichletValueX = 0.5
dirichletValueY = 0.6
dirichletValueZ = 10
dirichletAxisX = 1
dirichletAxisY = 0
dirichletAxisZ = 0
dirichletAngle = 0
# Where to write the results
resultPath =
$RESULTPATH
EOF
# run simulation
../dirneucoupling
${
PARAMETERFILE
}
|
tee
${
LOGFILE
}
}
# Parameters:
# 1: result directory
# 2: number of levels
# 3: damping factor
# run problems
#runComputation 2levels 2
for
level
in
2
;
do
for
damping
in
0.02
;
do
runComputation 2levels
$level
$damping
done
done
\ No newline at end of file
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