From: Jean-Paul Pelteret Date: Sat, 5 Feb 2011 21:52:37 +0000 (+0000) Subject: Step-44: Removed static keyword from FEValues object in error_dil(). Added correct... X-Git-Tag: v8.0.0~4403 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=275ffcad2320977d06ad2f5d894c72313eb23c17;p=dealii.git Step-44: Removed static keyword from FEValues object in error_dil(). Added correct parameters file. git-svn-id: https://svn.dealii.org/trunk@23294 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-44/parameters.prm b/deal.II/examples/step-44/parameters.prm new file mode 100644 index 0000000000..17f5a04b4d --- /dev/null +++ b/deal.II/examples/step-44/parameters.prm @@ -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 + + diff --git a/deal.II/examples/step-44/step-44.cc b/deal.II/examples/step-44/step-44.cc index 081f0404bb..e520ce7027 100644 --- a/deal.II/examples/step-44/step-44.cc +++ b/deal.II/examples/step-44/step-44.cc @@ -1383,7 +1383,7 @@ template double v_e = 0.0; // Volume in current configuration double V_e = 0.0; // Volume in reference configuration - static FEValues fe_values_ref (fe, qf_cell, update_JxW_values); + FEValues fe_values_ref (fe, qf_cell, update_JxW_values); typename DoFHandler::active_cell_iterator cell = dof_handler_ref.begin_active(),