[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203

Stephane Popinet popinet at users.sf.net
Fri May 15 02:56:29 UTC 2009


The following commit has been merged in the upstream branch:
commit ea5d4465de315aa88dd8d4e43594d61d29c0360e
Author: Stephane Popinet <popinet at users.sf.net>
Date:   Tue May 12 10:43:40 2009 +1000

    Updated moving hexagon test case
    
    darcs-hash:20090512004340-d4795-457ce75c2d85b8858ba26829fef4c958a326c5f4.gz

diff --git a/test/hexagon/hexagon.gfs b/test/hexagon/hexagon.gfs
index 59021f6..e99f8de 100644
--- a/test/hexagon/hexagon.gfs
+++ b/test/hexagon/hexagon.gfs
@@ -1,31 +1,25 @@
 # Title: Translation of an hexagon in a uniform flow
 #
-# Description: An hexagonal solid objects translates uniformly in a
-# fluid moving at the same speed.
+# Description: 
 #
-# Only the advection scheme is ON (no diffusion)
+# An hexagonal solid object translates uniformly in a fluid moving at
+# the same speed (U = 1). There is no diffusion.
 #
-# The second_order scheme should compute the solid flux exactly and
-# generate very small errors which is not the case for the first order
-# scheme.
-#
-# Scheme conservative properties can be checked by filling the
-# simulation domain with tracer and computing the total amount at each
-# time step.
+# The conservation properties of the scheme can be checked by filling
+# the simulation domain with tracer and computing the total amount at
+# each time step.
 # 
 # \begin{figure}[htbp]
-# \caption{\label{errorvelocitytime} In blue are the regions where the
-# error on the velocity field at the end of the test is less than
-# 0.001 and in red where it is larger. The domain should be all blue
-# for the second order method.}
+# \caption{\label{errorvelocitytime} Error in the horizontal component
+# of the velocity field. Dark blue is zero, dark red 0.1.}
 # \begin{center}
 # \includegraphics[width=0.8\hsize]{end-2.eps}
 # \end{center}
 # \end{figure}
 #
 # \begin{figure}[htbp]
-# \caption{\label{ordertime} Evolution of the global error on the
-# velocity field in norm2 with time.}
+# \caption{\label{ordertime} Evolution of the global RMS error on the
+# velocity field.}
 # \begin{center}
 # \includegraphics[width=0.8\hsize]{error.eps}
 # \end{center}
@@ -41,8 +35,13 @@
   Time { end = .1875 }
   Refine 7
 
-  SolidMoving { istep = 1 } hexagon.gts { scale = 0.250001 } { vx = 1. level = 7 }
-  AdvectionParams { moving_order = ORDER }
+  SolidMoving hexagon.gts { scale = 0.250001 } { level = 7 }
+  AdvectionParams { 
+      moving_order = ORDER 
+      # uncommenting the following line leads to instabilities for the
+      # first-order scheme 
+      # cfl = 0.45
+  }
   
   ProjectionParams { tolerance = 1e-10 }
   ApproxProjectionParams { tolerance = 1e-10 }
@@ -52,7 +51,6 @@
   VariableTracer T
  
   SurfaceBc U Dirichlet 1.
-  SurfaceBc V Dirichlet 0.
 
   Init {} { U = 1 T = 1 }
 
diff --git a/test/hexagon/hexagon.gfv b/test/hexagon/hexagon.gfv
index fa93e23..a20b764 100644
--- a/test/hexagon/hexagon.gfv
+++ b/test/hexagon/hexagon.gfv
@@ -16,23 +16,8 @@ Squares {
 } {
   n.x = 0 n.y = 0 n.z = 1
   pos = 0
-} fabs(U-1)*100 > 0.001 ? 1:0 {
-  amin = 0 min = 0
-  amax = 0 max = 1
+} fabs(U-1) {
+  amin = 0 min = 1.64428e-08
+  amax = 0 max = 0.1
   cmap = Jet
 }
-Vectors {
-  r = 0 g = 0 b = 0
-  shading = Constant
-  maxlevel = -1
-} {
-  n.x = 0 n.y = 0 n.z = 1
-  pos = 0
-} P {
-  amin = 1
-  amax = 1
-  cmap = Jet
-} U V {
-  scale = 0.0078125
-  use_scalar = 0
-}

-- 
Gerris Flow Solver



More information about the debian-science-commits mailing list