diff --git a/nonlinelast.parset b/nonlinelast.parset
index 927a9cc72c8ee99802e55b661e7d6a08c92eb824..2bf98c94a63a894c18ea483224f4672f628c5527 100644
--- a/nonlinelast.parset
+++ b/nonlinelast.parset
@@ -1,26 +1,16 @@
 # level of uniform refinements
-minLevel = 3
+minLevel = 1
 # (maxLevel-minLevel) = level of adaptive refinements
-maxLevel = 3
+maxLevel = 1
 # Use the H1 Semi norm to measure the error, otherwise the hessian of the energy is used (might be not pos. definite)
 useH1SemiNorm = 1
 
-# folder where the input data is located
+# folder where the input data is located, not needed if all grids are created
 path=/home/mi/akbib/data/cubes/
+
 # path where to write the results
 resultPath=/home/mi/akbib/results/nonlinCube/
 
-# a grid in Amira format
-gridFile = cube1.grid
-# a constant Dirichlet field
-# alternatively set the variable amiraValuesFile
-constantValues = 0 0 -0.2
-# a surface field determining the Dirichlet nodes (again Amira)
-amiraPatchFile = cube1.dn
-
-# scaling for the Dirichlet values
-scaling=1
-
 # max iterations of the multigrid
 mgIterations = 100
 # tolerance of the multigrid
@@ -29,16 +19,85 @@ mgTolerance = 1e-7
 baseTolerance = 1e-4
 # verbosity of the method, (full, reduced or quiet)
 verbosity = reduced
+
+
 # elastic modulus of the body
 E=1e3
 # Poisson ratio
 nu = 0.3
+# vector mode for adolc?
+vectorMode = 1
+
 # fraction of elements to refine in each step
 refinementFraction = 0.3
 # loading steps to be performed to enforce the Dirichlet condition
 # an increment of 0.1 would result in 10 steps, 1 would result in 1 step
 loadIncrement = 1
 
+
+# the grid name determines which configuration is used
+gridName = die
+
+[die]
+# a grid in Amira format
+#gridFile = cube1.grid
+# parameterized boundaries in Amira format
+# amira_parFile = 
+
+# if this is set, then the grids are created from a factory
+createGrid = 1
+
+#setup for a tube segment
+type = tubeSegment
+center = -0.71 2.615 6.2
+thickness = 0.2
+length = 5.2
+innerRadius = 3
+fromAngle = 3.1415
+toAngle = 6.283
+nElementRing =  18
+nElementLength =  10
+closeTube = 0
+axis = 0
+tetrahedra = 1
+parameterizedBoundary = 0
+
+nDirichletConditions = 2
+
+  [die.dirichlet0]
+  # constant dirichlet field
+  constantValues = 0 0 -1
+  # scaling for the Dirichlet values
+  dvScaling = 1
+
+  # amira patch file
+  #amira_dnFile =
+  # use a geometric criterion to setup the contact boundary
+  nCriterions = 1
+
+    # extract all faces whose centre[component] is above the bound
+    [die.dirichlet0.criterion0]
+    type  = UpperCentre
+    component  = 2
+    bound = 6.19
+
+  [die.dirichlet1]
+  # constant dirichlet field
+  constantValues = 0 0 0
+  # scaling for the Dirichlet values
+  dvScaling = 1
+
+  # amira patch file
+  #amira_dnFile =
+  # use a geometric criterion to setup the contact boundary
+  nCriterions = 1
+
+    # extract all faces whose center is below the bound
+    [die.dirichlet1.criterion0]
+    type  = LowerCentre
+    component  = 2
+    bound = 0.2
+
 #trust-region parameters
 [trConfig]
 # tolerance