]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Step-44: Removed static keyword from FEValues object in error_dil(). Added correct...
authorJean-Paul Pelteret <jppelteret@gmail.com>
Sat, 5 Feb 2011 21:52:37 +0000 (21:52 +0000)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Sat, 5 Feb 2011 21:52:37 +0000 (21:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@23294 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-44/parameters.prm [new file with mode: 0644]
deal.II/examples/step-44/step-44.cc

diff --git a/deal.II/examples/step-44/parameters.prm b/deal.II/examples/step-44/parameters.prm
new file mode 100644 (file)
index 0000000..17f5a04
--- /dev/null
@@ -0,0 +1,68 @@
+# Listing of Parameters
+# ---------------------
+subsection Finite element system
+  # Displacement system polynomial order
+  set Polynomial degree = 1
+
+  # Gauss quadrature order
+  set Quadrature order  = 2
+end
+
+
+subsection Geometry
+  # Global refinement level
+  set Global refinement   = 2
+
+  # Global grid scaling factor
+  set Grid scale          = 1e-3
+
+  # Ratio of applied pressure to reference pressure
+  set Pressure ratio p/p0 = 100
+end
+
+
+subsection Linear solver
+  # Linear solver iterations (multiples of the system matrix size)
+  set Max iteration multiplier = 2
+
+  # Linear solver residual (scaled by residual norm)
+  set Residual                 = 1e-6
+
+  # SSOR preconditioner relaxation value
+  set SSOR Relaxation          = 0.6
+
+  # Type of solver used to solve the linear system
+  set Solver type              = CG
+end
+
+
+subsection Material properties
+  # Poisson's ratio
+  set Poisson's ratio = 0.4999
+
+  # Shear modulus
+  set Shear modulus   = 80.194e6
+end
+
+
+subsection Nonlinear solver
+  # Number of Newton-Raphson iterations allowed
+  set Max iterations Newton-Raphson = 10
+
+  # Displacement error tolerance
+  set Tolerance displacement        = 1.0e-3
+
+  # Force residual tolerance
+  set Tolerance force               = 1.0e-9
+end
+
+
+subsection Time
+  # End time
+  set End time       = 1
+
+  # Time step size
+  set Time step size = 0.1
+end
+
+
index 081f0404bbdc386dc1825dabc23e3e427885d6ab..e520ce7027ed40ad28034ef6400466d0a189743e 100644 (file)
@@ -1383,7 +1383,7 @@ template <int dim>
     double v_e = 0.0; // Volume in current configuration
     double V_e = 0.0; // Volume in reference configuration
 
-    static FEValues<dim> fe_values_ref (fe, qf_cell, update_JxW_values);
+    FEValues<dim> fe_values_ref (fe, qf_cell, update_JxW_values);
 
     typename DoFHandler<dim>::active_cell_iterator
             cell = dof_handler_ref.begin_active(),

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.