GfsOutputPPM
From Gerris
OutputPPM writes a colour image of the given scalar field in PPM (Portable PixMap) format.
The syntax in parameter files is as follows:
[ GfsOutputScalar ]
By default the pixels are the square cells at the highest level of refinement. The level of the cells displayed can be controlled using the maxlevel option of GfsOutputScalar. Setting maxlevel can also be useful to control the size (in pixels) of the image produced: when maxlevel is set the pixel size of the image will always be a multiple (depending on the number of boxes in the computation domain) of 2^maxlevel. This holds even when the number of levels in the simulation changes due to adaptive refinement (see also this question in the FAQ).
Note that this object is only available for 2D simulations.
Examples
- B\'enard--von K\'arm\'an Vortex Street for flow around a cylinder at Re=160
- Vortex street around a "heated" cylinder
- Rayleigh-Taylor instability
- Coalescence of a pair of Gaussian vortices (Gerris logo)
- "Garden sprinkler effect" in wave model
- Time-reversed VOF advection in a shear flow
- Time-reversed advection with curvature-based refinement
- Lid-driven cavity at Re=1000
- Lid-driven cavity at Re=1000 (explicit scheme)
- Gravity waves in a realistic ocean basin
OutputPPM { istep = 2 } { ppm2mpeg > vort.mpg } {
min = -10 max = 10 v = Vorticity
}
OutputPPM { istep = 2 } { ppm2mpeg > t.mpg } {
min = 0 max = 1 v = T
}
OutputPPM { start = 15 } { convert -colors 256 ppm:- vort.eps } {
min = -10 max = 10 v = Vorticity
}
OutputPPM { start = 15 } { convert -colors 256 ppm:- t.eps } {
min = 0 max = 1 v = T
}
OutputPPM { istep = 2 } { ppm2mpeg > t.mpg } {
min = 0 max = 0.4 v = T
}
OutputPPM { start = 15 } { convert -colors 256 ppm:- t.eps } {
min = 0 max = 0.4 v = T
}
OutputPPM { istep = 2 } { ppm2mpeg > vort.mpg} {
min = -30 max = 30 v = Vorticity
}
OutputPPM { istep = 2 } { ppm2mpeg > t.mpg } {
min = 0 max = 1 v = T
}
OutputPPM { start = end } { convert -colors 256 ppm:- vort.eps } {
min = -30 max = 30 v = Vorticity
}
OutputPPM { start = end } { convert -colors 256 ppm:- t.eps } {
min = 0 max = 1 v = T
}
OutputPPM { istep = 2 } { ppm2mpeg > logo.mpg } {
v = Vorticity
min = -0.1348 max = 6.22219
# Only generate the movie in a small box centered on the origin
box = -0.025,-0.025,0.025,0.025
}
OutputPPM { step = 12 } { ppm2mpeg > hs-MINLEVEL-NTHETA.mpg } { v = Hs maxlevel = 7 }
OutputPPM { start = 0 } { convert ppm:- t-0.eps } { v = T }
OutputPPM { start = 2.5 } { convert ppm:- t-2.5.eps } { v = T }
OutputPPM { start = 5 } { convert ppm:- t-5.eps } { v = T }
OutputPPM { start = end } { convert ppm:- dt-5.eps } { v = DT }
OutputPPM { start = end } { convert ppm:- dt-5.eps } { v = DT }
OutputPPM { start = end } { convert -colors 256 ppm:- velocity.eps } {
v = Velocity
}
OutputPPM { start = end } { convert -colors 256 ppm:- velocity.eps } {
v = Velocity
}
OutputPPM { start = 2 } { convert ppm:- p.eps } { v = P min = -5e-3 max = 5e-3 }

