[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Gmsh's post-processing module can handle multiple scalar, vector or tensor
data sets along with the geometry and the mesh. The data sets should be
given in one of Gmsh's post-processing file formats described in 9. File formats. Once loaded into Gmsh, scalar fields can be displayed as iso-value
lines and surfaces or color maps, whereas vector and tensor fields can be
represented either by three-dimensional arrows or by displacement maps. In
Gmsh's jargon, each data set is called a "view", and can arbitrarily mix
all types of elements and fields. Each view is given a name, and can be
manipulated either individually (each view has its own button in the GUI and
can be referred to by its index in the scripting language) or globally (see
the PostProcessing.LinkView
option in 6.2 Post-processing options).
By default, Gmsh treats all post-processing views as three-dimensional plots, i.e., draws the scalar, vector and tensor primitives (points, lines, triangles, tetrahedra, etc.) in 3D space. But Gmsh can also represent each post-processing view containing scalar points as two-dimensional ("X-Y") plots, either space- or time-oriented:
Although visualization is usually mostly an interactive task, Gmsh exposes all the post-processing commands and options to the user in its scripting language to permit a complete automation of the post-processing process (see e.g. 7.8 `t8.geo', and 7.9 `t9.geo').
The two following sections summarize all available post-processing commands and options. Most options apply to both 2D and 3D plots (colormaps, point/line sizes, interval types, time step selection, etc.), but some are peculiar to 3D (lightning, element selection, etc.) or 2D plots (graph style, labels, etc.). Note that 2D plots can be positioned explicitly inside the graphical window, or be automatically positioned in order to avoid overlaps.
Sample post-processing files in human-readable "parsed" format (see section 9.4 Gmsh parsed post-processing file format) are available in the `tutorial' directory of Gmsh's distribution (`.pos' files).
6.1 Post-processing commands 6.2 Post-processing options
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Combine TimeSteps;
Combine Views;
Delete View[expression];
Duplicata View[expression];
Plugin (string) . string;
Plugin (string) . string = expression | char-expression;
Save View[expression] char-expression;
View "string" { string ( expression-list ) { expression-list }; ... }
"string"
. This is the
easiest way to create a post-processing view, but also the least efficient
(the view is read through Gmsh's script parser, which can become quite slow
if the view is large--e.g. with more than 100,000 elements). Though,
this "parsed" post-processing format (explained in detail in 9.4 Gmsh parsed post-processing file format) is very powerful for testing proposes,
since all the values are expressions. Two other formats, better
adapted for large data sets, are described in 9.2 Gmsh ASCII post-processing file format and 9.3 Gmsh binary post-processing file format.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
General post-processing option names have the form
`PostProcessing.string
'. Options peculiar to post-processing
views take two forms:
View.string
', before any view is loaded;
View[n].string
' (n = 0, 1, 2,
...), after the n-th view is loaded.
See 7.8 `t8.geo', and 7.9 `t9.geo', for some examples.
PostProcessing.AnimationDelay
0.25
General.OptionsFileName
PostProcessing.AnimationCycle
0
General.OptionsFileName
PostProcessing.DisplayLists
0
General.OptionsFileName
PostProcessing.Link
0
General.OptionsFileName
PostProcessing.NbViews
0
-
PostProcessing.Scales
1
General.OptionsFileName
PostProcessing.Smoothing
0
General.OptionsFileName
View.AbscissaName
""
General.OptionsFileName
View.AbscissaFormat
"%.3e"
General.OptionsFileName
View.FileName
""
-
View.Format
"%.3e"
General.OptionsFileName
View.Name
""
-
View.AlphaChannel
1
General.OptionsFileName
View.AngleSmoothNormals
15
General.OptionsFileName
View.ArrowHeadRadius
0.12
General.OptionsFileName
View.ArrowLocation
1
General.OptionsFileName
View.ArrowSize
50
General.OptionsFileName
View.ArrowStemLength
0.56
General.OptionsFileName
View.ArrowStemRadius
0.02
General.OptionsFileName
View.AutoPosition
1
General.OptionsFileName
View.Boundary
0
General.OptionsFileName
View.CustomMax
0
-
View.CustomMin
0
-
View.DisplacementFactor
1
General.OptionsFileName
View.DrawHexahedra
1
General.OptionsFileName
View.DrawLines
1
General.OptionsFileName
View.DrawPoints
1
General.OptionsFileName
View.DrawPrisms
1
General.OptionsFileName
View.DrawPyramids
1
General.OptionsFileName
View.DrawQuadrangles
1
General.OptionsFileName
View.DrawScalars
1
General.OptionsFileName
View.DrawStrings
1
General.OptionsFileName
View.DrawTensors
1
General.OptionsFileName
View.DrawTetrahedra
1
General.OptionsFileName
View.DrawTriangles
1
General.OptionsFileName
View.DrawVectors
1
General.OptionsFileName
View.Explode
1
General.OptionsFileName
View.Grid
2
General.OptionsFileName
View.Height
200
General.OptionsFileName
View.IntervalsType
2
General.OptionsFileName
View.Light
0
General.OptionsFileName
View.LineType
0
General.OptionsFileName
View.LineWidth
1
General.OptionsFileName
View.Max
-1e+200
-
View.Min
1e+200
-
View.NbAbscissa
5
General.OptionsFileName
View.NbIso
15
General.OptionsFileName
View.NbTimeStep
1
-
View.OffsetX
0
-
View.OffsetY
0
-
View.OffsetZ
0
-
View.PointSize
2
General.OptionsFileName
View.PointType
0
General.OptionsFileName
View.PositionX
80
General.OptionsFileName
View.PositionY
50
General.OptionsFileName
View.RaiseX
0
-
View.RaiseY
0
-
View.RaiseZ
0
-
View.RangeType
1
General.OptionsFileName
View.SaturateValues
0
General.OptionsFileName
View.ScaleType
1
General.OptionsFileName
View.ShowElement
0
General.OptionsFileName
View.ShowScale
1
General.OptionsFileName
View.ShowTime
1
General.OptionsFileName
View.SmoothNormals
0
General.OptionsFileName
View.TensorType
0
General.OptionsFileName
View.TimeStep
0
-
View.TransparentScale
1
General.OptionsFileName
View.Type
1
General.OptionsFileName
View.VectorType
4
General.OptionsFileName
View.Visible
1
-
View.Width
300
General.OptionsFileName
View.ColorTable
General.OptionsFileName
)
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |