[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203
Stephane Popinet
s.popinet at niwa.co.nz
Fri May 15 02:51:48 UTC 2009
The following commit has been merged in the upstream branch:
commit 00c95a0659b5cb733ff70c347ffe5c68d0def6c7
Author: Stephane Popinet <s.popinet at niwa.co.nz>
Date: Sat Apr 9 23:24:46 2005 +1000
Boussinesq example now uses scripting mode of GfsView
darcs-hash:20050409132446-fbd8f-2a7c30aa3328726dee5fea04e4b52530901c1796.gz
diff --git a/doc/examples/boussinesq/boussinesq.gfs b/doc/examples/boussinesq/boussinesq.gfs
index d60cd76..64ac4bf 100644
--- a/doc/examples/boussinesq/boussinesq.gfs
+++ b/doc/examples/boussinesq/boussinesq.gfs
@@ -13,6 +13,8 @@
#
# The turbulent plume obtained is illustrated on Figure \ref{tracer}.
#
+# The movie is generated using the scripting mode of GfsView.
+#
# \begin{figure}[htbp]
# \begin{center}
# \htmladdnormallinkfoot{\includegraphics[width=0.3\hsize]{t.eps}}{t.mpg}
@@ -22,7 +24,7 @@
# \end{figure}
#
# Author: St\'ephane Popinet
-# Command: gerris2D boussinesq.gfs
+# Command: gerris2D boussinesq.gfs | gfsview2D | ppmtoy4m -F 24:1 -v 0 | mpeg2enc -v 0 -o t.mpg
# Version: 0.6.4
# Required files: cylinder.gts
# Running time: 60 minutes
@@ -68,21 +70,21 @@
# Writes info about the convergence of the Poisson solver on standard error
OutputProjectionStats { istep = 10 } stderr
- # Pipes a bitmap PPM image representation of the T field every 4 timestepsq
- # into a MJPEGTools conversion pipeline to create a MPEG movie called t.mpg
- # Sets the minimum used for colormapping to 0 and the maximum to 1
- OutputPPM { istep = 4 } { ppmtoy4m -F 24:1 -v 0 | mpeg2enc -v 0 -o t.mpg } {
- min = 0 max = 1 v = T
- }
-
- # Pipes a bitmap PPM image representation of the T field at time 15
- # into the ImageMagick converter "convert" to create the corresponding EPS file
- OutputPPM { start = 15 } { convert -colors 256 ppm:- t.eps } {
- min = 0 max = 1 v = T
- }
-
# Outputs profiling information at the end of the simulation to standard error
OutputTiming { start = end } stderr
+
+ # Outputs the simulation every 4 timesteps
+ OutputSimulation { istep = 4 } stdout { binary = 1 }
+
+ # boussinesq.gfv contains the visualisation parameters used by GfsView
+ EventScript { start = 0 } { cat boussinesq.gfv }
+
+ # Every 4 timesteps, GfsView will read the following command, after having read
+ # the simulation file and will output a PPM screenshot on its standard output
+ EventScript { istep = 4 } { echo "Save stdout { width = 256 height = 512 }" }
+
+ # At the end of the simulation, GfsView will create the EPS file used in the doc.
+ EventScript { start = end } { echo "Save t.eps { format = EPS }" }
}
GfsBox {}
# The top boundary is a simple outflow condition. This could cause problems
--
Gerris Flow Solver
More information about the debian-science-commits
mailing list