next up previous contents
Next: 3.4 Visualisation with OpenDX Up: 3 A more complex Previous: 3.2 Saving the whole   Contents

3.3 Some post-processing using gfs2oogl

Gerris comes with a utility called gfs2oogl which converts simulation files to various representations in OOGL format. We are just going to look at two types of representations gfs2oogl can do: scalar field cross-sections and vector fields.

First of all, you can access a small summary of the options of gfs2oogl by typing:

% gfs2oogl2D -h
By default gfs2oogl will generate the same output as GfsOutputBoundaries like this:
% gfs2oogl2D < half-cylinder-0.1.sim > boundaries.oogl
To generate an OOGL representation of a scalar field (a coloured square for each discretisation cell) do this:
% gfs2oogl2D -S -z 0 -c Vorticity < half-cylinder-0.5.sim > squares.oogl
which tells gfs2oogl to do a cross-section for z = 0 (-z 0) represented by squares (-S) and colored according to the local vorticity (-c Vorticity). To generate a vector field representing the velocity try:
% gfs2oogl2D -V 2 -z 0 < half-cylinder-0.5.sim > vectors.oogl
where -V 2 specifies that the maximum length of the vector is twice the dimension of the smallest cell in the domain.

If you now load all these files in Geomview and do a bit of panning and zooming around (and possibly tune things like face shading) you should get an image looking like figure 5.

Figure 5: Scalar and vector representation generated using gfs2oogl.
\includegraphics[angle=90,width=0.6\hsize]{gfs2oogl.eps}


next up previous contents
Next: 3.4 Visualisation with OpenDX Up: 3 A more complex Previous: 3.2 Saving the whole   Contents