]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Update docs in one place.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 May 2005 19:53:48 +0000 (19:53 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 May 2005 19:53:48 +0000 (19:53 +0000)
git-svn-id: https://svn.dealii.org/trunk@10639 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-18/step-18.cc

index 09066d468b21a05e57179d3ac0e40649ba60cfd5..6cf6233bbef24734d27e14a77dc32eaf70aa45e6 100644 (file)
@@ -915,14 +915,23 @@ namespace QuasiStaticElasticity
                                    // displacement as the present velocity
                                    // times the present timestep.
                                    //
-                                   // For the purposes of this program, we
-                                   // choose a simple form of boundary
-                                   // displacement: we displace the top
-                                   // boundary with constant velocity
-                                   // downwards. The implementation of this
-                                   // class should then be obvious using the
-                                   // knowledge we gained through all the
-                                   // previous example programs:
+                                   // For the purposes of this
+                                   // program, we choose a simple form
+                                   // of boundary displacement: we
+                                   // displace the top boundary with
+                                   // constant velocity downwards. The
+                                   // rest of the boundary is either
+                                   // going to be fixed (and is then
+                                   // described using an object of
+                                   // type ``ZeroFunction'') or free
+                                   // (Neumann-type, in which case
+                                   // nothing special has to be done).
+                                   // // The implementation of the
+                                   // class describing the constant
+                                   // downward motion should then be
+                                   // obvious using the knowledge we
+                                   // gained through all the previous
+                                   // example programs:
   template <int dim>
   class IncrementalBoundaryValues :  public Function<dim> 
   {
@@ -969,10 +978,7 @@ namespace QuasiStaticElasticity
            ExcDimensionMismatch (values.size(), dim));
 
     values = 0;
-    if (p[2] > 0)
-      values(2) = -present_timestep * velocity;
-    else
-      values(2) = 0;
+    values(2) = -present_timestep * velocity;
   }
 
 

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.