GMSH
GMSH
GMSH
Christophe Geuzaine
Jean-Fran
cois Remacle
Short Contents
Obtaining Gmsh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Copying conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 How to read this reference manual? . . . . . . . . . . . . . . . . . . . . . . . 9
3 Running Gmsh on your system . . . . . . . . . . . . . . . . . . . . . . . . . 11
4 General tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5 Geometry module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
6 Mesh module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
7 Solver module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
8 Post-processing module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
9 File formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
A Tutorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
B Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
C Compiling the source code . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
D Information for developers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
E Frequently asked questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
F Version history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
G Copyright and credits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
H License . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
Concept index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
Syntax index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
iii
Table of Contents
Obtaining Gmsh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Copying conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1
1.2
1.3
1.4
1.5
1.6
1.7
5
5
6
6
6
7
8
Interactive mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Non-interactive mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Command-line options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mouse actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Keyboard shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11
12
12
15
16
General tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.1
4.2
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.1 Floating point expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.2 Character expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.3 Color expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3 Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.4 Built-in functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.5 User-defined functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.6 Loops and conditionals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.7 General commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.8 General options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
19
19
19
21
22
22
24
25
25
26
31
iv
Gmsh 2.8
Geometry module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.1
Geometry commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.1.1 Points. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.1.2 Lines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.1.3 Surfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.1.4 Volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.1.5 Extrusions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.1.6 Transformations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.1.7 Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.2 Geometry options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
6.1
6.2
6.3
Solver options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Post-processing module . . . . . . . . . . . . . . . . . . . . . . . 67
8.1
8.2
8.3
41
42
43
43
58
61
63
Solver module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
7.1
33
33
34
35
36
37
38
39
39
Post-processing commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Post-processing plugins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Post-processing options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
File formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
9.1
9.2
9.3
Appendix A
A.1
A.2
A.3
A.4
A.5
A.6
A.7
A.8
A.9
A.10
A.11
A.12
A.13
A.14
A.15
t1.geo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
t2.geo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
t3.geo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
t4.geo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
t5.geo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
t6.geo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
t7.geo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
t8.geo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
t9.geo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
t10.geo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
t11.geo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
t12.geo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
t13.geo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
t14.geo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
t15.geo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Appendix B
B.1
B.2
B.3
B.4
B.5
Tutorial . . . . . . . . . . . . . . . . . . . . . . . . . . 115
115
117
119
121
123
127
128
128
132
133
135
136
138
139
141
Options . . . . . . . . . . . . . . . . . . . . . . . . . . 143
143
170
176
193
197
Appendix C
Appendix D
D.1
D.2
D.3
Appendix E
E.1
E.2
E.3
E.4
E.5
E.6
E.7
The basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Installation problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General questions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Solver module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Post-processing module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
221
221
222
222
223
225
225
Appendix F
Appendix G
Appendix H
License . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
vi
Gmsh 2.8
Obtaining Gmsh
Obtaining Gmsh
The source code and various pre-compiled versions of Gmsh (for Windows, Mac and Unix)
can be downloaded from http://geuz.org/gmsh/. Gmsh is also directly available in prepackaged form in various Linux and BSD distributions (Debian, Ubuntu, FreeBSD, ...).
If you use Gmsh, we would appreciate that you mention it in your work by citing the
following paper: C. Geuzaine and J.-F. Remacle, Gmsh: a three-dimensional finite element
mesh generator with built-in pre- and post-processing facilities. International Journal for
Numerical Methods in Engineering, Volume 79, Issue 11, pages 1309-1331, 2009. A preprint
of that paper as well as other references and the latest news about Gmsh development are
available on http://geuz.org/gmsh/.
Copying conditions
Copying conditions
Gmsh is free software; this means that everyone is free to use it and to redistribute it on
a free basis. Gmsh is not in the public domain; it is copyrighted and there are restrictions
on its distribution, but these restrictions are designed to permit everything that a good
cooperating citizen would want to do. What is not allowed is to try to prevent others from
further sharing any version of Gmsh that they might get from you.
Specifically, we want to make sure that you have the right to give away copies of Gmsh,
that you receive source code or else can get it if you want it, that you can change Gmsh or
use pieces of Gmsh in new free programs, and that you know you can do these things.
To make sure that everyone has such rights, we have to forbid you to deprive anyone else of
these rights. For example, if you distribute copies of Gmsh, you must give the recipients all
the rights that you have. You must make sure that they, too, receive or can get the source
code. And you must tell them their rights.
Also, for our own protection, we must make certain that everyone finds out that there is
no warranty for Gmsh. If Gmsh is modified by someone else and passed on, we want their
recipients to know that what they have is not what we distributed, so that any problems
introduced by others will not reflect on our reputation.
The precise conditions of the license for Gmsh are found in the General Public
License that accompanies the source code (see Appendix H [License], page 247).
Further information about this license is available from the GNU Project webpage
http://www.gnu.org/copyleft/gpl-faq.html. Detailed copyright information can be
found in Appendix G [Copyright and credits], page 243.
If you want to integrate parts of Gmsh into a closed-source software, or want to sell a
modified closed-source version of Gmsh, you will need to obtain a different license. Please
contact us directly for more information.
Chapter 1: Overview
1 Overview
Gmsh is a three-dimensional finite element grid generator with a build-in CAD engine and
post-processor. Its design goal is to provide a fast, light and user-friendly meshing tool with
parametric input and advanced visualization capabilities.
Gmsh is built around four modules: geometry, mesh, solver and post-processing. All geometrical, mesh, solver and post-processing instructions are prescribed either interactively
using the graphical user interface (GUI) or in text files using Gmshs own scripting language. Interactive actions generate language bits in the input files, and vice versa. This
makes it possible to automate all treatments, using loops, conditionals and external system
calls. A brief description of the four modules is given hereafter.
Gmsh 2.8
prescribes the desired size of the elements in the mesh. This size field can be uniform,
specified by values associated with points in the geometry, or defined by general fields
(for example related to the distance to some boundary, to a arbitrary scalar field defined
on another mesh, etc.).
For each meshing step, all structured mesh directives are executed first, and serve as additional constraints for the unstructured parts1 .
Note that mixing structured volume grids with unstructured volume grids generated with the default 3D
Delaunay algorithm can result, in certain cases, to non-conform surface meshes on their shared boundary.
If this happens, you may consider using the frontal algorithm for the unstructured part.
Chapter 1: Overview
geometry points or using flexible mesh size fields (see Section 6.3 [Mesh commands],
page 43);
create simple extruded geometries and meshes (see Section 5.1 [Geometry commands],
page 33, and Section 6.3 [Mesh commands], page 43);
interact with external solvers through a simple client-server architecture (see Chapter 7
[Solver module], page 65);
visualize and export computational results in a great variety of ways. Gmsh can display
scalar, vector and tensor datasets, perform various operations on the resulting postprocessing views (see Chapter 8 [Post-processing module], page 67), can export plots
in many different formats (see Section B.1 [General options list], page 143), and can
generate complex animations (see Chapter 4 [General tools], page 19, and Section A.8
[t8.geo], page 128);
run on low end machines and/or machines with no graphical interface. Gmsh can
be compiled with or without the GUI (see Appendix C [Compiling the source code],
page 215), and all versions can be used either interactively or directly from the command line (see Chapter 3 [Running Gmsh on your system], page 11);
configure your preferred options. Gmsh has a large number of configuration options
that can be set interactively using the GUI, scattered inside command files, changed on
the fly in scripts, set in per-user configuration files, or specified on the command-line
(see Chapter 3 [Running Gmsh on your system], page 11 and Appendix B [Options],
page 143);
and do all the above on various platforms (Windows, Mac and Unix), for free (see
[Copying conditions], page 3), using simple script files and/or a small but powerful
GUI.
Gmsh 2.8
If you have the skills and some free time, feel free to join the project: we gladly accept any
code contributions (see Appendix D [Information for developers], page 219) to remedy the
aforementioned (and all other) shortcomings!
10
Gmsh 2.8
11
Nearly all the interactive commands have keyboard shortcuts: see Section 3.5 [Keyboard shortcuts], page 16,
or select Help->Keyboard and Mouse Usage in the menu. For example, to quickly save a mesh, you can
press Ctrl+Shift+s.
12
Gmsh 2.8
Note that all the options specified interactively can also be directly specified in the script
files. You can save the current options of the current active model with the File->Save
Model Options. This will create a new option file with the same filename as the active
model, but with an extra .opt extension added. The next time you open this model, the
associated options will be automatically loaded, too. To save the current options as your
default preferences for all future Gmsh sessions, use the File->Save Options As Default
menu instead. Finally, you can also save the current options in an arbitrary file by choosing
the Gmsh options format in File->Save As.
For more information about available options (and how to reset them to their default values),
see Appendix B [Options], page 143. A full list of options with their current values is also
available in the Help->Current Options menu.
-tol float
Set geometrical tolerance
-match
Mesh options:
-1, -2, -3
Perform 1D, 2D or 3D mesh generation, then exit
-o file
-format string
Select output mesh format (auto (default), msh, msh1, msh2, unv, vrml, ply2,
stl, mesh, bdf, cgns, p3d, diff, med, ...)
-bin
-refine
If you compile Gmsh without the GUI (see Appendix C [Compiling the source code], page 215), this is the
only mode you have access to.
13
-parametric
Save vertices with their parametric coordinates
-algo string
Select mesh algorithm (meshadapt, del2d, front2d, delquad, del3d, front3d,
mmg3d, pack)
-smooth int
Set number of mesh smoothing steps
-order int
Set mesh order (1, ..., 5)
-optimize[_netgen]
Optimize quality of tetrahedral elements
-optimize_ho
Optimize high order meshes
-ho_[min,max,nlayers]
High-order optimization parameters
-optimize_lloyd
Optimize 2D meshes using Lloyd algorithm
-clscale float
Set global mesh element size scaling factor
-clmin float
Set minimum mesh element size
-clmax float
Set maximum mesh element size
-anisoMax float
Set maximum anisotropy (only used in bamg for now)
-smoothRatio float
Set smoothing ration between mesh sizes at nodes of a same edge (only used in
bamg)
-clcurv
-epslc1d
-swapangle
Set the threshold angle (in degree) between two adjacent faces below which a
swap is allowed
-rand float
Set random perturbation factor
-bgm file Load background mesh from file
14
-check
Gmsh 2.8
-mpass int
Do several passes on the mesh for complex background fields
-ignorePartBound
Ignore partitions boundaries
Post-processing options:
-link int Select link mode between views (0, 1, 2, 3, 4)
-combine
Display options:
-n
-nodb
-numsubedges
Set num of subdivisions for high order element display
-fontsize int
Specify the font size for the GUI
-theme string
Specify FLTK GUI theme
-display string
Specify display
-camera
-stereo
-gamepad
Other options:
-, -parse_and_exit
Parse input files, then exit
-new
-merge
-open
-listen
-watch pattern
Pattern of files to merge as they become available
-bg file
-v int
-nopopup
15
-string "string"
Parse command string at startup
-setnumber name value
Set constant number name=value
-setstring name value
Set constant string name=value
-option file
Parse option file at startup
-convert files
Convert files into latest binary formats, then exit
-version
-info
-help
- Highlight the entity under the mouse pointer and display its properties
- Resize a lasso zoom or a lasso (un)selection
Left button
- Rotate
- Select an entity
- Accept a lasso zoom or a lasso selection
Ctrl+Left button
Start a lasso zoom or a lasso (un)selection
Middle button
- Zoom
- Unselect an entity
- Accept a lasso zoom or a lasso unselection
Ctrl+Middle button
Orthogonalize display
Right button
- Pan
- Cancel a lasso zoom or a lasso (un)selection
- Pop-up menu on post-processing view button
Ctrl+Right button
Reset to default viewpoint
For a 2 button mouse, Middle button = Shift+Left button.
For a 1 button mouse, Middle button = Shift+Left button, Right button = Alt+Left button.
16
Gmsh 2.8
Down arrow
Make next view visible
0
1 or F1
Mesh lines
2 or F2
Mesh surfaces
3 or F3
Mesh volumes
Escape
Go to geometry module
Go to mesh module
Go to post-processing module
Go to solver module
Shift+a
Shift+g
Shift+m
Shift+o
Shift+p
Shift+s
Shift+u
Shift+w
Shift+Escape
Enable full mouse selection
Ctrl+d
Attach/detach menu
Ctrl+f
Ctrl+i
Ctrl+j
Ctrl+l
Ctrl+m
Minimize window
Ctrl+n
Ctrl+o
Ctrl+q
Quit
Ctrl+r
Ctrl+s
Save file as
Shift+Ctrl+c
Show clipping plane window
Shift+Ctrl+h
Show current options and workspace window
Shift+Ctrl+j
Save options as default
Shift+Ctrl+m
Show manipulator window
Shift+Ctrl+n
Show option window
Shift+Ctrl+o
Merge file(s)
Shift+Ctrl+s
Save mesh in default format
Shift+Ctrl+u
Show plugin window
Shift+Ctrl+v
Show visibility window
Alt+a
Alt+b
Alt+c
Alt+e
Alt+f
Alt+h
Alt+i
Alt+l
Alt+m
Alt+n
Alt+o
Alt+p
17
18
Gmsh 2.8
Alt+r
Alt+s
Alt+t
Alt+v
Alt+w
Alt+x
Set X view
Alt+y
Set Y view
Alt+z
Set Z view
Alt+Shift+a
Hide/show small axes
Alt+Shift+b
Hide/show mesh volume faces
Alt+Shift+d
Hide/show mesh surface faces
Alt+Shift+l
Hide/show mesh lines
Alt+Shift+p
Hide/show mesh points
Alt+Shift+s
Hide/show mesh surface edges
Alt+Shift+v
Hide/show mesh volume edges
Alt+Shift+w
Reverse all mesh normals
Alt+Shift+x
Set -X view
Alt+Shift+y
Set -Y view
Alt+Shift+z
Set -Z view
19
4 General tools
This chapter describes the general commands and options that can be used in Gmshs script
files. By general, we mean not specifically related to one of the geometry, mesh, solver
or post-processing modules. Commands peculiar to these modules will be introduced in
Chapter 5 [Geometry module], page 33, Chapter 6 [Mesh module], page 41, Chapter 7
[Solver module], page 65, and Chapter 8 [Post-processing module], page 67, respectively.
4.1 Comments
Gmsh script files support both C and C++ style comments:
1. any text comprised between /* and */ pairs is ignored;
2. the rest of a line after a double slash // is ignored.
These commands wont have the described effects inside double quotes or inside keywords.
Also note that white space (spaces, tabs, new line characters) is ignored inside all expressions.
4.2 Expressions
The two constant types used in Gmsh scripts are real and string (there is no integer type).
These types have the same meaning and syntax as in the C or C++ programming languages.
20
Gmsh 2.8
21
Point { expression } |
transform |
extrude
Point { expression } |
Point|Line|Surface|Volume "*" |
Physical Point|Line|Surface|Volume { expression-list }
The second case in this last definition permits to create a list containing the range of numbers
comprised between two expressions, with a unit incrementation step. The third case also
permits to create a list containing the range of numbers comprised between two expressions,
but with a positive or negative incrementation step equal to the third expression. The
fourth, fifth and sixth cases permit to reference an expression list. The seventh and eight
cases permit to reference an expression sublist (whose elements are those corresponding to
the indices provided by the expression-list). The next two cases permit to retrieve the indices
of entities created through geometrical transformations and extrusions (see Section 5.1.6
[Transformations], page 38, and Section 5.1.5 [Extrusions], page 37). The last three cases
permit to retrieve the coordinates of a given geometry point (see Section 5.1.1 [Points],
page 33), to retrieve the id numbers of all points, lines, surfaces or volumes in the model,
or to retrieve the elementary entities making up physical groups.
To see the practical use of such expressions, have a look at the first couple of examples in
Appendix A [Tutorial], page 115. Note that, in order to lighten the syntax, you can omit
the braces {} enclosing an expression-list if this expression-list only contains a single item.
Also note that a braced expression-list can be preceded by a minus sign in order to change
the sign of all the expression-list-items.
22
Gmsh 2.8
system. GetString allows to ask the user for a value interactively. StrReplaces arguments
are: input string, old substring, new substring.1
DefineString allows to define a ONELAB variable in-line. The char-expression given as
the first argument is the default value; this is followed by the various ONELAB options. See
http://onelab.info/wiki/ONELAB_Syntax_for_Gmsh_and_GetDP for more information.
Character expressions are mostly used to specify non-numeric options and input/output file
names. See Section A.8 [t8.geo], page 128, for an interesting usage of char-expressions in
an animation script.
4.3 Operators
Gmshs operators are similar to the corresponding operators in C and C++. Here is the list
of the unary, binary and ternary operators currently implemented.
operator-unary-left:
-
Unary minus.
Logical not.
operator-unary-right:
++
Post-incrementation.
--
Post-decrementation.
operator-binary:
Exponentiation.
Multiplication.
Division.
23
Modulo.
Addition.
Subtraction.
==
Equality.
!=
Inequality.
>
Greater.
>=
Greater or equality.
<
Less.
<=
Less or equality.
&&
Logical and.
||
Logical or. (Warning: the logical or always implies the evaluation of both
arguments. That is, unlike in C or C++, the second operand of || is evaluated
even if the first one is true).
operator-ternary-left:
?
operator-ternary-right:
The only ternary operator, formed by operator-ternary-left and operatorternary-right, returns the value of its second argument if the first argument is
non-zero; otherwise it returns the value of its third argument.
The evaluation priorities are summarized below2 (from stronger to weaker, i.e., * has a
highest evaluation priority than +). Parentheses () may be used anywhere to change the
order of evaluation:
1. (), [], ., #
2. ^
3. !, ++, --, - (unary)
4. *, /, %
5. +, 6. <, >, <=, >=
7. ==, !=
8. &&
9. ||
10. ?:
11. =, +=, -=, *=, /=
2
The affectation operators are introduced in Section 4.7 [General commands], page 26.
24
Gmsh 2.8
For compatibility with GetDP (http://geuz.org/getdp/), parentheses can be replaced by brackets [].
25
Rand ( expression )
Random number between zero and expression.
Round ( expression )
Rounds expression to the nearest integer.
Sqrt ( expression )
Square root of expression (expression >= 0).
Sin ( expression )
Sine of expression.
Sinh ( expression )
Hyperbolic sine of expression.
Tan ( expression )
Tangent of expression.
Tanh ( expression )
Hyperbolic tangent of expression.
Ends the body of the current user-defined function. Function declarations cannot be imbricated.
Call string ;
Executes the body of a (previously defined) function named string.
See Section A.5 [t5.geo], page 123, for an example of a user-defined function. A shortcoming
of Gmshs scripting language is that all variables are public. Variables defined inside the
body of a function will thus be available outside, too!
26
Gmsh 2.8
If ( expression )
The body enclosed between If ( expression ) and the matching Endif is
evaluated if expression is non-zero.
EndIf
See Section A.5 [t5.geo], page 123, for an example of For and If commands. Gmsh does
not provide any Else (or similar) command at the time of this writing.
Returns 3.1415926535897932.
GMSH_MAJOR_VERSION
Returns Gmshs major version number.
GMSH_MINOR_VERSION
Returns Gmshs minor version number.
GMSH_PATCH_VERSION
Returns Gmshs patch version number.
MPI_Size
MPI_Rank
Cpu
Memory
27
TotalMemory
Returns the total memory available (in Mb).
newp
newl
news
newv
newll
newsl
newreg
Returns the next available region number. That is, newreg returns
the maximum of newp, newl, news, newv, newll, newsl and all
physical entity numbers4 .
string = { };
Creates a new expression list identifier string with an empty list.
string = { expression-list };
Creates a new expression list identifier string with the list expression-list, or
affects expression-list to an existing expression list identifier. The following
syntax is also allowed: string [] = { expression-list };
string [ { expression-list } ] = { expression-list };
Affects each item in the right hand side expression-list to the elements (indexed
by the left hand side expression-list) of an existing expression list identifier.
The two expression-lists must contain the same number of items.
string ( { expression-list } ) = { expression-list };
Same as above.
string += expression ;
Adds and affects expression to an existing expression identifier.
string -= expression ;
Subtracts and affects expression to an existing expression identifier.
string *= expression ;
Multiplies and affects expression to an existing expression identifier.
string /= expression ;
Divides and affects expression to an existing expression identifier.
4
For compatibility purposes, the behavior of newl, news, newv and newreg can be modified with the
Geometry.OldNewReg option (see Section B.2 [Geometry options list], page 170).
28
Gmsh 2.8
string += { expression-list };
Appends expression-list to an existing expression list or creates a new expression
list with expression-list.
string -= { expression-list };
Removes the items in expression-list from the existing expression list.
string [ { expression-list } ] += { expression-list };
Adds and affects, item per item, the right hand side expression-list to an existing
expression list identifier.
string [ { expression-list } ] -= { expression-list };
Subtracts and affects, item per item, the right hand side expression-list to an
existing expression list identifier.
string [ { expression-list } ] *= { expression-list };
Multiplies and affects, item per item, the right hand side expression-list to an
existing expression list identifier.
string [ { expression-list } ] /= { expression-list };
Divides and affects, item per item, the right hand side expression-list to an
existing expression list identifier.
string = char-expression ;
Creates a new character expression identifier string
char-expression.
with a given
29
real-option /= expression ;
Divides and affects expression to a real option.
Abort;
Exit;
Exits Gmsh.
SetChanged;
Force the mesh and post-processing vertex arrays to be regenerated. Useful e.g.
for creating animations with changing clipping planes, etc.
BoundingBox;
Recomputes the bounding box of the scene (which is normally computed only
after new geometrical entities are added or after files are included or merged).
The bounding box is computed as follows:
1. If there is a mesh (i.e., at least one mesh vertex), the bounding box is taken
as the box enclosing all the mesh vertices;
2. If there is no mesh but there is a geometry (i.e., at least one geometrical
point), the bounding box is taken as the box enclosing all the geometrical
points;
3. If there is no mesh and no geometry, but there are some post-processing
views, the bounding box is taken as the box enclosing all the primitives in
the views.
BoundingBox { expression, expression, expression, expression, expression,
expression };
Forces the bounding box of the scene to the given expressions (X min, X max,
Y min, Y max, Z min, Z max).
30
Gmsh 2.8
Delete Model;
Deletes the current model (all geometrical entities and their associated meshes).
Delete Physicals;
Deletes all physical groups.
Delete Variables;
Deletes all the expressions.
Delete Options;
Deletes the current options and revert to the default values.
Delete string ;
Deletes the expression string.
Mesh expression ;
Generates expression-D mesh.
RefineMesh;
Refines the current mesh by splitting all elements. If Mesh.SecondOrderLinear
is set, the new vertices are inserted by linear interpolatinon. Otherwise they
are snapped on the actual geometry.
AdaptMesh { expression-list } { expression-list } { { expression-list < , ... >
} };
Performs adaptive mesh generation. Documentation not yet available.
RelocateMesh Point | Line | Surface { expression-list } | "*";
Relocates the mesh vertices on the given entities using the parametric coordinates stored in the vertices. Useful for creating perturbation of meshes e.g. for
sensitivity analyzes.
SetOrder expression ;
Changes the order of the elements in the current mesh.
Print char-expression ;
Prints the graphic window in a file named char-expression, using the current
Print.Format (see Section B.1 [General options list], page 143). If the path in
char-expression is not absolute, char-expression is appended to the path of the
current file.
Sleep expression ;
Suspends the execution of Gmsh during expression seconds.
SystemCall char-expression ;
Executes a (blocking) system call.
NonBlockingSystemCall char-expression ;
Executes a (non-blocking) system call.
SetName char-expression ;
Changes the name of the current model.
SyncModel;
Forces an immediate transfer from the old geometrical database into the new
one (this transfer normally occurs right after a file is read).
31
Include char-expression ;
Includes the file named char-expression at the current position in the input
file. The include command should be given on a line of its own. If the path in
char-expression is not absolute, char-expression is appended to the path of the
current file.
33
5 Geometry module
Gmshs geometry module provides a simple CAD engine, using a boundary representation
(BRep) approach: you need to first define points (using the Point command: see below),
then lines (using Line, Circle, Spline, . . . , commands or by extruding points), then surfaces (using for example the Plane Surface or Ruled Surface commands, or by extruding
lines), and finally volumes (using the Volume command or by extruding surfaces).
These geometrical entities are called elementary in Gmshs jargon, and are assigned identification numbers (stricly positive) when they are created:
1. each elementary point must possess a unique identification number;
2. each elementary line must possess a unique identification number;
3. each elementary surface must possess a unique identification number;
4. each elementary volume must possess a unique identification number.
Elementary geometrical entities can then be manipulated in various ways, for example
using the Translate, Rotate, Scale or Symmetry commands. They can be deleted with
the Delete command, provided that no higher-dimension entity references them. Zero or
negative identification numbers are reserved by the system for special uses: do not use them
in your scripts.
Groups of elementary geometrical entities can also be defined and are called physical entities. These physical entities cannot be modified by geometry commands: their only purpose
is to assemble elementary entities into larger groups, possibly modifying their orientation,
so that they can be referred to by the mesh module as single entities. As is the case with
elementary entities, each physical point, physical line, physical surface or physical volume
must be assigned a unique identification number. See Chapter 6 [Mesh module], page 41,
for more information about how physical entities affect the way meshes are saved.
5.1.1 Points
Point ( expression ) = { expression, expression, expression <, expression > };
Creates an elementary point. The expression inside the parentheses is the
points identification number; the three first expressions inside the braces on
the right hand side give the three X, Y and Z coordinates of the point in
the three-dimensional Euclidean space; the optional last expression sets the
prescribed mesh element size at that point. See Section 6.3.1 [Specifying mesh
element sizes], page 43, for more information about how this value is used in
the meshing process.
Physical Point ( expression | char-expression ) = { expression-list };
Creates a physical point. The expression inside the parentheses is the physical
points identification number (if a char-expression is given instead, a unique
34
Gmsh 2.8
5.1.2 Lines
BSpline ( expression ) = { expression-list };
Creates a B-spline curve. The expression inside the parentheses is the B-spline
curves identification number; the expression-list on the right hand side should
contain the identification numbers of all the B-splines control points. Repeating
control points has the expected effect.
Circle ( expression ) = { expression, expression, expression };
Creates a circle arc (strictly) smaller than Pi. The expression inside the parentheses is the circle arcs identification number; the first expression inside the
braces on the right hand side gives the identification number of the start point
of the arc; the second expression gives the identification number of the center
of the circle; the last expression gives the identification number of the end point
of the arc.
CatmullRom ( expression ) = { expression-list };
CatmullRom is a synonym for Spline.
Ellipse ( expression ) = { expression, expression, expression, expression };
Creates an ellipse arc. The expression inside the parentheses is the ellipse arcs
identification number; the first expression inside the braces on the right hand
side gives the identification number of the start point of the arc; the second
expression gives the identification number of the center of the ellipse; the third
expression gives the identification number of any point located on the major
axis of the ellipse; the last expression gives the identification number of the end
point of the arc.
Line ( expression ) = { expression, expression };
Creates a straight line segment. The expression inside the parentheses is the
line segments identification number; the two expressions inside the braces on
the right hand side give identification numbers of the start and end points of
the segment.
Spline ( expression ) = { expression-list };
Creates a spline curve. The expression inside the parentheses is the splines
identification number; the expression-list on the right hand side should contain
the identification numbers of all the splines control points.
Line Loop ( expression ) = { expression-list };
Creates an oriented line loop. The expression inside the parentheses is the line
loops identification number; the expression-list on the right hand side should
contain the identification numbers of all the elementary lines that constitute the
line loop. A line loop must be a closed loop, and the elementary lines should be
ordered and oriented (using negative identification numbers to specify reverse
orientation). If the orientation is correct, but the ordering is wrong, Gmsh will
actually reorder the list internally to create a consistent loop. Although Gmsh
35
supports it, it is not recommended to specify multiple line loops (or subloops)
in a single Line Loop command. (Line loops are used to create surfaces: see
Section 5.1.3 [Surfaces], page 35.)
Compound Line ( expression ) = { expression-list };
Creates a compound line from several elementary lines. When meshed, a compound line will be reparametrized as a single line, whose mesh can thus cross
internal boundaries. The expression inside the parentheses is the compound
lines identification number; the expression-list on the right hand side contains
the identification number of the elementary lines that should be reparametrized
as a single line. See Compound Surface for additional information on compound
entities.
Physical Line ( expression | char-expression ) = { expression-list };
Creates a physical line. The expression inside the parentheses is the physical lines identification number (if a char-expression is given instead, a unique
identification number is automatically created); the expression-list on the right
hand side should contain the identification numbers of all the elementary lines
that need to be grouped inside the physical line. Specifying negative identification numbers in the expression-list will reverse the orientation of the mesh
elements belonging to the corresponding elementary lines in the saved mesh.
5.1.3 Surfaces
Plane Surface ( expression ) = { expression-list };
Creates a plane surface. The expression inside the parentheses is the plane
surfaces identification number; the expression-list on the right hand side should
contain the identification numbers of all the line loops defining the surface. The
first line loop defines the exterior boundary of the surface; all other line loops
define holes in the surface. A line loop defining a hole should not have any lines
in common with the exterior line loop (in which case it is not a hole, and the
two surfaces should be defined separately). Likewise, a line loop defining a hole
should not have any lines in common with another line loop defining a hole in
the same surface (in which case the two line loops should be combined).
Ruled Surface ( expression ) = { expression-list } < In Sphere { expression } >;
Creates a ruled surface, i.e., a surface that can be interpolated using transfinite interpolation. The expression inside the parentheses is the ruled surfaces
identification number; the first expression-list on the right hand side should
contain the identification number of a line loop composed of either three or
four elementary lines. The optional In Sphere argument forces the surface to
be a spherical patch (the extra parameter gives the identification number of the
center of the sphere).
Surface Loop ( expression ) = { expression-list };
Creates a surface loop (a shell). The expression inside the parentheses is the
surface loops identification number; the expression-list on the right hand side
should contain the identification numbers of all the elementary surfaces that
constitute the surface loop. A surface loop must always represent a closed shell,
and the elementary surfaces should be oriented consistently (using negative
36
Gmsh 2.8
5.1.4 Volumes
Volume ( expression ) = { expression-list };
Creates a volume. The expression inside the parentheses is the volumes identification number; the expression-list on the right hand side should contain the
identification numbers of all the surface loops defining the volume. The first
surface loop defines the exterior boundary of the volume; all other surface loops
define holes in the volume. A surface loop defining a hole should not have any
surfaces in common with the exterior surface loop (in which case it is not a hole,
and the two volumes should be defined separately). Likewise, a surface loop
defining a hole should not have any surfaces in common with another surface
loop defining a hole in the same volume (in which case the two surface loops
should be combined).
Compound Volume ( expression ) = { expression-list };
Creates a compound volume from several elementary volumes. When meshed,
a compound volume will be reparametrized as a single volume, whose mesh
can thus cross internal boundaries. The expression inside the parentheses is the
compound volumes identification number; the expression-list on the right hand
side contains the identification number of the elementary volumes that should
be reparametrized as a single volume. See Compound Surface for additional
information on compound entities.
37
5.1.5 Extrusions
Lines, surfaces and volumes can also be created through extrusion of points, lines and
surfaces, respectively. Here is the syntax of the geometrical extrusion commands (go to
Section 6.3.2 [Structured grids], page 58, to see how these commands can be extended in
order to also extrude the mesh):
extrude:
Extrude { expression-list } { extrude-list }
Extrudes all elementary entities (points, lines or surfaces) in extrude-list using
a translation. The expression-list should contain three expressions giving the
X, Y and Z components of the translation vector.
Extrude { { expression-list }, { expression-list }, expression } {
extrude-list }
Extrudes all elementary entities (points, lines or surfaces) in extrude-list using
a rotation. The first expression-list should contain three expressions giving the
X, Y and Z direction of the rotation axis; the second expression-list should
contain three expressions giving the X, Y and Z components of any point on
this axis; the last expression should contain the rotation angle (in radians).
Extrude { { expression-list }, { expression-list }, { expression-list },
expression } { extrude-list }
Extrudes all elementary entities (points, lines or surfaces) in extrude-list using
a translation combined with a rotation. The first expression-list should contain
three expressions giving the X, Y and Z components of the translation vector;
the second expression-list should contain three expressions giving the X, Y and
Z direction of the rotation axis; the third expression-list should contain three
expressions giving the X, Y and Z components of any point on this axis; the
last expression should contain the rotation angle (in radians).
with
extrude-list :
Point | Line | Surface { expression-list }; ...
As explained in Section 4.2.1 [Floating point expressions], page 19, extrude can be used in
an expression, in which case it returns a list of identification numbers. By default, the list
contains the top of the extruded entity at index 0 and the extruded entity at index 1,
followed by the sides of the extruded entity at indices 2, 3, etc. For example:
Point(1) = {0,0,0};
Point(2) = {1,0,0};
Line(1) = {1, 2};
out[] = Extrude{0,1,0}{ Line{1}; };
38
Gmsh 2.8
5.1.6 Transformations
Geometrical transformations can be applied to elementary entities, or to copies of elementary entities (using the Duplicata command: see below). The syntax of the transformation
commands is:
transform:
Dilate { { expression-list }, expression } { transform-list }
Scales all elementary entities in transform-list by a factor expression. The
expression-list should contain three expressions giving the X, Y and Z direction
of the homothetic transformation.
Rotate { { expression-list }, { expression-list }, expression } {
transform-list }
Rotates all elementary entities in transform-list by an angle of expression radians. The first expression-list should contain three expressions giving the X, Y
and Z direction of the rotation axis; the second expression-list should contain
three expressions giving the X, Y and Z components of any point on this axis.
Symmetry { expression-list } { transform-list }
Transforms all elementary entities symmetrically to a plane. The expression-list
should contain four expressions giving the coefficients of the planes equation.
Translate { expression-list } { transform-list }
Translates all elementary entities in transform-list. The expression-list should
contain three expressions giving the X, Y and Z components of the translation
vector.
Boundary { transform-list }
(Not a transformation per-se.) Returns the boundary of the elementary entities
in transform-list.
CombinedBoundary { transform-list }
(Not a transformation per-se.) Returns the boundary of the elementary entities,
combined as if a single entity, in transform-list. Useful to compute the boundary
of a complex part.
with
transform-list :
Point | Line | Surface | Volume { expression-list }; ... |
Duplicata { Point | Line | Surface | Volume { expression-list }; ... } |
transform
39
5.1.7 Miscellaneous
Here is a list of all other geometry commands currently available:
Coherence;
Removes all duplicate elementary geometrical entities (e.g., points having identical coordinates). Note that Gmsh executes the Coherence command automatically after each geometrical transformation, unless Geometry.AutoCoherence
is set to zero (see Section B.2 [Geometry options list], page 170).
Delete { Point | Line | Surface | Volume { expression-list }; ... }
Deletes all elementary entities whose identification numbers are given in
expression-list. If an entity is linked to another entity (for example, if a point
is used as a control point of a curve), Delete has no effect (the line will have
to be deleted before the point can).
< Recursive > Hide { Point | Line | Surface | Volume { expression-list }; ... }
Hide the entities listed in expression-list, if General.VisibilityMode is set to
0 or 1.
Hide char-expression ;
Hide the entity char-expression, if General.VisibilityMode is set to 0 or 1
(char-expression can for example be "*").
< Recursive > Show { Point | Line | Surface | Volume { expression-list }; ... }
Show the entities listed in expression-list, if General.VisibilityMode is set to
0 or 1.
Show char-expression ;
Show the entity char-expression, if General.VisibilityMode is set to 0 or 1
(char-expression can for example be "*").
41
6 Mesh module
Gmshs mesh module regroups several 1D, 2D and 3D meshing algorithms, all producing
grids conforming in the sense of finite elements (see Section 1.2 [Mesh], page 5):
The 2D unstructured algorithms generate triangles or both triangles and quadrangles
(when Recombine Surface is used: see Section 6.3.3 [Miscellaneous mesh commands],
page 61). The 3D unstructured algorithms generate tetrahedra.
The 2D structured algorithms (transfinite and extrusion) generate triangles by default,
but quadrangles can be obtained by using the Recombine commands (see Section 6.3.2
[Structured grids], page 58, and Section 6.3.3 [Miscellaneous mesh commands], page 61).
The 3D structured algorithms generate tetrahedra, hexahedra, prisms and pyramids,
depending on the type of the surface meshes they are based on.
All meshes can be subdivided to generate fully quadrangular or fully hexahedral meshes
with the Mesh.SubdivisionAlgorihm option (see Section B.3 [Mesh options list], page 176).
However, beware that the quality of subdivided elements initially generated with an unstructured algorithm can be quite poor.
2
3
4
5
R. A. Dwyer, A simple divide-and-conquer algorithm for computing Delaunay triangulations in O(n log
n) expected time, In Proceedings of the second annual symposium on computational geometry, Yorktown
Heights, 24 June 1986.
N. P. Weatherill, The integrity of geometrical boundaries in the two-dimensional Delaunay triangulation,
Commun. Appl. Numer. Methods 6(2), pp. 101109, 1990.
C. Geuzaine and J.-F. Remacle, Gmsh: a three-dimensional finite element mesh generator with built-in
pre- and post-processing facilities, International Journal for Numerical Methods in Engineering 79(11), pp.
13091331, 2009.
P.-L. George and P. Frey, Mesh generation, Hermes, Lyon, 2000.
S. Rebay, Efficient unstructured mesh generation by means of Delaunay triangulation and Bowyer-Watson
algorithm, J. Comput. Phys. 106, pp. 25138, 1993.
42
Gmsh 2.8
Robustness
Performance
Element quality
MeshAdapt
1
3
2
Delaunay
2
1
2
Frontal
3
2
1
For very complex curved surfaces the MeshAdapt algorithm is the best choice. When
high element quality is important, the Frontal algorithm should be tried. For very large
meshes of plane surfaces the Delaunay algorithm is the fastest.
The Automatic algorithm tries to select the best algorithm automatically for each surface
in the model. As of Gmsh 2.8, the Automatic algorithm selects Delaunay for plane
surfaces and MeshAdapt for all other surfaces.
In 3D two unstructured algorithms are available:
1. The Delaunay algorithm is split into two separate steps. First, an initial mesh of the
union of all the volumes in the model is performed using H. Sis Tetgen algorithm6 .
Then a three-dimensional version of the 2D Delaunay algorithm described above is
applied.
2. The Frontal algorithm uses J. Schoeberls Netgen algorithm7 .
The Delaunay algorithm is the most robust and the fastest, and is the only one that
supports the Field mechanism to specify element sizes (see Section 6.3.1 [Specifying mesh
element sizes], page 43). However, this algorithm will sometimes modify the surface mesh,
and is thus not suitable for producing hybrid structured/unstructured grids. In that case
the Frontal algorithm should be preferred. The quality of the elements produced by both
algorithms is comparable. If element quality is important the mesh optimizer(s) should be
applied.
H. Si, Tetgen: a quality tetrahedral mesh generator and three-dimensional Delaunay triangulator, 2004.
J. Schoeberl, Netgen, an advancing front 2d/3d-mesh generator based on abstract rules, Comput. Visual.
Sci., 1, pp. 4152, 1997.
This behaviour was introduced in Gmsh 2.0. In older versions, both the elementary and the physical region
numbers would be set to the identification number of the elementary region.
43
The purpose of physical entities is to assemble elementary entities into larger, possibly
overlapping groups, and to control the orientation of the elements in these groups. The
introduction of physical entities in large models usually greatly facilitates the manipulation
of the model (e.g., using Tools->Visibility in the GUI) and the interfacing with external
solvers.
In the MSH file format (see Chapter 9 [File formats], page 97), if physical entities are
defined, the output mesh only contains those elements that belong to physical entities.
Other file formats each treat physical entities in slightly different ways, depending on their
capability to define groups.
In all cases, Gmsh reindexes the mesh vertices and elements so that they are numbered in
a continuous sequence in the output files. Note that the numbers displayed on screen after
mesh generation thus usually differ from the ones saved in the mesh files. To check the
actual numbers saved in the output file just load the file back using File->Open.
44
Gmsh 2.8
used, since the mesh used to define the field will be destroyed during the meshing
process).
(Note that you can also load a background mesh directly from the command line
using the -bgm option (see Section 3.3 [Command-line options], page 12), or in the
GUI by selecting Apply as background mesh in the post-processing view option
menu.)
A Box field specifies the size of the elements inside and outside of a parallelepipedic
region.
A Threshold field specifies the size of the mesh according to the distance to some
geometrical entities. These entities can for example be geometry points and lines
specified by an Attractor field.
A MathEval field specifies the size of the mesh using an explicit mathematical
function.
A Min field specifies the size as the minimum of the sizes computed using other
fields
...
Fields are supported by all the algorithms except those based on Netgen. The list of
available fields with their options is given below.
The three aforementioned methods can be used simultaneously, in which case the smallest
element size is selected at any given point.
All element sizes are further constrained by the Mesh.CharacteristicLengthMin,
Mesh.CharacteristicLengthMax and Mesh.CharacteristicLengthFactor options (see
Section B.3 [Mesh options list], page 176)
Here are the mesh commands that are related to the specification of mesh element sizes:
Characteristic Length { expression-list } = expression ;
Modify the prescribed mesh element size of the points whose identification numbers are listed in expression-list. The new value is given by expression.
Field[expression ] = string ;
Create a new field (with id number expression), of type string.
Field[expression ].string = char-expression | expression | expression-list ;
Set the option string of the expression-th field.
Background Field = expression ;
Select the expression-th field as the one used to compute element sizes. Only
one background field can be given; if you want to combine several field, use the
Min or Max field (see below).
Here is the list of all available fields with their associated options:
Attractor
Compute the distance from the nearest node in a list. It can also be used to
compute the distance from curves, in which case each curve is replaced by NNodesByEdge equidistant nodes and the distance from those nodes is computed.
Options:
45
EdgesList
Indices of curves in the geometric model
type: list
default value: {}
FacesList
Indices of surfaces in the geometric model (Warning, this feature is
still experimental. It might (read: will probably) give wrong results
for complex surfaces)
type: list
default value: {}
FieldX
FieldY
FieldZ
NNodesByEdge
Number of nodes used to discretized each curve
type: integer
default value: 20
NodesList
Indices of nodes in the geometric model
type: list
default value: {}
AttractorAnisoCurve
Compute the distance from the nearest curve in a list. Then the mesh size
can be specified independently in the direction normal to the curve and in
the direction parallel to the curve (Each curve is replaced by NNodesByEdge
equidistant nodes and the distance from those nodes is computed.)
Options:
EdgesList
Indices of curves in the geometric model
type: list
default value: {}
NNodesByEdge
Number of nodes used to discretized each curve
type: integer
default value: 20
46
Gmsh 2.8
dMax
dMin
lMaxNormal
Maximum mesh size in the direction normal to the closest curve.
type: float
default value: 0.5
lMaxTangent
Maximum mesh size in the direction tangeant to the closest curve.
type: float
default value: 0.5
lMinNormal
Minimum mesh size in the direction normal to the closest curve.
type: float
default value: 0.05
lMinTangent
Minimum mesh size in the direction tangeant to the closest curve.
type: float
default value: 0.5
BoundaryLayer
hwall * ratio^(dist/hwall)
Options:
AnisoMax
EdgesList
Indices of curves in the geometric model for which a boundary layer
is needed
type: list
default value: {}
FacesList
Indices of faces in the geometric model for which a boundary layer
is needed
type: list
default value: {}
47
FanNodesList
Indices of vertices in the geometric model for which a fan is created
type: list
default value: {}
FansList
IntersectMetrics
Intersect metrics of all faces
type: integer
default value: 0
NodesList
Indices of nodes in the geometric model
type: list
default value: {}
Quads
hfar
hwall_n
hwall_t
ratio
thickness
Maximal thickness of the boundary layer
type: float
default value: 0.01
Box
The value of this field is VIn inside the box, VOut outside the box. The box is
given by
Xmin <= x <= XMax &&
YMin <= y <= YMax &&
ZMin <= z <= ZMax
Options:
48
Gmsh 2.8
VIn
VOut
XMax
XMin
YMax
YMin
ZMax
ZMin
Centerline
The value of this field is the distance to the centerline.
You should specify a fileName that contains the centerline. The centerline
of a surface can be obtained with the open source software vmtk
(http://www.vmtk.org/) using the following script:
vmtk vmtkcenterlines -seedselector openprofiles -ifile mysurface.stl -ofile centerlines.vtp pipe vmtksurfacewriter -ifile centerlines.vtp -ofile centerlines.vtk
Options:
FileName
closeVolume
Action: Create In/Outlet planar faces
type: integer
default value: 0
49
extrudeWall
Action: Extrude wall
type: integer
default value: 0
hLayer
hSecondLayer
Thickness (% of radius) of the second extruded layer
type: float
default value: 0.3
nbElemLayer
Number of mesh elements the extruded layer
type: integer
default value: 3
nbElemSecondLayer
Number of mesh elements the second extruded layer
type: integer
default value: 0
nbPoints
reMesh
Action: Cut the initial mesh in different mesh partitions using the
centerlines
type: integer
default value: 0
Actions:
run
Curvature
Compute the curvature of Field[IField]:
F = div(norm(grad(Field[IField])))
Options:
Delta
IField
Field index
type: integer
default value: 1
50
Cylinder
Gmsh 2.8
The value of this field is VIn inside a frustrated cylinder, VOut outside. The
cylinder is given by
||dX||^2 < R^2 &&
(X-X0).A < ||A||^2
dX = (X - X0) - ((X - X0).A)/(||A||^2) . A
Options:
Frustum
Radius
Radius
type: float
default value: 0
VIn
VOut
XAxis
XCenter
YAxis
YCenter
ZAxis
ZCenter
This field is an extended cylinder with inner (i) and outer (o) radiuseson both
endpoints (1 and 2). Length scale is bilinearly interpolated betweenthese locations (inner and outer radiuses, endpoints 1 and 2)The field values for a point
P are given by : u = P1P.P1P2/||P1P2|| r = || P1P - u*P1P2 || Ri =
(1-u)*R1i + u*R2i Ro = (1-u)*R1o + u*R2o v = (r-Ri)/(Ro-Ri) lc = (1-v)*(
(1-u)*v1i + u*v2i ) + v*( (1-u)*v1o + u*v2o ) where (u,v) in [0,1]x[0,1]
Options:
R1_inner
R1_outer
R2_inner
R2_outer
V1_inner
V1_outer
V2_inner
V2_outer
X1
X coordinate of endpoint 1
type: float
default value: 0
X2
X coordinate of endpoint 2
type: float
default value: 0
Y1
Y coordinate of endpoint 1
type: float
default value: 0
Y2
Y coordinate of endpoint 2
type: float
default value: 0
Z1
Z coordinate of endpoint 1
type: float
default value: 1
Z2
Z coordinate of endpoint 2
type: float
default value: 2.26338226046034e+146
51
52
Gradient
Gmsh 2.8
IField
Field index
type: integer
default value: 1
Kind
IntersectAniso
Take the intersection of 2 anisotropic fields according to Alauzet.
Options:
FieldsList
Field indices
type: list
default value: {}
Laplacian
Compute finite difference the Laplacian of Field[IField]:
F = G(x+d,y,z) + G(x-d,y,z) +
G(x,y+d,z) + G(x,y-d,z) +
G(x,y,z+d) + G(x,y,z-d) - 6 * G(x,y,z),
where G=Field[IField] and d=Delta
Options:
LonLat
Delta
IField
Field index
type: integer
default value: 1
53
FromStereo
if = 1, the mesh is in stereographic coordinates. xi = 2Rx/(R+z),
eta = 2Ry/(R+z)
type: integer
default value: 0
IField
RadiusStereo
radius of the sphere of the stereograpic coordinates
type: float
default value: 6371000
MathEval
Actions:
test
description blabla
MathEvalAniso
Evaluate a metric expression. The expressions can contain x, y, z for spatial
coordinates, F0, F1, ... for field values, and and mathematical functions.
Options:
m11
m12
m13
m22
m23
54
Gmsh 2.8
m33
Max
MaxEigenHessian
Compute the maximum eigenvalue of the Hessian matrix of Field[IField], with
the gradients evaluated by finite differences:
F = max(eig(grad(grad(Field[IField]))))
Options:
Mean
Delta
IField
Field index
type: integer
default value: 1
Simple smoother:
F = (G(x+delta,y,z) + G(x-delta,y,z) +
G(x,y+delta,z) + G(x,y-delta,z) +
G(x,y,z+delta) + G(x,y,z-delta) +
G(x,y,z)) / 7,
where G=Field[IField]
Options:
Min
Delta
IField
Field index
type: integer
default value: 0
55
FieldsList
Field indices
type: list
default value: {}
MinAniso
Param
PostView
FX
FY
FZ
IField
Field index
type: integer
default value: 1
56
Restrict
Gmsh 2.8
Field index
type: integer
default value: 1
RegionsList
Volume indices
type: list
default value: {}
Sphere
The value of this field is VIn inside a sphere, VOut outside. The sphere is given
by
||dX||^2 < R^2 &&
dX = (X - XC)^2 + (Y-YC)^2 + (Z-ZC)^2
Options:
Radius
Radius
type: float
default value: 0
VIn
VOut
XCenter
YCenter
ZCenter
57
Structured
Linearly interpolate between data provided on a 3D rectangular structured grid.
The format of the input file is:
Ox Oy Oz
Dx Dy Dz
nx ny nz
v(0,0,0) v(0,0,1) v(0,0,2) ...
v(0,1,0) v(0,1,1) v(0,1,2) ...
v(0,2,0) v(0,2,1) v(0,2,2) ...
... ... ...
v(1,0,0) ... ...
where O are the coordinates of the first node, D are the distances between nodes
in each direction, n are the numbers of nodes in each direction, and v are the
values on each node.
Options:
FileName
OutsideValue
Value of the field outside the grid (only used if the "SetOutsideValue" option is true).
type: float
default value: 0
SetOutsideValue
True to use the "OutsideValue" option. If False, the last values of
the grid are used.
type: boolean
default value: 0
TextFormat
True for ASCII input files, false for binary files (4 bite signed integers for n, double precision floating points for v, D and O)
type: boolean
default value: 0
Threshold
F = LCMin if Field[IField] <= DistMin,
F = LCMax if Field[IField] >= DistMax,
F = interpolation between LcMin and LcMax if DistMin < Field[IField] < DistMax
58
Gmsh 2.8
Options:
DistMax
DistMin
IField
LcMax
LcMin
Sigmoid
StopAtDistMax
True to not impose element size outside DistMax (i.e., F = a very
big value if Field[IField] > DistMax)
type: boolean
default value: 0
59
a sequence of n numbers 0 < h1 < h2 < . . . < hn <= 1). See Section A.3 [t3.geo],
page 119, for an example.
For line extrusions, the Recombine option will recombine triangles into quadrangles when possible. For surface extrusions, the Recombine option will recombine
tetrahedra into prisms, hexahedra or pyramids.
Please note that, starting with Gmsh 2.0, region numbers cannot be specified
explicitly anymore in Layers commands. Instead, as with all other geometry
commands, you must use the automatically created entity identifier created by
the extrusion command. For example, the following extrusion command will
return the id of the new top surface in num[0] and the id of the new volume
in num[1]:
num[] = Extrude {0,0,1} { Surface{1}; Layers{10}; };
QuadTriNoNewVerts and QuadTriAddVerts allow to connect structured, extruded volumes containing quadrangle-faced elements to structured or unstructured tetrahedral volumes, by subdividing into triangles any quadrangles on
boundary surfaces shared with tetrahedral volumes. (They have no effect for
1D or 2D extrusions.) QuadTriNoNewVerts subdivides any of the regions quadfaced 3D elements that touch these boundary triangles into pyramids, prisms, or
tetrahedra as necessary, all WITHOUT adding new vertices. QuadTriAddVerts
works in a simular way, but subdivides 3D elements touching the boundary triangles by adding a new vertex inside each element at the vertex-based centroid.
Either method results in a structured extrusion with an outer layer of subdivided elements that interface the inner, unmodified elements to the trianglemeshed region boundaries.
In some rare cases, due to certain lateral boundary conditions, it may not be
possible make a valid element subdivision with QuadTriNoNewVerts without
adding additional vertices. In this case, an internal vertex is created at the
vertex-based centroid of the element. The element is then divided using that
vertex. When an internal vertex is created with QuadTriNoNewVerts, the user
is alerted by a warning message sent for each instance; however, the mesh will
still be valid and conformal.
Both QuadTriNoNewVerts and QuadTriAddVerts can be used with the optional
RecombLaterals keyword. By default, the QuadTri algorithms will mesh any
free laterals as triangles, if possible. RecombLaterals forces any free laterals
to remain as quadrangles, if possible. Lateral surfaces between two QuadTri
regions will always be meshed as quadrangles.
Note that the QuadTri algorithms will handle all potential meshing conflicts
along the lateral surfaces of the extrusion. In other words, QuadTri will not
subdivide a lateral that must remain as quadrangles, nor will it leave a lateral
as quadrangles if it must be divided. The user should therefore feel free to mix
different types of neighboring regions with a QuadTri meshed region; the mesh
should work. However, be aware that the top surface of the QuadTri extrusion
will always be meshed as triangles, unless it is extruded back onto the original
source in a toroidal loop (a case which also works with QuadTri).
60
Gmsh 2.8
61
6.3.3 Miscellaneous
Here is a list of all other mesh commands currently available:
Point | Line { expression-list } In Surface { expression };
Embed the point(s) or line(s) in the given surface. The surface mesh will
conform to the mesh of the point(s) or lines(s).
Surface { expression-list } In Volume { expression };
Embed the surface in the given volume. The volume mesh will conform to the
mesh of the surface.
Periodic Line { expression-list } = { expression-list };
Force mesh of lines on the left-hand side (slaves) to match the mesh of the lines
on the right-hand side (masters).
Periodic Surface expression { expression-list } = expression { expression-list
};
Force mesh of the surface on the left-hand side (slave, with boundary edges
specified between braces) to match the mesh of the surface on the right-hand
side (master, with boundary edges specified between braces).
Coherence Mesh;
Removes all duplicate mesh vertices.
< Recursive > Color color-expression { Point | Line | Surface | Volume {
expression-list }; ... }
Sets the mesh color of the entities in expression-list to color-expression.
62
Gmsh 2.8
< Recursive > Hide { Point | Line | Surface | Volume { expression-list }; ... }
Hides the mesh of the entities in expression-list, if General.VisibilityMode
is set to 0 or 2.
Hide char-expression ;
Hides the mesh of the entity char-expression, if General.VisibilityMode is
set to 0 or 2 (char-expression can for example be "*").
Recombine Surface { expression-list } | "*" < = expression >;
Recombines the triangular meshes of the surfaces listed in expression-list into
mixed triangular/quadrangular meshes. The optional expression on the right
hand side specifies the maximum difference (in degrees) allowed between the
largest angle of a quadrangle and a right angle (a value of 0 would only accept
quadrangles with right angles; a value of 90 would allow degenerate quadrangles;
default value is 45).
Reverse Line | Surface { expression-list } | "*" ;
Reverses the mesh of the given line(s) or surface(s).
Save char-expression ;
Saves the mesh in a file named char-expression, using the current Mesh.Format
(see Section B.3 [Mesh options list], page 176). If the path in char-expression
is not absolute, char-expression is appended to the path of the current file.
CreateDir char-expression ;
Create the directory char-expression.
< Recursive > Show { Point | Line | Surface | Volume { expression-list }; ... }
Shows the mesh of the entities in expression-list, if General.VisibilityMode
is set to 0 or 2.
Show char-expression ;
Shows the mesh of the entity char-expression, if General.VisibilityMode is
set to 0 or 2 (char-expression can for example be "*").
Smoother Surface { expression-list } = expression ;
Sets number of elliptic smoothing steps for the surfaces listed in expression-list
(smoothing only applies to transfinite meshes at the moment).
Homology ( { expression-list } ) { { expression-list } , { expression-list } };
Compute a basis representation for homology spaces after a mesh has been
generated. The first expression-list is a list of dimensions whose homology bases
are computed; if empty, all bases are computed. The second expression-list is
a list physical groups that constitute the computation domain; if empty, the
whole mesh is the domain. The third expression-list is a list of physical groups
that constitute the relative subdomain of relative homology computation; if
empty, absolute homology is computed. Resulting basis representation chains
are stored as physical groups in the mesh.
Cohomology ( { expression-list } ) { { expression-list } , { expression-list }
};
Similar to command Homology, but computes a basis representation for cohomology spaces instead.
63
65
7 Solver module
External solvers can be driven by Gmsh through the ONELAB http://www.onelab.info
interface.
To add a new solver in the solver module, you need to specify its
name (Solver.Name0, Solver.Name1, etc.)
and the path to the executable
(Solver.Executable0, Solver.Executable1, etc.); see Section B.4 [Solver options list],
page 193).
The client-server API for the solver interface is defined in the onelab.h header. See
utils/solvers/c++/solver.cpp for a simple example on how to use the ONELAB programming interface. See the sources of GetDP (http://geuz.org/getdp for a more comprehensive example.
67
8 Post-processing module
Gmshs post-processing module can handle multiple scalar, vector or tensor datasets along
with the geometry and the mesh. The datasets can be given in several formats: in humanreadable parsed format (these are just part of a standard input script, but are usually
put in separate files with a .pos extension), in native MSH files (ASCII or binary files
with .msh extensions: see Chapter 9 [File formats], page 97), or in standard third-party
formats (like MED: http://www.code-aster.org/outils/med/).
Once loaded into Gmsh, scalar fields can be displayed as iso-value lines and surfaces or
color maps, whereas vector fields can be represented either by three-dimensional arrows
or by displacement maps. (Tensor fields are currently displayed as Von-Mises effective
stresses, min/max eigenvalues, eigenvectors, ellipsis or ellipsoid. To display other (combinations of) components, you can use the Force scalar or Force vector options, or use
Plugin(MathEval): see Section 8.2 [Post-processing plugins], page 71.)
In Gmshs jargon, each dataset is called a view. 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 a script) or globally (see the PostProcessing.Link option in
Section B.5 [Post-processing options list], page 197).
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:
in a 2D space plot, the scalar points are taken in the same order as they are defined
in the post-processing view: the abscissa of the 2D graph is the curvilinear abscissa
of the curve defined by the point series, and only one curve is drawn using the values
associated with the points. If several time steps are available, each time step generates
a new curve;
in a 2D time plot, one curve is drawn for each scalar point in the view and the abscissa
is the time step.
Although visualization is usually mostly an interactive task, Gmsh exposes all the postprocessing commands and options to the user in its scripting language to permit a complete
automation of the post-processing process (see e.g., Section A.8 [t8.geo], page 128, and
Section A.9 [t9.geo], page 132).
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 (abscissa 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 and in the native MSH file
format are available in the tutorial directory of Gmshs distribution (.pos and .msh
files). The parsed format is defined in the next section (cf. the View command); the MSH
format is defined in Chapter 9 [File formats], page 97.
68
Gmsh 2.8
Delete View[expression ];
Deletes (removes) the expression-th post-processing view.
processing view numbers start at 0.
69
70
Gmsh 2.8
Vector point
Tensor point
Scalar line
Vector line
Tensor line
Scalar triangle
Vector triangle
Tensor triangle
Scalar quadrangle
Vector quadrangle
Tensor quadrangle
Scalar tetrahedron
Vector tetrahedron
Tensor tetrahedron
Scalar hexahedron
Vector hexahedron
Tensor hexahedron
Scalar prism
Vector prism
Tensor prism
Scalar pyramid
Vector pyramid
Tensor pyramid
2D text
3D text
VP
TP
SL
VL
TL
ST
VT
TT
SQ
VQ
TQ
SS
VS
TS
SH
VH
TH
SI
VI
TI
SY
VY
TY
T2
T3
3
3
6
6
6
9
9
9
12
12
12
12
12
12
24
24
24
18
18
18
15
15
15
3
4
3 * nb-time-steps
9 * nb-time-steps
2 * nb-time-steps
6 * nb-time-steps
18 * nb-time-steps
3 * nb-time-steps
9 * nb-time-steps
27 * nb-time-steps
4 * nb-time-steps
12 * nb-time-steps
36 * nb-time-steps
4 * nb-time-steps
12 * nb-time-steps
36 * nb-time-steps
8 * nb-time-steps
24 * nb-time-steps
72 * nb-time-steps
6 * nb-time-steps
18 * nb-time-steps
54 * nb-time-steps
5 * nb-time-steps
15 * nb-time-steps
45 * nb-time-steps
arbitrary
arbitrary
71
lower bits give the font size, whose eight next bits select the font (the index
corresponds to the position in the font menu in the GUI), and whose eight next
bits define the text alignment (0=bottom-left, 1=bottom-center, 2=bottomright, 3=top-left, 4=top-center, 5=top-right, 6=center-left, 7=center-center,
8=center-right).
For the 3D text objects, the three first expressions in list-of-coords give the XYZ
position of the string in model (real world) coordinates. The fourth expression
has the same meaning as the third expression in 2D text objects.
For both 2D and 3D text objects, the list-of-values can contain an arbitrary
number of char-expressions.
The optional TIME list can contain a list of expressions giving the value of the
time (or any other variable) for which an evolution was saved.
The optional INTERPOLATION_SCHEME lists can contain the interpolation matrices used for high-order adaptive visualization.
Let us assume that the approximation of the views value over an element
is written as a linear combination of d basis functions f [i], i=0, ..., d-1 (the
coefficients being stored in list-of-values). Defining f [i] = Sum(j=0, ..., d-1)
F[i][j] p[j], with p[j] = u^P[j][0] v^P[j][1] w^P[j][2] (u, v and w being the
coordinates in the elements parameter space), then val-coef-matrix denotes
the d x d matrix F and val-exp-matrix denotes the d x 3 matrix P.
In the same way, let us also assume that the coordinates x, y and z of the
element are obtained through a geometrical mapping from parameter space as
a linear combination of m basis functions g[i], i=0, ..., m-1 (the coefficients
being stored in list-of-coords). Defining g[i] = Sum(j=0, ..., m-1) G[i][j] q[j],
with q[j] = u^Q[j][0] v^Q[j][1] w^Q[j][2], then val-coef-matrix denotes the m x
m matrix G and val-exp-matrix denotes the m x 3 matrix Q.
Here are for example the interpolation matrices for a first order quadrangle:
INTERPOLATION_SCHEME
{
{1/4,-1/4, 1/4,-1/4},
{1/4, 1/4,-1/4,-1/4},
{1/4, 1/4, 1/4, 1/4},
{1/4,-1/4,-1/4, 1/4}
}
{
{0, 0, 0},
{1, 0, 0},
{0, 1, 0},
{1, 1, 0}
};
72
Gmsh 2.8
Plugins are available in the GUI by right-clicking on a view button (or by clicking on the
black arrow next to the view button) and then selecting the Plugin submenu.
Here is the list of the plugins that are shipped by default with Gmsh:
Plugin(AnalyseCurvedMesh)
Plugin(AnalyseCurvedMesh) analyse all elements of a given dimension. It computes, min(J) where J is the scaled Jacobian determinant. Eventually, it computes min(R) where R is the ratio between the smaller and the greater of the
eigenvalues of the metric. It creates one or more PView and hides elements for
which min({J, R}) < Hidding threshold.
Parameters:
- Show [...] = {0, 1}: If 0, computes Jacobian and shows min(J). If 1, computes
Jacobian and metric and shows min(R).
- Number of PView = {0, 1, 2}: If 1, create one PView with all elements.
If 2, create two PView, one with straight-sided elements and one with curved
elements.
- Hidding threshold = [0,1]: Hides all element for which min(R) or min(J) is
strictly greater than the threshold. If = 1, no effect, if = 0 hide all elements
except invalid.
- Dimension = {-1, 1, 2, 3}: If = -1, analyse element of the greater dimension.
- Recompute = {0,1}: If the mesh has changed, set to 1 to recompute the
bounds.
- Tolerance = ]0, 1[: Tolerance on the computation of min(R) or min(J). It
should be at most 0.01 but it can be set to 1 to just check the validity of the
mesh. Numeric options:
Show: (0) Jacobian, (1) Metric
Default value: 1
Number of PView
Default value: 2
Hidding threshold
Default value: 0.1
Dimension of elements
Default value: -1
Recompute bounds
Default value: 0
Tolerance
Default value: 0.001
73
Plugin(Annotate)
Plugin(Annotate) adds the text string Text, in font Font and size FontSize,
in the view View. The string is aligned according to Align.
If ThreeD is equal to 1, the plugin inserts the string in model coordinates at
the position (X,Y,Z). If ThreeD is equal to 0, the plugin inserts the string
in screen coordinates at the position (X,Y).
If View < 0, the plugin is run on the current view.
Plugin(Annotate) is executed in-place for list-based datasets or creates a new
view for other datasets. String options:
Text
Font
Align
Numeric options:
X
Default value: 50
Default value: 30
Default value: 0
ThreeD
Default value: 0
FontSize
Default value: 14
View
Default value: -1
Plugin(Bubbles)
Plugin(Bubbles) constructs a geometry consisting of bubbles inscribed in the
Voronoi of an input triangulation. ShrinkFactor allows to change the size of
the bubbles. The plugin expects a triangulation in the z = 0 plane to exist in
the current model.
Plugin(Bubbles) creates one .geo file. String options:
OutputFile
Default value: "bubbles.geo"
Numeric options:
ShrinkFactor
Default value: 0
Plugin(Crack)
Plugin(Crack) creates a crack around the physical group PhysicalGroup of
dimension Dimension (1 or 2). The plugin duplicates the vertices and the elements on the crack and stores them in a new discrete curve (Dimension = 1)
or surface (Dimension = 2). The elements touching the crack on the negative
side are modified to use the newly generated vertices.If OpenBoundaryPhysicalGroup is given (> 0), its vertices are duplicated and the crack will be left
74
Gmsh 2.8
open on that (part of the) boundary. Otherwise, the lips of the crack are sealed,
i.e., its vertices are not duplicated. Numeric options:
Dimension
Default value: 1
PhysicalGroup
Default value: 1
OpenBoundaryPhysicalGroup
Default value: 0
Plugin(Curl)
Plugin(Curl) computes the curl of the field in the view View.
If View < 0, the plugin is run on the current view.
Plugin(Curl) creates one new view. Numeric options:
View
Default value: -1
Plugin(CurvedBndDist)
Plugin(CurvedBndDist) ...
Plugin(CutBox)
Plugin(CutBox) cuts the view View with a rectangular box defined by the
4 points (X0,Y0,Z0) (origin), (X1,Y1,Z1) (axis of U), (X2,Y2,Z2)
(axis of V) and (X3,Y3,Z3) (axis of W).
The number of points along U, V, W is set with the options NumPointsU,
NumPointsV and NumPointsW.
If ConnectPoints is zero, the plugin creates points; otherwise, the plugin generates hexahedra, quadrangles, lines or points depending on the values of NumPointsU, NumPointsV and NumPointsW.
If Boundary is zero, the plugin interpolates the view inside the box; otherwise
the plugin interpolates the view at its boundary.
If View < 0, the plugin is run on the current view.
Plugin(CutBox) creates one new view. Numeric options:
X0
Default value: 0
Y0
Default value: 0
Z0
Default value: 0
X1
Default value: 1
Y1
Default value: 0
Z1
Default value: 0
X2
Default value: 0
Y2
Default value: 1
Z2
Default value: 0
X3
Default value: 0
Y3
Default value: 0
Z3
Default value: 1
75
NumPointsU
Default value: 20
NumPointsV
Default value: 20
NumPointsW
Default value: 20
ConnectPoints
Default value: 1
Boundary
Default value: 1
View
Default value: -1
Plugin(CutGrid)
Plugin(CutGrid) cuts the view View with a rectangular grid defined by the 3
points (X0,Y0,Z0) (origin), (X1,Y1,Z1) (axis of U) and (X2,Y2,Z2)
(axis of V).
The number of points along U and V is set with the options NumPointsU and
NumPointsV.
If ConnectPoints is zero, the plugin creates points; otherwise, the plugin generates quadrangles, lines or points depending on the values of NumPointsU
and NumPointsV.
If View < 0, the plugin is run on the current view.
Plugin(CutGrid) creates one new view. Numeric options:
X0
Default value: 0
Y0
Default value: 0
Z0
Default value: 0
X1
Default value: 1
Y1
Default value: 0
Z1
Default value: 0
X2
Default value: 0
76
Gmsh 2.8
Y2
Default value: 1
Z2
Default value: 0
NumPointsU
Default value: 20
NumPointsV
Default value: 20
ConnectPoints
Default value: 1
View
Default value: -1
Plugin(CutParametric)
Plugin(CutParametric) cuts the view View with the parametric function
(X(u,v), Y(u,v), Z(u,v)), using NumPointsU values of the parameter u
in [MinU, MaxU] and NumPointsV values of the parameter v in [MinV,
MaxV].
If ConnectPoints is set, the plugin creates surface or line elements; otherwise,
the plugin generates points.
If View < 0, the plugin is run on the current view.
Plugin(CutParametric) creates one new view. String options:
X
Numeric options:
MinU
Default value: 0
MaxU
NumPointsU
Default value: 180
MinV
Default value: 0
MaxV
NumPointsV
Default value: 180
ConnectPoints
Default value: 0
View
Default value: -1
Plugin(CutPlane)
Plugin(CutPlane) cuts the view View with the plane A*X + B*Y + C*Z +
D = 0.
77
Default value: 1
Default value: 0
Default value: 0
ExtractVolume
Default value: 0
RecurLevel
Default value: 4
TargetError
Default value: 0
View
Default value: -1
Plugin(CutSphere)
Plugin(CutSphere) cuts the view View with the sphere (X-Xc)^2 + (Y-Yc)^2
+ (Z-Zc)^2 = R^2.
If ExtractVolume is nonzero, the plugin extracts the elements inside (if ExtractVolume < 0) or outside (if ExtractVolume > 0) the sphere.
If View < 0, the plugin is run on the current view.
Plugin(CutSphere) creates one new view. Numeric options:
Xc
Default value: 0
Yc
Default value: 0
Zc
Default value: 0
ExtractVolume
Default value: 0
RecurLevel
Default value: 4
TargetError
Default value: 0
View
Default value: -1
78
Gmsh 2.8
Plugin(DiscretizationError)
Plugin(DiscretizationError) computes the error between the mesh and the geometry. It does so by supersampling the elements and computing the distance
between the supersampled points dans their projection on the geometry. Numeric options:
SuperSamplingNodes
Default value: 10
Plugin(Distance)
Plugin(Distance) computes distances to physical entities in a mesh.
Define the physical entities to which the distance is computed. If Point=0,
Line=0, and Surface=0, then the distance is computed to all the boundaries of
the mesh (edges in 2D and faces in 3D).
Computation<0. computes the geometrical euclidian distance (warning: different than the geodesic distance), and Computation=a>0.0 solves a PDE on the
mesh with the diffusion constant mu = a*bbox, with bbox being the max size
of the bounding box of the mesh (see paper Legrand 2006).
Min Scale and max Scale, scale the distance function. If min Scale<0 and max
Scale<0, then no scaling is applied to the distance function.
Plugin(Distance) creates a new distance view and also saves the view in the
fileName.pos file. String options:
Filename
Numeric options:
PhysPoint
Default value: 0
PhysLine
Default value: 0
PhysSurface
Default value: 0
Computation
Default value: -1
MinScale
Default value: -1
MaxScale
Default value: -1
Orthogonal
Default value: -1
Plugin(Divergence)
Plugin(Divergence) computes the divergence of the field in the view View.
If View < 0, the plugin is run on the current view.
Plugin(Divergence) creates one new view. Numeric options:
View
79
Default value: -1
Plugin(Eigenvalues)
Plugin(Eigenvalues) computes the three real eigenvalues of each tensor in the
view View.
If View < 0, the plugin is run on the current view.
Plugin(Eigenvalues) creates three new scalar views. Numeric options:
View
Default value: -1
Plugin(Eigenvectors)
Plugin(Eigenvectors) computes the three (right) eigenvectors of each tensor in
the view View and sorts them according to the value of the associated eigenvalues.
If ScaleByEigenvalues is set, each eigenvector is scaled by its associated eigenvalue. The plugin gives an error if the eigenvectors are complex.
If View < 0, the plugin is run on the current view.
Plugin(Eigenvectors) creates three new vector view. Numeric options:
ScaleByEigenvalues
Default value: 1
View
Default value: -1
Plugin(ExtractEdges)
Plugin(ExtractEdges) extracts sharp edges from a triangular mesh.
Plugin(ExtractEdges) creates one new view. Numeric options:
Angle
Default value: 40
IncludeBoundary
Default value: 1
Plugin(ExtractElements)
Plugin(ExtractElements) extracts some elements from the view View. If MinVal != MaxVal, it extracts the elements whose TimeStep-th values (averaged
by element) are comprised between MinVal and MaxVal. If Visible != 0, it
extracts visible elements.
If View < 0, the plugin is run on the current view.
Plugin(ExtractElements) creates one new view. Numeric options:
MinVal
Default value: 0
MaxVal
Default value: 0
TimeStep
Default value: 0
80
Gmsh 2.8
Visible
Default value: 1
Dimension
Default value: -1
View
Default value: -1
Plugin(FaultZone)
Plugin(FaultZone) convert all the embedded lines of an existing surfacic mesh
to flat quadrangles. Flat quadrangles represent joint elements suitable to model
a fault zone with Code Aster.
SurfaceTag must be an existing plane surface containing embedded lines. Embedded lines must have been added to the surface via the command Line In
Surface. The surface must be meshed with quadratic incomplete elements.
Thickness is the thichness of the flat quadrangles. Set a value different to zero
can be helpfull to check the connectivity.
Prefix is the prefix of the name of physicals containing the new embedded. All
physicals containing embedded lines are replaced by physicals containing the
coresponding joint elements. String options:
Prefix
Numeric options:
SurfaceTag
Default value: 1
Thickness
Default value: 0
Plugin(FieldFromAmplitudePhase)
Plugin(FieldFromAmplitudePhase) builds a complex field u from amplitude
a (complex) and phase phi given in two different Views u = a * exp(k*phi),
with k the wavenumber.
The result is to be interpolated in a sufficiently fine mesh: MeshFile.
Plugin(FieldFromAmplitudePhase) generates one new view. String options:
MeshFile
Numeric options:
Wavenumber
Default value: 5
AmplitudeView
Default value: 0
PhaseView
Default value: 1
81
Plugin(Gradient)
Plugin(Gradient) computes the gradient of the field in the view View.
If View < 0, the plugin is run on the current view.
Plugin(Gradient) creates one new view. Numeric options:
View
Default value: -1
Plugin(HarmonicToTime)
Plugin(HarmonicToTime) takes the values in the time steps RealPart and
ImaginaryPart of the view View, and creates a new view containing
View[RealPart] * cos(p) - View[ImaginaryPart] * sin(p)
with p = 2*Pi*k/NumSteps, k = 0, ..., NumSteps-1.
If View < 0, the plugin is run on the current view.
Plugin(HarmonicToTime) creates one new view. Numeric options:
RealPart
Default value: 0
ImaginaryPart
Default value: 1
NumSteps
Default value: 20
View
Default value: -1
Plugin(HomologyComputation)
Plugin(HomologyComputation) computes representative chains of basis elements of (relative) homology and cohomology spaces.
Define physical groups in order to specify the computation domain and the
relative subdomain. Otherwise the whole mesh is the domain and the relative
subdomain is empty.
Plugin(HomologyComputation) creates new views, one for each basis element.
The resulting basis chains of desired dimension together with the mesh are
saved to the given file. String options:
DomainPhysicalGroups
Default value: ""
SubdomainPhysicalGroups
Default value: ""
ReductionImmunePhysicalGroups
Default value: ""
DimensionOfChainsToSave
Default value: "0, 1, 2, 3"
82
Gmsh 2.8
Filename
Numeric options:
ComputeHomology
Default value: 1
ComputeCohomology
Default value: 0
HomologyPhysicalGroupsBegin
Default value: -1
CohomologyPhysicalGroupsBegin
Default value: -1
CreatePostProcessingViews
Default value: 1
ReductionOmit
Default value: 1
ReductionCombine
Default value: 3
PostProcessSimplify
Default value: 1
ReductionHeuristic
Default value: 1
Plugin(HomologyPostProcessing)
Plugin(HomologyPostProcessing) operates on representative basis chains of homology and cohomology spaces. Functionality:
1. (co)homology basis transformation:
TransformationMatrix: Integer matrix of the transformation.
PhysicalGroupsOfOperatedChains: (Co)chains of a (co)homology space basis
to be transformed.
Results a new (co)chain basis that is an integer cobination of the given basis.
2. Make basis representations of a homology space and a cohomology space
compatible:
PhysicalGroupsOfOperatedChains: Chains of a homology space basis.
PhysicalGroupsOfOperatedChains2: Cochains of a cohomology space basis.
Results a new basis for the homology space such that the incidence matrix of
the new basis and the basis of the cohomology space is the identity matrix.
Options:
PhysicalGroupsToTraceResults: Trace the resulting (co)chains to the given
physical groups.
PhysicalGroupsToProjectResults: Project the resulting (co)chains to the complement of the given physical groups.
83
Default value: -1
OverTime
Default value: -1
Dimension
Default value: -1
Plugin(Isosurface)
Plugin(Isosurface) extracts the isosurface of value Value from the view View,
and draws the OtherTimeStep-th step of the view OtherView on this isosurface.
84
Gmsh 2.8
Default value: 0
ExtractVolume
Default value: 0
RecurLevel
Default value: 4
TargetError
Default value: 0
View
Default value: -1
OtherTimeStep
Default value: -1
OtherView
Default value: -1
Plugin(Lambda2)
Plugin(Lambda2) computes the eigenvalues Lambda(1,2,3) of the tensor (S ik
S kj + Om ik Om kj), where S ij = 0.5 (ui,j + uj,i) and Om ij = 0.5 (ui,j - uj,i)
are respectively the symmetric and antisymmetric parts of the velocity gradient
tensor.
Vortices are well represented by regions where Lambda(2) is negative.
If View contains tensor elements, the plugin directly uses the tensors as the
values of the velocity gradient tensor; if View contains vector elements, the
plugin uses them as the velocities from which to derive the velocity gradient
tensor.
If View < 0, the plugin is run on the current view.
Plugin(Lambda2) creates one new view. Numeric options:
Eigenvalue
Default value: 2
View
Default value: -1
85
Plugin(LongitudeLatitude)
Plugin(LongituteLatitude) projects the view View in longitude-latitude.
If View < 0, the plugin is run on the current view.
Plugin(LongituteLatitude) is executed in place. Numeric options:
View
Default value: -1
Plugin(MakeSimplex)
Plugin(MakeSimplex) decomposes all non-simplectic elements (quadrangles,
prisms, hexahedra, pyramids) in the view View into simplices (triangles,
tetrahedra).
If View < 0, the plugin is run on the current view.
Plugin(MakeSimplex) is executed in-place. Numeric options:
View
Default value: -1
Plugin(MathEval)
Plugin(MathEval) creates a new view using data from the time step TimeStep
in the view View.
If only Expression0 is given (and Expression1, ..., Expression8 are all
empty), the plugin creates a scalar view. If Expression0, Expression1 and/or
Expression2 are given (and Expression3, ..., Expression8 are all empty) the
plugin creates a vector view. Otherwise the plugin creates a tensor view.
In addition to the usual mathematical functions (Exp, Log, Sqrt, Sin, Cos,
Fabs, etc.) and operators (+, -, *, /, ^), all expressions can contain:
- the symbols v0, v1, v2, ..., vn, which represent the n components in View;
- the symbols w0, w1, w2, ..., wn, which represent the n components of
OtherView, at time step OtherTimeStep;
- the symbols x, y and z, which represent the three spatial coordinates.
If TimeStep < 0, the plugin extracts data from all the time steps in the view.
If View < 0, the plugin is run on the current view.
Plugin(MathEval) creates one new view.If PhysicalRegion < 0, the plugin is
run on all physical regions.
Plugin(MathEval) creates one new view. String options:
Expression0
Default value: "Sqrt(v0^2+v1^2+v2^2)"
86
Gmsh 2.8
Expression1
Default value: ""
Expression2
Default value: ""
Expression3
Default value: ""
Expression4
Default value: ""
Expression5
Default value: ""
Expression6
Default value: ""
Expression7
Default value: ""
Expression8
Default value: ""
Numeric options:
TimeStep
Default value: -1
View
Default value: -1
OtherTimeStep
Default value: -1
OtherView
Default value: -1
ForceInterpolation
Default value: 0
PhysicalRegion
Default value: -1
Plugin(MinMax)
Plugin(MinMax) computes the min/max of a view.
If View < 0, the plugin is run on the current view.
If OverTime = 1, calculates the min/max over space AND time
If Argument = 1, calculates the min/max AND the argmin/argmax
Plugin(MinMax) creates two new views. Numeric options:
View
Default value: -1
OverTime
Default value: 0
Argument
87
Default value: 0
Plugin(ModifyComponent)
Plugin(ModifyComponent) sets the Component-th component of the
TimeStep-th time step in the view View to the expression Expression.
Expression can contain:
- the usual mathematical functions (Log, Sqrt, Sin, Cos, Fabs, ...)
operators (+, -, *, /, ^);
and
88
Gmsh 2.8
Component
Default value: -1
TimeStep
Default value: -1
View
Default value: -1
OtherTimeStep
Default value: -1
OtherView
Default value: -1
ForceInterpolation
Default value: 0
Plugin(ModulusPhase)
Plugin(ModulusPhase) interprets the time steps realPart and imaginaryPart
in the view View as the real and imaginary parts of a complex field and replaces
them with their corresponding modulus and phase.
If View < 0, the plugin is run on the current view.
Plugin(ModulusPhase) is executed in-place. Numeric options:
RealPart
Default value: 0
ImaginaryPart
Default value: 1
View
Default value: -1
Plugin(NearToFarField)
Plugin(NearToFarField) computes the far field pattern from the near electric E
and magnetic H fields on a surface enclosing the radiating device (antenna).
Parameters: the wavenumber, the angular discretisation (phi in [0, 2*Pi] and
theta in [0, Pi]) of the far field sphere and the indices of the views containing the
complex-valued E and H fields. If Normalize is set, the far field is normalized
to 1. If dB is set, the far field is computed in dB. If NegativeTime is set,
E and H are assumed to have exp(-iwt) time dependency; otherwise they are
assume to have exp(+iwt) time dependency. If MatlabOutputFile is given the
raw far field data is also exported in Matlab format.
Plugin(NearToFarField) creates one new view. String options:
MatlabOutputFile
Default value: "farfield.m"
Numeric options:
Wavenumber
Default value: 1
PhiStart
Default value: 0
PhiEnd
89
NumPointsPhi
Default value: 60
ThetaStart
Default value: 0
ThetaEnd
NumPointsTheta
Default value: 30
EView
Default value: 0
HView
Default value: 1
Normalize
Default value: 1
dB
Default value: 1
NegativeTime
Default value: 0
RFar
Default value: 0
Plugin(NearestNeighbor)
Plugin(NearestNeighbor) computes the distance from each point in View to
its nearest neighbor.
If View < 0, the plugin is run on the current view.
Plugin(NearestNeighbor) is executed in-place. Numeric options:
View
Default value: -1
Plugin(NewView)
Plugin(NewView) creates a new view from a mesh. Numeric options:
View
Default value: -1
Plugin(Particles)
Plugin(Particles) computes the trajectory of particules in the force field given
by the TimeStep-th time step of a vector view View.
The plugin takes as input a grid defined by the 3 points (X0,Y0,Z0)
(origin), (X1,Y1,Z1) (axis of U) and (X2,Y2,Z2) (axis of V).
The number of particles along U and V that are to be transported is set with
the options NumPointsU and NumPointsV. The equation
A2 * d^2X(t)/dt^2 + A1 * dX(t)/dt + A0 * X(t) = F
is then solved with the initial conditions X(t=0) chosen as the grid,
90
Gmsh 2.8
Default value: 0
Y0
Default value: 0
Z0
Default value: 0
X1
Default value: 1
Y1
Default value: 0
Z1
Default value: 0
X2
Default value: 0
Y2
Default value: 1
Z2
Default value: 0
NumPointsU
Default value: 10
NumPointsV
Default value: 1
A2
Default value: 1
A1
Default value: 0
A0
Default value: 0
DT
MaxIter
TimeStep
Default value: 0
View
Default value: -1
Plugin(Probe)
Plugin(Probe) gets the value of the view View at the point (X,Y,Z).
If View < 0, the plugin is run on the current view.
Plugin(Probe) creates one new view. Numeric options:
X
Default value: 0
Default value: 0
Default value: 0
View
Default value: -1
91
Plugin(Remove)
Plugin(Remove) removes the marked items from the view View.
If View < 0, the plugin is run on the current view.
Plugin(Remove) is executed in-place. Numeric options:
Text2D
Default value: 1
Text3D
Default value: 1
Points
Default value: 0
Lines
Default value: 0
Triangles
Default value: 0
Quadrangles
Default value: 0
Tetrahedra
Default value: 0
Hexahedra
Default value: 0
Prisms
Default value: 0
Pyramids
Default value: 0
Scalar
Default value: 1
Vector
Default value: 1
Tensor
Default value: 1
View
Default value: -1
Plugin(Scal2Tens)
Plugin(Scal2Tens) converts some scalar fields into a tensor field. The number of
components must be given (max. 9). The new view NameNewView contains
the new tensor field. If the number of a view is -1, the value of the corresponding
component is 0. String options:
NameNewView
Default value: "NewView"
Numeric options:
NumberOfComponents
Default value: 9
View0
Default value: -1
92
Gmsh 2.8
View1
Default value: -1
View2
Default value: -1
View3
Default value: -1
View4
Default value: -1
View5
Default value: -1
View6
Default value: -1
View7
Default value: -1
View8
Default value: -1
Plugin(Scal2Vec)
Plugin(Scal2Vec) converts the scalar fields into a vectorial field. The new view
NameNewView contains it. If the number of a view is -1, the value of the
corresponding component of the vector field is 0. String options:
NameNewView
Default value: "NewView"
Numeric options:
ViewX
Default value: -1
ViewY
Default value: -1
ViewZ
Default value: -1
Plugin(SimplePartition)
Plugin(SimplePartition) partitions the current mesh into NumSlices slices,
along the X-, Y- or Z-axis depending on the value of Direction (0,1,2). The
plugin creates partition boundaries if CreateBoundaries is set. String options:
Mapping
Numeric options:
NumSlices
Default value: 4
Direction
Default value: 0
CreateBoundaries
Default value: 1
Plugin(Skin)
Plugin(Skin) extracts the boundary (skin) of the current mesh (if FromMesh
= 1), or from the the view View (in which case it creates a new view). If
View < 0 and FromMesh = 0, the plugin is run on the current view.
If Visible is set, the plugin only extracts the skin of visible entities. Numeric
options:
Visible
Default value: 1
FromMesh
Default value: 0
View
Default value: -1
93
Plugin(Smooth)
Plugin(Smooth) averages the values at the nodes of the view View.
If View < 0, the plugin is run on the current view.
Plugin(Smooth) is executed in-place. Numeric options:
View
Default value: -1
Plugin(SphericalRaise)
Plugin(SphericalRaise) transforms the coordinates of the elements in the view
View using the values associated with the TimeStep-th time step.
Instead of elevating the nodes along the X, Y and Z axes as with the
View[View].RaiseX, View[View].RaiseY and View[View].RaiseZ options,
the raise is applied along the radius of a sphere centered at (Xc, Yc, Zc).
To produce a standard radiation pattern, set Offset to minus the radius of
the sphere the original data lives on.
If View < 0, the plugin is run on the current view.
Plugin(SphericalRaise) is executed in-place. Numeric options:
Xc
Default value: 0
Yc
Default value: 0
Zc
Default value: 0
Raise
Default value: 1
Offset
Default value: 0
TimeStep
Default value: 0
View
Default value: -1
Plugin(StreamLines)
Plugin(StreamLines) computes stream lines from the TimeStep-th time step
of a vector view View and optionally interpolates the scalar view OtherView
on the resulting stream lines.
The plugin takes as input a grid defined by the 3 points (X0,Y0,Z0) (origin),
(X1,Y1,Z1) (axis of U) and (X2,Y2,Z2) (axis of V).
The number of points along U and V that are to be transported is set with the
options NumPointsU and NumPointsV. The equation
dX(t)/dt = V(x,y,z)
94
Gmsh 2.8
is then solved with the initial condition X(t=0) chosen as the grid and with
V(x,y,z) interpolated on the vector view.
The time stepping scheme is a RK44 with step size DT and MaxIter maximum number of iterations.
If TimeStep < 0, the plugin tries to compute streamlines of the unsteady flow.
If View < 0, the plugin is run on the current view.
Plugin(StreamLines) creates one new view. This view contains multi-step vector points if OtherView < 0, or single-step scalar lines if OtherView >= 0.
Numeric options:
X0
Default value: 0
Y0
Default value: 0
Z0
Default value: 0
X1
Default value: 1
Y1
Default value: 0
Z1
Default value: 0
X2
Default value: 0
Y2
Default value: 1
Z2
Default value: 0
NumPointsU
Default value: 10
NumPointsV
Default value: 1
DT
MaxIter
TimeStep
Default value: 0
View
Default value: -1
OtherView
Default value: -1
Plugin(Tetrahedralize)
Plugin(Tetrahedralize) tetrahedralizes the points in the view View.
If View < 0, the plugin is run on the current view.
Plugin(Tetrahedralize) creates one new view. Numeric options:
View
95
Default value: -1
Plugin(Transform)
Plugin(Transform) transforms the homogeneous node coordinates (x,y,z,1) of
the elements in the view View by the matrix
[A11 A12 A13 Tx]
[A21 A22 A23 Ty]
[A31 A32 A33 Tz].
If SwapOrientation is set, the orientation of the elements is reversed.
If View < 0, the plugin is run on the current view.
Plugin(Transform) is executed in-place. Numeric options:
A11
Default value: 1
A12
Default value: 0
A13
Default value: 0
A21
Default value: 0
A22
Default value: 1
A23
Default value: 0
A31
Default value: 0
A32
Default value: 0
A33
Default value: 1
Tx
Default value: 0
Ty
Default value: 0
Tz
Default value: 0
SwapOrientation
Default value: 0
View
Default value: -1
Plugin(Triangulate)
Plugin(Triangulate) triangulates the points in the view View, assuming that
all the points belong to a surface that can be projected one-to-one onto a plane.
If View < 0, the plugin is run on the current view.
Plugin(Triangulate) creates one new view. Numeric options:
View
Default value: -1
Plugin(Warp)
Plugin(Warp) transforms the elements in the view View by adding to their
node coordinates the vector field stored in the TimeStep-th time step of the
96
Gmsh 2.8
Default value: 1
TimeStep
Default value: 0
SmoothingAngle
Default value: 180
View
Default value: -1
OtherView
Default value: -1
97
9 File formats
This chapter describes Gmshs native MSH file format, used to store meshes and associated post-processing datasets. The MSH format exists in two flavors: ASCII and binary.
The format has a version number (currently: 2.2) that is independent of Gmshs main
version number.
(Remember that for small post-processing datasets you can also use human-readable
parsed post-processing views, as described in Section 8.1 [Post-processing commands],
page 68. Such parsed views do not require an underlying mesh, and can therefore be
easier to use in some cases.)
98
Gmsh 2.8
number-of-periodic-entities
dimension slave-entity-tag master-entity-tag
number-of-nodes
slave-node-number master-node-number
...
$EndPeriodic
$PhysicalNames
number-of-names
physical-dimension physical-number "physical-name "
...
$EndPhysicalNames
$NodeData
number-of-string-tags
< "string-tag " >
...
number-of-real-tags
< real-tag >
...
number-of-integer-tags
< integer-tag >
...
node-number value ...
...
$EndNodeData
$ElementData
number-of-string-tags
< "string-tag " >
...
number-of-real-tags
< real-tag >
...
number-of-integer-tags
< integer-tag >
...
elm-number value ...
...
$EndElementData
$ElementNodeData
number-of-string-tags
< "string-tag " >
...
number-of-real-tags
< real-tag >
...
number-of-integer-tags
< integer-tag >
...
99
2-node line.
3-node triangle.
4-node quadrangle.
4-node tetrahedron.
8-node hexahedron.
6-node prism.
100
Gmsh 2.8
5-node pyramid.
3-node second order line (2 nodes associated with the vertices and
1 with the edge).
10
9-node second order quadrangle (4 nodes associated with the vertices, 4 with the edges and 1 with the face).
11
10-node second order tetrahedron (4 nodes associated with the vertices and 6 with the edges).
12
27-node second order hexahedron (8 nodes associated with the vertices, 12 with the edges, 6 with the faces and 1 with the volume).
13
14
15
1-node point.
16
8-node second order quadrangle (4 nodes associated with the vertices and 4 with the edges).
17
20-node second order hexahedron (8 nodes associated with the vertices and 12 with the edges).
18
19
20
21
22
23
24
25
26
101
27
28
29
20-node third order tetrahedron (4 nodes associated with the vertices, 12 with the edges, 4 with the faces)
30
35-node fourth order tetrahedron (4 nodes associated with the vertices, 18 with the edges, 12 with the faces, 1 in the volume)
31
56-node fifth order tetrahedron (4 nodes associated with the vertices, 24 with the edges, 24 with the faces, 4 in the volume)
92
64-node third order hexahedron (8 nodes associated with the vertices, 24 with the edges, 24 with the faces, 8 in the volume)
93
102
value
Gmsh 2.8
is a real number giving the value associated with a node or an element. For
NodeData (respectively ElementData) views, there are ncomp values per node
(resp. per element), where ncomp is the number of field components. For
ElementNodeData views, there are ncomp times number-of-nodes-per-elements
values per element.
number-of-element-topologies
is the number of element topologies for which interpolation matrices are provided
elm-topology
is the id tag of a given element topology: 1 for points, 2 for lines, 3 for triangles,
4 for quadrangles, 5 for tetrahedra, 6 for pyramids, 7 for prisms, 8 for hexahedra,
9 for polygons and 10 for polyhedra.
number-of-interpolation-matrices
is the number of interpolation matrices provided for this element topology.
Currently you should provide 2 matrices, i.e., the matrices that specify how
to interpolate the data (they have the same meaning as in Section 8.1 [Postprocessing commands], page 68). The matrices are specified by 2 integers (numrows and num-columns) followed by the values.
Below is a small example (a mesh consisting of two quadrangles with an associated nodal
scalar dataset; the comments are not part of the actual file!):
$MeshFormat
2.2 0 8
$EndMeshFormat
$Nodes
6
1 0.0 0.0 0.0
2 1.0 0.0 0.0
3 1.0 1.0 0.0
4 0.0 1.0 0.0
5 2.0 0.0 0.0
6 2.0 1.0 0.0
$EndNodes
$Elements
2
1 3 2 99 2 1 2 3 4
2 3 2 99 2 2 5 6 3
$EndElements
$NodeData
1
"A scalar view"
1
0.0
3
0
1
6
1 0.0
2 0.1
3 0.2
4 0.0
5 0.2
two elements:
quad #1: type 3, physical 99, elementary 2, nodes 1 2 3 4
quad #2: type 3, physical 99, elementary 2, nodes 2 5 6 3
103
6 0.4
$EndNodeData
104
Gmsh 2.8
nodes-binary
is the list of nodes in binary form, i.e., a array of number-of-nodes * (4 + 3 *
data-size) bytes. For each node, the first 4 bytes contain the node number and
the next (3 * data-size) bytes contain the three floating point coordinates.
Here is a pseudo C code to write nodes-binary:
for(i = 0; i < number_of_nodes; i++){
fwrite(&num_i, sizeof(int), 1, file);
double xyz[3] = {node_i_x, node_i_y, node_i_z};
fwrite(xyz, sizeof(double), 3, file);
}
number-of-elements
has the same meaning as in the ASCII file format.
element-header-binary
is a list of 3 integers in binary form, i.e., an array of (3 * 4) bytes: the first
four bytes contain the type of the elements that follow (same as elm-type in the
ASCII format), the next four contain the number of elements that follow, and
the last four contain the number of tags per element (same as number-of-tags
in the ASCII format).
Here is a pseudo C code to write element-header-binary:
int header[3] = {elm_type, num_elm_follow, num_tags};
fwrite(header, sizeof(int), 3, file);
elements-binary
is a list of elements in binary form, i.e., an array of number of elements that
follow * (4 + number-of-tags * 4 + #node-number-list * 4) bytes. For each
element, the first four bytes contain the element number, the next (number-oftags * 4) contain the tags, and the last (#node-number-list * 4) contain the
node indices.
Here is a pseudo C code to write elements-binary for triangles with the 2 standard tags (the physical and elementary regions):
for(i = 0; i < number_of_triangles; i++){
int data[6] = {num_i, physical, elementary,
node_i_1, node_i_2, node_i_3};
fwrite(data, sizeof(int), 6, file);
}
105
Line:
Line3:
Line4:
0----------1 --> u
0-----2----1
0----2----3----1
Triangle:
Triangle6:
v
^
|
2
|\
| \
|
\
|
\
|
\
0----------1 --> u
2
|\
| \
5
4
|
\
|
\
0-----3----1
Triangle9/10:
2
| \
7
6
|
\
8 (9) 5
|
\
0---3---4---1
Quadrangle:
Quadrangle8:
Quadrangle9:
v
^
|
3-----------2
|
|
|
|
|
|
|
+---- | --> u
|
|
|
|
0-----------1
3-----6-----2
|
|
|
|
7
5
|
|
|
|
0-----4-----1
3-----6-----2
|
|
|
|
7
8
5
|
|
|
|
0-----4-----1
Tetrahedron:
Tetrahedron10:
v
.
,/
/
2
,/|\
,/ | \
,/
.
\
,/
|
\
,/
|
\
0-----------.--------1 --> u
\.
|
,/
\.
|
,/
\.
. ,/
\. |/
3
\.
w
2
,/|\
,/ | \
,6
.
5
,/
8
\
,/
|
\
0--------4--.--------1
\.
|
,/
\.
|
,9
7.
. ,/
\. |/
3
Triangle12/15:
2
| \
9
8
|
\
10 (14) 7
|
\
11 (12) (13) 6
|
\
0---3---4---5---1
106
Gmsh 2.8
Hexahedron:
Hexahedron20:
Hexahedron27:
v
3----------2
|\
^
|\
| \
|
| \
| \
|
| \
|
7------+---6
|
| +-- |-- | -> u
0---+---\--1
|
\ |
\ \ |
\ |
\ \ |
\|
w \|
4----------5
3----13----2
|\
|\
| 15
| 14
9 \
11 \
|
7----19+---6
|
|
|
|
0---+-8----1
|
\ 17
\ 18
10 |
12|
\|
\|
4----16----5
3----13----2
|\
|\
|15
24 | 14
9 \ 20
11 \
|
7----19+---6
|22 | 26 | 23|
0---+-8----1
|
\ 17
25 \ 18
10 | 21
12|
\|
\|
4----16----5
Prism:
Prism15:
Prism18:
w
^
|
3
,/|\
,/ | \
,/
|
\
4------+------5
|
|
|
|
,/|\
|
| ,/ | \ |
|,/
|
\|
,|
|
|\
,/ |
0
| \
u
|
,/ \
|
v
| ,/
\ |
|,/
\|
1-------------2
3
,/|\
12 | 13
,/
|
\
4------14-----5
|
8
|
|
|
|
|
|
|
|
|
|
10
|
11
|
0
|
|
,/ \
|
| ,6
7 |
|,/
\|
1------9------2
3
,/|\
12 | 13
,/
|
\
4------14-----5
|
8
|
|
,/|\
|
| 15 | 16 |
|,/
|
\|
10-----17-----11
|
0
|
|
,/ \
|
| ,6
7 |
|,/
\|
1------9------2
Pyramid:
Pyramid13:
Pyramid14:
4
4
4
,/|\
,/|\
,/|\
,/ .|\
,/ .|\
,/ .|\
,/
| | \
,/
| | \
,/
| | \
,/
. | .
,/
. | .
,/
. | .
,/
| . \
,7
| 12 \
,7
| 12 \
,/
. w |
\
,/
.
|
\
,/
.
|
\
,/
| ^ |
\
,/
9
|
11
,/
9
|
11
0----------.--|-3
.
0--------6-.----3
.
0--------6-.----3
.
\
|
| \
\
\
|
\
\
\
|
\
\
\
.
+----\ - \ -> v 5
.
10
\
5
. 13
10
\
\
|
\
\ \
\
|
\ \
\
|
\ \
\.
\
\
\.
\
\.
\
1----------------2
1--------8-------2
1--------8-------2
\
u
107
108
Gmsh 2.8
number-of-elements
is the number of elements in the mesh.
elm-number
is the number (index) of the n-th element in the mesh; elm-number must be a
postive (non-zero) integer. Note that the elm-numbers do not necessarily have
to form a dense nor an ordered sequence.
elm-type
2-node line.
3-node triangle.
4-node quadrangle.
4-node tetrahedron.
8-node hexahedron.
6-node prism.
5-node pyramid.
3-node second order line (2 nodes associated with the vertices and
1 with the edge).
10
9-node second order quadrangle (4 nodes associated with the vertices, 4 with the edges and 1 with the face).
11
10-node second order tetrahedron (4 nodes associated with the vertices and 6 with the edges).
12
27-node second order hexahedron (8 nodes associated with the vertices, 12 with the edges, 6 with the faces and 1 with the volume).
13
14
15
1-node point.
16
8-node second order quadrangle (4 nodes associated with the vertices and 4 with the edges).
17
20-node second order hexahedron (8 nodes associated with the vertices and 12 with the edges).
18
19
109
is the number of the physical entity to which the element belongs; reg-phys
must be a postive integer, or zero. If reg-phys is equal to zero, the element is
considered not to belong to any physical entity.
reg-elem
is the number of the elementary entity to which the element belongs; reg-elem
must be a postive (non-zero) integer.
number-of-nodes
is the number of nodes for the n-th element. This is redundant, but kept for
backward compatibility.
node-number-list
is the list of the number-of-nodes node numbers of the n-th element. The
ordering of the nodes is given in Section 9.3 [Node ordering], page 104.
110
Gmsh 2.8
111
nb-text2d-chars
nb-text3d-chars
are integers giving the total number of characters in the 2D and 3D strings.
time-step-values
is a list of nb-time-steps double precision numbers giving the value of the time
(or any other variable) for which an evolution was saved.
scalar-point-value
vector-point-value
...
are lists of double precision numbers giving the node coordinates and the values
associated with the nodes of the nb-scalar-points scalar points, nb-vector-points
vector points, . . . , for each of the time-step-values.
For example, vector-triangle-value is defined as:
coord1-node1 coord1-node2 coord1-node3
coord2-node1 coord2-node2 coord2-node3
coord3-node1 coord3-node2 coord3-node3
comp1-node1-time1 comp2-node1-time1 comp3-node1-time1
comp1-node2-time1 comp2-node2-time1 comp3-node2-time1
comp1-node3-time1 comp2-node3-time1 comp3-node3-time1
comp1-node1-time2 comp2-node1-time2 comp3-node1-time2
comp1-node2-time2 comp2-node2-time2 comp3-node2-time2
comp1-node3-time2 comp2-node3-time2 comp3-node3-time2
...
The ordering of the nodes is given in Section 9.3 [Node ordering], page 104.
text2d
text2d-chars
is a list of nb-text2d-chars characters. Substrings are separated with the null
\0 character.
text3d
112
Gmsh 2.8
where coord1, coord2 and coord3 give the XYZ coordinates of the string in
model (real world) coordinates, index gives the starting index of the string in
text3d-chars, and style has the same meaning as in text2d.
text3d-chars
is a list of nb-text3d-chars chars. Substrings are separated with the null \0
character.
113
Appendix A: Tutorial
115
Appendix A Tutorial
The following examples introduce new features gradually, starting with t1.geo. The files
corresponding to these examples are available in the tutorial directory of the Gmsh
distribution.
To learn how to run Gmsh on your computer, see Chapter 3 [Running Gmsh on
your system], page 11. Screencasts that show how to use the GUI are available on
http://geuz.org/gmsh/screencasts/.
A.1 t1.geo
/*********************************************************************
*
* Gmsh tutorial 1
*
* Variables, elementary entities (points, lines, surfaces), physical
* entities (points, lines, surfaces)
*
*********************************************************************/
// The simplest construction in Gmshs scripting language is the
// affectation. The following command defines a new variable lc:
lc = 1e-2;
//
//
//
//
//
//
//
//
//
116
Gmsh 2.8
Line(1)
Line(2)
Line(3)
Line(4)
//
//
//
//
//
=
=
=
=
{1,2}
{3,2}
{3,4}
{4,1}
;
;
;
;
// We can for example group the points 1 and 2 into the physical
// entity 1:
Physical Point(1) = {1,2} ;
// Consequently, two punctual elements will be saved in the output
// mesh file, both with the region number 1. The mechanism is
// identical for line or surface elements:
MyLine = 99;
Physical Line(MyLine) = {1,2,4} ;
Physical Surface("My fancy surface label") = {6} ;
//
//
//
//
//
All the line elements created during the meshing of lines 1, 2 and
4 will be saved in the output mesh file with the region number 99;
and all the triangular elements resulting from the discretization
of surface 6 will be given an automatic region number (100,
associated with the label "My fancy surface label").
Appendix A: Tutorial
A.2 t2.geo
/*********************************************************************
*
* Gmsh tutorial 2
*
* Includes, geometrical transformations, extruded geometries,
* elementary entities (volumes), physical entities (volumes)
*
*********************************************************************/
// We first include the previous tutorial file, in order to use it as
// a basis for this one:
Include "t1.geo";
// We can then add new points and lines in the same way as we did in
// t1.geo:
Point(5) = {0, .4, 0, lc};
Line(5) = {4, 5};
// But Gmsh also provides tools to tranform (translate, rotate, etc.)
// elementary entities or copies of elementary entities. For example,
// the point 3 can be moved by 0.05 units to the left with:
Translate {-0.05, 0, 0} { Point{3}; }
// The resulting point can also be duplicated and translated by 0.1
// along the y axis:
Translate {0, 0.1, 0} { Duplicata{ Point{3}; } }
//
//
//
//
//
117
118
//
//
//
//
//
//
//
Gmsh 2.8
Point(100) = {0., 0.3, 0.13, lc}; Point(101) = {0.08, 0.3, 0.1, lc};
Point(102) = {0.08, 0.4, 0.1, lc}; Point(103) = {0., 0.4, 0.13, lc};
Line(110)
Line(112)
Line(114)
Line(116)
Line
Line
Line
Line
Line
=
=
=
=
{4, 100};
{6, 102};
{103, 100};
{101, 102};
Loop(118)
Loop(120)
Loop(122)
Loop(124)
Loop(126)
=
=
=
=
=
{115,
{111,
{112,
{114,
{115,
Line(111)
Line(113)
Line(115)
Line(117)
=
=
=
=
{3, 101};
{5, 103};
{100, 101};
{102, 103};
-111, 3, 110};
116, -112, -7};
117, -113, -8};
-110, 5, 113};
116, 117, 114};
Plane
Plane
Plane
Plane
Plane
Surface(119)
Surface(121)
Surface(123)
Surface(125)
Surface(127)
=
=
=
=
=
{118};
{120};
{122};
{124};
{126};
Appendix A: Tutorial
// To save all the tetrahedra discretizing the volumes 129 and 130
// with a common region number, we finally define a physical
// volume:
Physical Volume (1) = {129,130};
A.3 t3.geo
/*********************************************************************
*
* Gmsh tutorial 3
*
* Extruded meshes, parameters, options
*
*********************************************************************/
// Again, we start by including the first tutorial:
Include "t1.geo";
//
//
//
//
//
//
119
120
Gmsh 2.8
h = 0.1;
Extrude {0,0,h} {
Surface{6}; Layers{ {8,2}, {0.5,1} };
}
//
//
//
//
//
// We can then define a new physical volume to save all the tetrahedra
// with a common region number (101):
Physical Volume(101) = {1, 2, out[1]};
//
//
//
//
Let us now change some options... Since all interactive options are
accessible in Gmshs scripting language, we can for example define
a global characteristic length factor or redefine some colors
directly in the input file:
Mesh.CharacteristicLengthFactor = 4;
Appendix A: Tutorial
General.Color.Text = White;
Geometry.Color.Points = Orange;
Mesh.Color.Points = {255,0,0};
//
//
//
//
//
//
Geometry.Color.Surfaces = Geometry.Color.Points;
//
//
//
//
//
//
You can use the Help->Current options menu to see the current
values of all options. To save all the options in a file, use
File->Save as->Gmsh options. To associate the current options
with the current file use File->Save Options->For Current
File. To save the current options for all future Gmsh sessions use
File->Save Options->As default.
A.4 t4.geo
/*********************************************************************
*
* Gmsh tutorial 4
*
* Built-in functions, holes, strings, mesh color
*
*********************************************************************/
// As usual, we start by defining some variables:
cm = 1e-02;
e1 = 4.5 * cm; e2 = 6 * cm / 2; e3 = 5 * cm / 2;
h1 = 5 * cm; h2 = 10 * cm; h3 = 5 * cm; h4 = 2 * cm; h5 = 4.5 * cm;
R1 = 1 * cm; R2 = 1.5 * cm; r = 1 * cm;
Lc1 = 0.01;
Lc2 = 0.003;
// We can use all the usual mathematical functions (note the
// capitalized first letters), plus some useful functions like
// Hypot(a, b) := Sqrt(a^2 + b^2):
ccos = (-h5*R1 + e2 * Hypot(h5, Hypot(e2, R1))) / (h5^2 + e2^2);
ssin = Sqrt(1 - ccos^2);
// Then we define some points and some lines using these variables:
121
122
Gmsh 2.8
Point(1) =
Point(3) =
Point(5) =
Point(7) =
Point(9) =
Point(11)=
Point(13)=
{-e1-e2,
{-e3-r ,
{-e3
,
{ e3
,
{ e3+r ,
{ e1+e2,
{ e2
,
0
,
h1
,
h1+r ,
h1+h2,
h1+r ,
h1
,
0
,
0,
0,
0,
0,
0,
0,
0,
Lc1};
Lc2};
Lc2};
Lc1};
Lc2};
Lc1};
Lc1};
Point(14)=
Point(15)=
Point(16)=
Point(17)=
{ R1 / ssin, h5+R1*ccos,
{ 0
, h5
,
{-R1 / ssin, h5+R1*ccos,
{-e2
, 0.0
,
Point(2) =
Point(4) =
Point(6) =
Point(8) =
Point(10)=
Point(12)=
0,
0,
0,
0,
{-e1-e2,
{-e3-r ,
{-e3
,
{ e3
,
{ e3+r ,
{ e1+e2,
h1
,
h1+r ,
h1+h2,
h1+r ,
h1
,
0
,
0,
0,
0,
0,
0,
0,
Lc1};
Lc2};
Lc1};
Lc2};
Lc2};
Lc1};
Lc2};
Lc2};
Lc2};
Lc1};
0, Lc2};
= {1 , 17};
= {17, 16};
Circle(3) = {14,15,16};
// Note that, in Gmsh, circle arcs should always be smaller than
// Pi. We can then define additional lines and circles, as well as a
// new surface:
Line(4) =
Line(7) =
Line(10) =
Line(13) =
Circle(16)
Circle(18)
Line(20) =
{14,13}; Line(5)
= {13,12}; Line(6) =
{11,10}; Circle(8) = {8,9,10}; Line(9) =
{7,6};
Line(11) = {6,5};
Circle(12)
{3,2};
Line(14) = {2,1};
Line(15) =
= {21,20,24}; Circle(17) = {24,20,19};
= {18,23,25}; Circle(19) = {25,23,22};
{21,22};
{12,11};
{8,7};
= {3,4,5};
{18,19};
Appendix A: Tutorial
Grey50{ Surface{ 22 }; }
Purple{ Surface{ 24 }; }
Red{ Line{ 1:14 }; }
Yellow{ Line{ 15:20 }; }
A.5 t5.geo
/*********************************************************************
*
* Gmsh tutorial 5
*
* Characteristic lengths, arrays of variables, functions, loops
*
*********************************************************************/
// We start by defining some target mesh sizes:
lcar1 = .1;
lcar2 = .0005;
lcar3 = .055;
123
124
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
Gmsh 2.8
Loop(22)
Loop(24)
Loop(26)
Loop(28)
Loop(30)
Loop(32)
Loop(34)
Loop(36)
Loop(38)
=
=
=
=
=
=
=
=
=
Point(2) = {0.5,0.5,0,lcar1};
Point(4) = {0,0,0.5,lcar1};
Point(6) = {0.5,0,0,lcar1};
Point(8) = {0,1,0,lcar1};
Point(10) = {0,0,1,lcar1};
Point(12) = {1,1,1,lcar1};
Point(14) = {1,0,0,lcar1};
Line(2) = {9,12};
Line(5) = {9,14};
Line(8) = {11,10};
Line(11) = {4,5};
Line(14) = {2,1};
Line(17) = {7,2};
Line(20) = {7,8};
Line(3) = {12,11};
Line(6) = {14,13};
Line(9) = {10,13};
Line(12) = {5,6};
Line(15) = {1,3};
Line(18) = {3,4};
Line(21) = {6,14};
{-11,-19,-15,-18};
Plane Surface(23) =
{16,17,14,15};
Plane Surface(25) =
{-17,20,1,5,-21,13}; Plane Surface(27) =
{-4,-1,-2,-3};
Plane Surface(29) =
{-7,2,-5,-6};
Plane Surface(31) =
{6,-9,10,11,12,21}; Plane Surface(33) =
{7,3,8,9};
Plane Surface(35) =
{-10,18,-16,-20,4,-8}; Plane Surface(37)
{-14,-13,-12,19};
Plane Surface(39) =
{22};
{24};
{26};
{28};
{30};
{32};
{34};
= {36};
{38};
Appendix A: Tutorial
125
p1
p2
p3
p4
p5
p6
p7
=
=
=
=
=
=
=
newp;
newp;
newp;
newp;
newp;
newp;
newp;
Point(p1)
Point(p2)
Point(p3)
Point(p4)
Point(p5)
Point(p6)
Point(p7)
=
=
=
=
=
=
=
{x, y, z, lcar3}
{x+r,y, z, lcar3}
{x, y+r,z, lcar3}
{x, y, z+r,lcar3}
{x-r,y, z, lcar3}
{x, y-r,z, lcar3}
{x, y, z-r,lcar3}
c1 = newreg; Circle(c1) =
c3 = newreg; Circle(c3) =
c5 = newreg; Circle(c5) =
c7 = newreg; Circle(c7) =
c9 = newreg; Circle(c9) =
c11 = newreg; Circle(c11)
;
;
;
;
;
;
;
=
=
=
=
=
=
=
=
newreg;
newreg;
newreg;
newreg;
newreg;
newreg;
newreg;
newreg;
Line
Line
Line
Line
Line
Line
Line
Line
Loop(l1)
Loop(l2)
Loop(l3)
Loop(l4)
Loop(l5)
Loop(l6)
Loop(l7)
Loop(l8)
=
=
=
=
=
=
=
=
{c5,c10,c4};
Ruled
{c9,-c5,c1};
Ruled
{c12,-c8,-c1}; Ruled
{c8,-c4,c11}; Ruled
{-c10,c6,c3}; Ruled
{-c11,-c3,c7}; Ruled
{-c2,-c7,-c12};Ruled
{-c6,-c9,c2}; Ruled
Surface(newreg)
Surface(newreg)
Surface(newreg)
Surface(newreg)
Surface(newreg)
Surface(newreg)
Surface(newreg)
Surface(newreg)
=
=
=
=
=
=
=
=
{l1};
{l2};
{l3};
{l4};
{l5};
{l6};
{l7};
{l8};
126
Gmsh 2.8
thehole = newreg ;
Volume(thehole) = theloops[t] ;
Return
// We can use a For loop to generate five holes in the cube:
x = 0 ; y = 0.75 ; z = 0 ; r = 0.09 ;
For t In {1:5}
x += 0.166 ;
z += 0.166 ;
// We call the CheeseHole function:
Call CheeseHole ;
// We define a physical volume for each hole:
Physical Volume (t) = thehole ;
//
//
//
//
Volume(186) = {theloops[]} ;
Appendix A: Tutorial
A.6 t6.geo
/*********************************************************************
*
* Gmsh tutorial 6
*
* Transfinite meshes
*
*********************************************************************/
// Lets use the geometry from the first tutorial as a basis for this
// one
Include "t1.geo";
// Delete the left line and create replace it with 3 new ones
Delete{ Surface{6}; Line{4}; }
p1 = newp; Point(p1) = {-0.05, 0.05, 0, lc};
p2 = newp; Point(p2) = {-0.05, 0.1, 0, lc};
l1 = newl; Line(l1) = {1, p1};
l2 = newl; Line(l2) = {p1, p2};
l3 = newl; Line(l3) = {p2, 4};
// Create surface
Line Loop(1) = {2, -1, l1, l2, l3, -3};
Plane Surface(1) = {1};
// Put 20 points with a refinement toward the extremities on curve 2
Transfinite Line{2} = 20 Using Bump 0.05;
// Put 20 points total on combination of curves l1, l2 and l3 (beware
// that the points p1 and p2 are shared by the curves, so we do not
// create 6 + 6 + 10 = 22 points, but 20!)
Transfinite Line{l1} = 6;
Transfinite Line{l2} = 6;
Transfinite Line{l3} = 10;
// Put 30 points following a geometric progression on curve 1
// (reversed) and on curve 3
Transfinite Line{-1,3} = 30 Using Progression 1.2;
127
128
Gmsh 2.8
(Note that the list on the right hand side refers to points, not
curves. When the surface has only 3 or 4 points on its boundary the
list can be omitted. The way triangles are generated can be
controlled by appending "Left", "Right" or "Alternate" after the
list.)
A.7 t7.geo
/*********************************************************************
*
* Gmsh tutorial 7
*
* Background mesh
*
*********************************************************************/
// Characteristic lengths can be specified very accuractely by
// providing a background mesh, i.e., a post-processing view that
// contains the target mesh sizes.
// Merge the first tutorial
Merge "t1.geo";
// Merge a post-processing view containing the target mesh sizes
Merge "bgmesh.pos";
// Apply the view as the current background mesh
Background Mesh View[0];
A.8 t8.geo
/*********************************************************************
*
* Gmsh tutorial 8
*
Appendix A: Tutorial
"t1.geo";
"view1.pos";
"view1.pos";
"view4.pos";
129
130
Gmsh 2.8
View[v2].Height = 130;
View[v3].Visible = 0;
//
//
//
//
t = 0;
For num In {1:3}
View[v0].TimeStep
View[v1].TimeStep
View[v2].TimeStep
View[v3].TimeStep
=
=
=
=
t;
t;
t;
t;
Appendix A: Tutorial
131
132
Gmsh 2.8
// with ffmpeg:
/*
System "ffmpeg -hq -r 5 -b 800 -vcodec mpeg1video
-i t8-%02d.jpg t8.mpg"
System "ffmpeg -hq -r 5 -b 800 -i t8-%02d.jpg t8.asf"
*/
EndIf
EndFor
A.9 t9.geo
/*********************************************************************
*
* Gmsh tutorial 9
*
* Post-processing plugins (levelsets, sections, annotations)
*
*********************************************************************/
//
//
//
//
//
//
//
//
Appendix A: Tutorial
133
Plugin(CutPlane).D = 0 ;
Plugin(CutPlane).View = 0 ;
Plugin(CutPlane).Run ;
//
//
//
//
= 1;
= 1;
= 2;
= 2;
A.10 t10.geo
/*********************************************************************
*
* Gmsh tutorial 10
*
* General mesh size fields
*
*********************************************************************/
// In addition to specifying target mesh sizes at the points of the
// geometry (see t1) or using a background mesh (see t7), you can use
// general mesh size "Fields".
134
Gmsh 2.8
Appendix A: Tutorial
Many other types of fields are available: see the reference manual
for a complete list. You can also create fields directly in the
graphical user interface by selecting Define->Fields in the Mesh
module.
// Finally, lets use the minimum of all the fields as the background
// mesh field
Field[7] = Min;
Field[7].FieldsList = {2, 3, 5, 6};
Background Field = 7;
// Dont extend the elements sizes from the boundary inside the domain
Mesh.CharacteristicLengthExtendFromBoundary = 0;
A.11 t11.geo
/*********************************************************************
*
* Gmsh tutorial 11
*
* Unstructured quadrangular meshes
*
*********************************************************************/
// We have seen in tutorials t3 and t6 that extruded and transfinite
// meshes can be "recombined" into quads/prisms/hexahedra by using the
135
136
Gmsh 2.8
//
//
//
//
For even better quadrilateral meshes, you can try the experimental
"Delaunay for quads" (DelQuad) meshing algorithm: DelQuad is a
triangulation algorithm that enables to create right triangles
almost everywhere. Uncomment the following line to try DelQuad:
A.12 t12.geo
/*********************************************************************
*
* Gmsh tutorial 12
*
* Cross-patch meshing with compounds
*
Appendix A: Tutorial
137
*********************************************************************/
//
//
//
//
lc = 0.2;
Point(1)
Point(3)
Point(5)
Point(7)
Point(9)
=
=
=
=
=
{0, 0, 0, lc};
{1, 1, 0.5, lc};
{0.3, 0.2, 0, lc};
{0, 0.02, 0.02, lc};
{1, 0.32, 0.02, lc};
Point(2)
Point(4)
Point(6)
Point(8)
=
=
=
=
{1,
{0,
{0,
{1,
0, 0, lc};
1, 0.4, lc};
0.01, 0.01, lc};
0.05, 0.02, lc};
138
Gmsh 2.8
//
Methods in Biomedical Engineering", 26 (7), pp. 876-889, 2010.
//
// * E. Marchandise, C. Carton de Wiart, W. G. Vos, C. Geuzaine and
//
J.-F. Remacle, "High Quality Surface Remeshing Using Harmonic
//
Maps. Part II: Surfaces with High Genus and of Large Aspect
//
Ratio", International Journal for Numerical Methods in
//
Engineering, 86 (11), pp. 1303-1321, 2011.
A.13 t13.geo
/*********************************************************************
*
* Gmsh tutorial 13
*
* Remeshing STL with compounds
*
*********************************************************************/
// Since compound geometrical compute a new parametrization, one can
// also use them to remesh STL files, even if in this case theres
// usually only a single elementary geometrical entity per compound.
// Lets merge the mesh that we would like to remesh. This mesh was
// reclassified ("colored") from an initial STL triangulation using
// the "Reclassify 2D" tool in Gmsh, so that we could split it along
// sharp geometrical features.
Merge "t13_data.msh";
// Since the original mesh is a bit coarse, we refine it once
RefineMesh;
// Create the topology of the discrete model
CreateTopology;
// We can now define a compound line (resp. surface) for each discrete
// line (resp. surface) in the model
ll[] = Line "*";
For j In {0 : #ll[]-1}
Compound Line(newl) = ll[j];
EndFor
ss[] = Surface "*";
s = news;
For i In {0 : #ss[]-1}
Compound Surface(s+i) = ss[i];
EndFor
// And we can create the volume based on the new compound entities
Appendix A: Tutorial
139
= 2.5;
= 2.5;
Mesh.RemeshAlgorithm = 1; // (0) no split (1) automatic (2) automatic only with metis
Mesh.RemeshParametrization = 7; // (0) harmonic (1) conformal spectral (7) conformal finite
Geometry.HideCompounds = 0; // dont hide the compound entities
Mesh.Algorithm = 6; // Frontal
A.14 t14.geo
/*********************************************************************
*
* Gmsh tutorial 14
*
* Homology and cohomology computation
*
*********************************************************************/
//
//
//
//
140
Gmsh 2.8
the model
{36};
{44};
{52};
{60};
Appendix A: Tutorial
141
A.15 t15.geo
/*********************************************************************
*
* Gmsh tutorial 15
*
* Embedded points, lines and surfaces
*
*********************************************************************/
// We start one again by including the first tutorial:
Include "t1.geo";
// We define a new point
Point(5) = {0.02, 0.02, 0, lc/10};
// One can force this point to be included ("embedded") in the 2D mesh, using
// the "Point In Surface" command:
Point{5} In Surface{6};
// In the same way, one can force a curve to be embedded in the 2D mesh using
// the "Line in Surface" command:
Point(6) = {0.02, 0.12, 0, lc/5};
Point(7) = {0.04, 0.18, 0, lc/5};
Line(5) = {6, 7};
Line{5} In Surface{6};
// Finally, one can also embed a surface in a volume using the "Surface In
// Volume" command:
Extrude {0, 0, 0.1}{ Surface {6}; }
p = newp;
Point(p) =
Point(p+1)
Point(p+2)
Point(p+3)
142
l = newl;
Line(l) = {p, p+1};
Line(l+1) = {p+1, p+2};
Line(l+2) = {p+2, p+3};
Line(l+3) = {p+3, p};
ll = newll;
Line Loop(ll) = {l:l+3};
s = news;
Plane Surface(s) = {ll};
Surface{s} In Volume{1};
Gmsh 2.8
Appendix B: Options
143
Appendix B Options
This appendix lists all the available options. Gmshs default behavior is to save some of these
options in a per-user session resource file (cf. Saved in: General.SessionFileName in
the lists below) every time Gmsh is shut down. This permits for example to automatically
remember the size and location of the windows or which fonts to use. A second set of
options can be saved (automatically or manually with the File->Save Options->As Default
menu) in a per-user option file (cf. Saved in: General.OptionsFileName in the lists
below), automatically loaded by Gmsh every time it starts up. Finally, other options are
only saved to disk manually, either by explicitely saving an option file with File->Save As,
or when saving per-model options with File->Save Options->For Current File (cf. Saved
in: - in the lists below).
To reset all options to their default values, use the Restore default options button
in Tools->Options->General->Advanced, or erase the General.SessionFileName and
General.OptionsFileName files by hand.
144
Gmsh 2.8
General.BackgroundImageFileName
Background image file in JPEG, PNG or PDF format
Default value: ""
Saved in: General.OptionsFileName
General.DefaultFileName
Default project file name
Default value: "untitled.geo"
Saved in: General.OptionsFileName
General.Display
X server to use (only for Unix versions)
Default value: ""
Saved in: General.ErrorFileName
File into which the log is saved if a fatal error occurs
Default value: ".gmsh-errors"
Saved in: General.OptionsFileName
General.FileName
Current project file name (read-only)
Default value: ""
Saved in: General.FltkTheme
FLTK user interface theme (try e.g. plastic or gtk+)
Default value: ""
Saved in: General.OptionsFileName
General.GraphicsFont
Font used in the graphic window
Default value: "Helvetica"
Saved in: General.OptionsFileName
General.GraphicsFontEngine
Set graphics font engine (Native, Cairo)
Default value: "Native"
Saved in: General.OptionsFileName
General.GraphicsFontTitle
Font used in the graphic window for titles
Default value: "Helvetica"
Saved in: General.OptionsFileName
General.OptionsFileName
Option file created with Tools->Options->Save; automatically read on startup
Default value: ".gmsh-options"
Saved in: General.SessionFileName
Appendix B: Options
145
General.RecentFile0
Most recent opened file
Default value: "untitled.geo"
Saved in: General.SessionFileName
General.RecentFile1
2nd most recent opened file
Default value: "untitled.geo"
Saved in: General.SessionFileName
General.RecentFile2
3rd most recent opened file
Default value: "untitled.geo"
Saved in: General.SessionFileName
General.RecentFile3
4th most recent opened file
Default value: "untitled.geo"
Saved in: General.SessionFileName
General.RecentFile4
5th most recent opened file
Default value: "untitled.geo"
Saved in: General.SessionFileName
General.SessionFileName
Option file into which session specific information is saved; automatically read
on startup
Default value: ".gmshrc"
Saved in: General.TextEditor
System command to launch a text editor
Default value: "open -t %s"
Saved in: General.OptionsFileName
General.TmpFileName
Temporary file used by the geometry module
Default value: ".gmsh-tmp"
Saved in: General.SessionFileName
General.WatchFilePattern
Pattern of files to merge as they become available
Default value: ""
Saved in: General.AlphaBlending
Enable alpha blending (transparency) in post-processing views
Default value: 1
Saved in: General.OptionsFileName
146
Gmsh 2.8
General.Antialiasing
Use multisample antialiasing (will slow down rendering)
Default value: 0
Saved in: General.OptionsFileName
General.ArrowHeadRadius
Relative radius of arrow head
Default value: 0.12
Saved in: General.OptionsFileName
General.ArrowStemLength
Relative length of arrow stem
Default value: 0.56
Saved in: General.OptionsFileName
General.ArrowStemRadius
Relative radius of arrow stem
Default value: 0.02
Saved in: General.OptionsFileName
General.Axes
Axes (0=none, 1=simple axes, 2=box, 3=full grid, 4=open grid, 5=ruler)
Default value: 0
Saved in: General.OptionsFileName
General.AxesMikado
Mikado axes style
Default value: 0
Saved in: General.OptionsFileName
General.AxesAutoPosition
Position the axes automatically
Default value: 1
Saved in: General.OptionsFileName
General.AxesForceValue
Force values on axes (otherwise use natural coordinates)
Default value: 0
Saved in: General.OptionsFileName
General.AxesMaxX
Maximum X-axis coordinate
Default value: 1
Saved in: General.OptionsFileName
General.AxesMaxY
Maximum Y-axis coordinate
Default value: 1
Saved in: General.OptionsFileName
Appendix B: Options
General.AxesMaxZ
Maximum Z-axis coordinate
Default value: 1
Saved in: General.OptionsFileName
General.AxesMinX
Minimum X-axis coordinate
Default value: 0
Saved in: General.OptionsFileName
General.AxesMinY
Minimum Y-axis coordinate
Default value: 0
Saved in: General.OptionsFileName
General.AxesMinZ
Minimum Z-axis coordinate
Default value: 0
Saved in: General.OptionsFileName
General.AxesTicsX
Number of tics on the X-axis
Default value: 5
Saved in: General.OptionsFileName
General.AxesTicsY
Number of tics on the Y-axis
Default value: 5
Saved in: General.OptionsFileName
General.AxesTicsZ
Number of tics on the Z-axis
Default value: 5
Saved in: General.OptionsFileName
General.AxesValueMaxX
Maximum X-axis forced value
Default value: 1
Saved in: General.OptionsFileName
General.AxesValueMaxY
Maximum Y-axis forced value
Default value: 1
Saved in: General.OptionsFileName
General.AxesValueMaxZ
Maximum Z-axis forced value
Default value: 1
Saved in: General.OptionsFileName
147
148
Gmsh 2.8
General.AxesValueMinX
Minimum X-axis forced value
Default value: 0
Saved in: General.OptionsFileName
General.AxesValueMinY
Minimum Y-axis forced value
Default value: 0
Saved in: General.OptionsFileName
General.AxesValueMinZ
Minimum Z-axis forced value
Default value: 0
Saved in: General.OptionsFileName
General.BackgroundGradient
Draw background gradient (0=none, 1=vertical, 2=horizontal, 3=radial)
Default value: 1
Saved in: General.OptionsFileName
General.BackgroundImage3D
Create background image in the 3D model (units = model units) or as 2D
background (units = pixels)
Default value: 0
Saved in: General.OptionsFileName
General.BackgroundImagePage
Page to render in the background image (for multi-page PDFs)
Default value: 0
Saved in: General.OptionsFileName
General.BackgroundImagePositionX
X position of background image (for 2D background: < 0: measure from right
window edge; >= 1e5: centered)
Default value: 0
Saved in: General.OptionsFileName
General.BackgroundImagePositionY
Y position of background image (for 2D background: < 0: measure from bottom
window edge; >= 1e5: centered)
Default value: 0
Saved in: General.OptionsFileName
General.BackgroundImageWidth
Width of background image (0: actual width if height = 0, natural scaling if
not; -1: graphic window width)
Default value: -1
Saved in: General.OptionsFileName
General.BackgroundImageHeight
Height of background image (0: actual height if width = 0, natural scaling if
not; -1: graphic window height)
Appendix B: Options
149
Default value: -1
Saved in: General.OptionsFileName
General.BoundingBoxSize
Overall bounding box size (read-only)
Default value: 1
Saved in: General.OptionsFileName
General.Camera
Enable camera view mode
Default value: 0
Saved in: General.OptionsFileName
General.CameraAperture
Camera aperture in degrees
Default value: 40
Saved in: General.OptionsFileName
General.CameraEyeSeparationRatio
Eye separation ratio in % for stereo rendering
Default value: 1.5
Saved in: General.OptionsFileName
General.CameraFocalLengthRatio
Camera Focal length ratio
Default value: 1
Saved in: General.OptionsFileName
General.Clip0A
First coefficient in equation for clipping plane 0 (A in AX+BY+CZ+D=0)
Default value: 1
Saved in: General.Clip0B
Second coefficient in equation for clipping plane 0 (B in AX+BY+CZ+D=0)
Default value: 0
Saved in: General.Clip0C
Third coefficient in equation for clipping plane 0 (C in AX+BY+CZ+D=0)
Default value: 0
Saved in: General.Clip0D
Fourth coefficient in equation for clipping plane 0 (D in AX+BY+CZ+D=0)
Default value: 0
Saved in: General.Clip1A
First coefficient in equation for clipping plane 1
Default value: 0
Saved in: -
150
General.Clip1B
Second coefficient in equation for clipping plane 1
Default value: 1
Saved in: General.Clip1C
Third coefficient in equation for clipping plane 1
Default value: 0
Saved in: General.Clip1D
Fourth coefficient in equation for clipping plane 1
Default value: 0
Saved in: General.Clip2A
First coefficient in equation for clipping plane 2
Default value: 0
Saved in: General.Clip2B
Second coefficient in equation for clipping plane 2
Default value: 0
Saved in: General.Clip2C
Third coefficient in equation for clipping plane 2
Default value: 1
Saved in: General.Clip2D
Fourth coefficient in equation for clipping plane 2
Default value: 0
Saved in: General.Clip3A
First coefficient in equation for clipping plane 3
Default value: -1
Saved in: General.Clip3B
Second coefficient in equation for clipping plane 3
Default value: 0
Saved in: General.Clip3C
Third coefficient in equation for clipping plane 3
Default value: 0
Saved in: -
Gmsh 2.8
Appendix B: Options
151
General.Clip3D
Fourth coefficient in equation for clipping plane 3
Default value: 1
Saved in: General.Clip4A
First coefficient in equation for clipping plane 4
Default value: 0
Saved in: General.Clip4B
Second coefficient in equation for clipping plane 4
Default value: -1
Saved in: General.Clip4C
Third coefficient in equation for clipping plane 4
Default value: 0
Saved in: General.Clip4D
Fourth coefficient in equation for clipping plane 4
Default value: 1
Saved in: General.Clip5A
First coefficient in equation for clipping plane 5
Default value: 0
Saved in: General.Clip5B
Second coefficient in equation for clipping plane 5
Default value: 0
Saved in: General.Clip5C
Third coefficient in equation for clipping plane 5
Default value: -1
Saved in: General.Clip5D
Fourth coefficient in equation for clipping plane 5
Default value: 1
Saved in: General.ClipFactor
Near and far clipping plane distance factor (decrease value for better z-buffer
resolution)
Default value: 5
Saved in: -
152
Gmsh 2.8
General.ClipOnlyDrawIntersectingVolume
Only draw layer of elements that intersect the clipping plane
Default value: 0
Saved in: General.OptionsFileName
General.ClipOnlyVolume
Only clip volume elements
Default value: 0
Saved in: General.OptionsFileName
General.ClipPositionX
Horizontal position (in pixels) of the upper left corner of the clipping planes
window
Default value: 650
Saved in: General.SessionFileName
General.ClipPositionY
Vertical position (in pixels) of the upper left corner of the clipping planes window
Default value: 150
Saved in: General.SessionFileName
General.ClipWholeElements
Clip whole elements
Default value: 0
Saved in: General.OptionsFileName
General.ColorScheme
Default color scheme (0=dark, 1=light or 2=grayscale)
Default value: 1
Saved in: General.OptionsFileName
General.ConfirmOverwrite
Ask confirmation before overwriting files?
Default value: 1
Saved in: General.OptionsFileName
General.ContextPositionX
Horizontal position (in pixels) of the upper left corner of the contextual windows
Default value: 650
Saved in: General.SessionFileName
General.ContextPositionY
Vertical position (in pixels) of the upper left corner of the contextual windows
Default value: 150
Saved in: General.SessionFileName
General.DetachedMenu
Should the menu window be detached from the graphic window?
Default value: 0
Saved in: General.SessionFileName
Appendix B: Options
153
General.DisplayBorderFactor
Border factor for model display (0: model fits window size exactly)
Default value: 0.2
Saved in: General.OptionsFileName
General.DoubleBuffer
Use a double buffered graphic window (on Unix, should be set to 0 when working
on a remote host without GLX)
Default value: 1
Saved in: General.OptionsFileName
General.DrawBoundingBoxes
Draw bounding boxes
Default value: 0
Saved in: General.OptionsFileName
General.ExpertMode
Enable expert mode (to disable all the messages meant for inexperienced users)
Default value: 0
Saved in: General.OptionsFileName
General.ExtraPositionX
Horizontal position (in pixels) of the upper left corner of the generic extra
window
Default value: 650
Saved in: General.SessionFileName
General.ExtraPositionY
Vertical position (in pixels) of the upper left corner of the generic extra window
Default value: 350
Saved in: General.SessionFileName
General.ExtraHeight
Height (in pixels) of the generic extra window
Default value: 100
Saved in: General.SessionFileName
General.ExtraWidth
Width (in pixels) of the generic extra window
Default value: 100
Saved in: General.SessionFileName
General.FastRedraw
Draw simplified model while rotating, panning and zooming
Default value: 0
Saved in: General.OptionsFileName
General.FieldPositionX
Horizontal position (in pixels) of the upper left corner of the field window
Default value: 650
Saved in: General.SessionFileName
154
Gmsh 2.8
General.FieldPositionY
Vertical position (in pixels) of the upper left corner of the field window
Default value: 550
Saved in: General.SessionFileName
General.FieldHeight
Height (in pixels) of the field window
Default value: 320
Saved in: General.SessionFileName
General.FieldWidth
Width (in pixels) of the field window
Default value: 420
Saved in: General.SessionFileName
General.FileChooserPositionX
Horizontal position (in pixels) of the upper left corner of the file chooser windows
Default value: 200
Saved in: General.SessionFileName
General.FileChooserPositionY
Vertical position (in pixels) of the upper left corner of the file chooser windows
Default value: 200
Saved in: General.SessionFileName
General.FontSize
Size of the font in the user interface (-1=automatic)
Default value: -1
Saved in: General.OptionsFileName
General.GraphicsFontSize
Size of the font in the graphic window
Default value: 15
Saved in: General.OptionsFileName
General.GraphicsFontSizeTitle
Size of the font in the graphic window for titles
Default value: 18
Saved in: General.OptionsFileName
General.GraphicsHeight
Height (in pixels) of the graphic window
Default value: 600
Saved in: General.SessionFileName
General.GraphicsPositionX
Horizontal position (in pixels) of the upper left corner of the graphic window
Default value: 50
Saved in: General.SessionFileName
Appendix B: Options
155
General.GraphicsPositionY
Vertical position (in pixels) of the upper left corner of the graphic window
Default value: 50
Saved in: General.SessionFileName
General.GraphicsWidth
Width (in pixels) of the graphic window
Default value: 800
Saved in: General.SessionFileName
General.HighOrderToolsPositionX
Horizontal position (in pixels) of the upper left corner of the high order tools
window
Default value: 650
Saved in: General.SessionFileName
General.HighOrderToolsPositionY
Vertical position (in pixels) of the upper left corner of the high order tools
window
Default value: 150
Saved in: General.SessionFileName
General.InitialModule
Module launched on startup (0=automatic, 1=geometry, 2=mesh, 3=solver,
4=post-processing)
Default value: 0
Saved in: General.OptionsFileName
General.Light0
Enable light source 0
Default value: 1
Saved in: General.OptionsFileName
General.Light0X
X position of light source 0
Default value: 0.65
Saved in: General.OptionsFileName
General.Light0Y
Y position of light source 0
Default value: 0.65
Saved in: General.OptionsFileName
General.Light0Z
Z position of light source 0
Default value: 1
Saved in: General.OptionsFileName
General.Light0W
Divisor of the X, Y and Z coordinates of light source 0 (W=0 means infinitely
far source)
Default value: 0
Saved in: General.OptionsFileName
156
Gmsh 2.8
General.Light1
Enable light source 1
Default value: 0
Saved in: General.OptionsFileName
General.Light1X
X position of light source 1
Default value: 0.5
Saved in: General.OptionsFileName
General.Light1Y
Y position of light source 1
Default value: 0.3
Saved in: General.OptionsFileName
General.Light1Z
Z position of light source 1
Default value: 1
Saved in: General.OptionsFileName
General.Light1W
Divisor of the X, Y and Z coordinates of light source 1 (W=0 means infinitely
far source)
Default value: 0
Saved in: General.OptionsFileName
General.Light2
Enable light source 2
Default value: 0
Saved in: General.OptionsFileName
General.Light2X
X position of light source 2
Default value: 0.5
Saved in: General.OptionsFileName
General.Light2Y
Y position of light source 2
Default value: 0.3
Saved in: General.OptionsFileName
General.Light2Z
Z position of light source 2
Default value: 1
Saved in: General.OptionsFileName
General.Light2W
Divisor of the X, Y and Z coordinates of light source 2 (W=0 means infinitely
far source)
Default value: 0
Saved in: General.OptionsFileName
Appendix B: Options
157
General.Light3
Enable light source 3
Default value: 0
Saved in: General.OptionsFileName
General.Light3X
X position of light source 3
Default value: 0.5
Saved in: General.OptionsFileName
General.Light3Y
Y position of light source 3
Default value: 0.3
Saved in: General.OptionsFileName
General.Light3Z
Z position of light source 3
Default value: 1
Saved in: General.OptionsFileName
General.Light3W
Divisor of the X, Y and Z coordinates of light source 3 (W=0 means infinitely
far source)
Default value: 0
Saved in: General.OptionsFileName
General.Light4
Enable light source 4
Default value: 0
Saved in: General.OptionsFileName
General.Light4X
X position of light source 4
Default value: 0.5
Saved in: General.OptionsFileName
General.Light4Y
Y position of light source 4
Default value: 0.3
Saved in: General.OptionsFileName
General.Light4Z
Z position of light source 4
Default value: 1
Saved in: General.OptionsFileName
General.Light4W
Divisor of the X, Y and Z coordinates of light source 4 (W=0 means infinitely
far source)
Default value: 0
Saved in: General.OptionsFileName
158
Gmsh 2.8
General.Light5
Enable light source 5
Default value: 0
Saved in: General.OptionsFileName
General.Light5X
X position of light source 5
Default value: 0.5
Saved in: General.OptionsFileName
General.Light5Y
Y position of light source 5
Default value: 0.3
Saved in: General.OptionsFileName
General.Light5Z
Z position of light source 5
Default value: 1
Saved in: General.OptionsFileName
General.Light5W
Divisor of the X, Y and Z coordinates of light source 5 (W=0 means infinitely
far source)
Default value: 0
Saved in: General.OptionsFileName
General.LineWidth
Display width of lines (in pixels)
Default value: 1
Saved in: General.OptionsFileName
General.ManipulatorPositionX
Horizontal position (in pixels) of the upper left corner of the manipulator window
Default value: 650
Saved in: General.SessionFileName
General.ManipulatorPositionY
Vertical position (in pixels) of the upper left corner of the manipulator window
Default value: 150
Saved in: General.SessionFileName
General.MaxX
Maximum model coordinate along the X-axis (read-only)
Default value: 0
Saved in: General.MaxY
Maximum model coordinate along the Y-axis (read-only)
Default value: 0
Saved in: -
Appendix B: Options
General.MaxZ
Maximum model coordinate along the Z-axis (read-only)
Default value: 0
Saved in: General.MenuWidth
Width (in pixels) of the menu tree
Default value: 200
Saved in: General.SessionFileName
General.MenuHeight
Height (in pixels) of the (detached) menu tree
Default value: 200
Saved in: General.SessionFileName
General.MenuPositionX
Horizontal position (in pixels) of the (detached) menu tree
Default value: 400
Saved in: General.SessionFileName
General.MenuPositionY
Vertical position (in pixels) of the (detached) menu tree
Default value: 400
Saved in: General.SessionFileName
General.MessageHeight
Height (in pixels) of the message console when it is visible (should be > 0)
Default value: 300
Saved in: General.SessionFileName
General.MinX
Minimum model coordinate along the X-axis (read-only)
Default value: 0
Saved in: General.MinY
Minimum model coordinate along the Y-axis (read-only)
Default value: 0
Saved in: General.MinZ
Minimum model coordinate along the Z-axis (read-only)
Default value: 0
Saved in: General.MouseHoverMeshes
Enable mouse hover on meshes
Default value: 0
Saved in: General.OptionsFileName
159
160
Gmsh 2.8
General.MouseSelection
Enable mouse selection
Default value: 1
Saved in: General.OptionsFileName
General.NonModalWindows
Force all control windows to be on top of the graphic window ("non-modal")
Default value: 1
Saved in: General.SessionFileName
General.NoPopup
Disable interactive dialog windows in scripts (and use default values instead)
Default value: 0
Saved in: General.OptionsFileName
General.OptionsPositionX
Horizontal position (in pixels) of the upper left corner of the option window
Default value: 650
Saved in: General.SessionFileName
General.OptionsPositionY
Vertical position (in pixels) of the upper left corner of the option window
Default value: 150
Saved in: General.SessionFileName
General.Orthographic
Orthographic projection mode (0=perspective projection)
Default value: 1
Saved in: General.OptionsFileName
General.PluginPositionX
Horizontal position (in pixels) of the upper left corner of the plugin window
Default value: 650
Saved in: General.SessionFileName
General.PluginPositionY
Vertical position (in pixels) of the upper left corner of the plugin window
Default value: 550
Saved in: General.SessionFileName
General.PluginHeight
Height (in pixels) of the plugin window
Default value: 320
Saved in: General.SessionFileName
General.PluginWidth
Width (in pixels) of the plugin window
Default value: 420
Saved in: General.SessionFileName
Appendix B: Options
161
General.PointSize
Display size of points (in pixels)
Default value: 3
Saved in: General.OptionsFileName
General.PolygonOffsetAlwaysOn
Always apply polygon offset, instead of trying to detect when it is required
Default value: 0
Saved in: General.OptionsFileName
General.PolygonOffsetFactor
Polygon offset factor (offset = factor * DZ + r * units)
Default value: 0.5
Saved in: General.OptionsFileName
General.PolygonOffsetUnits
Polygon offset units (offset = factor * DZ + r * units)
Default value: 1
Saved in: General.OptionsFileName
General.ProgressMeterStep
Increment (in percent) of the progress meter bar
Default value: 20
Saved in: General.OptionsFileName
General.QuadricSubdivisions
Number of subdivisions used to draw points or lines as spheres or cylinders
Default value: 6
Saved in: General.OptionsFileName
General.RotationX
First Euler angle (used if Trackball=0)
Default value: 0
Saved in: General.RotationY
Second Euler angle (used if Trackball=0)
Default value: 0
Saved in: General.RotationZ
Third Euler angle (used if Trackball=0)
Default value: 0
Saved in: General.RotationCenterGravity
Rotate around the (pseudo) center of mass instead of (RotationCenterX, RotationCenterY, RotationCenterZ)
Default value: 1
Saved in: General.OptionsFileName
162
Gmsh 2.8
General.RotationCenterX
X coordinate of the center of rotation
Default value: 0
Saved in: General.RotationCenterY
Y coordinate of the center of rotation
Default value: 0
Saved in: General.RotationCenterZ
Z coordinate of the center of rotation
Default value: 0
Saved in: General.SaveOptions
Automatically save current options in General.OptionsFileName (1) or per
model (2)each time you quit Gmsh?
Default value: 0
Saved in: General.SessionFileName
General.SaveSession
Automatically save session specific information in General.SessionFileName
each time you quit Gmsh?
Default value: 1
Saved in: General.SessionFileName
General.ScaleX
X-axis scale factor
Default value: 1
Saved in: General.ScaleY
Y-axis scale factor
Default value: 1
Saved in: General.ScaleZ
Z-axis scale factor
Default value: 1
Saved in: General.Shininess
Material shininess
Default value: 0.4
Saved in: General.OptionsFileName
General.ShininessExponent
Material shininess exponent (between 0 and 128)
Default value: 40
Saved in: General.OptionsFileName
Appendix B: Options
163
General.SmallAxes
Display the small axes
Default value: 1
Saved in: General.OptionsFileName
General.SmallAxesPositionX
X position (in pixels) of small axes (< 0: measure from right window edge; >=
1e5: centered)
Default value: -60
Saved in: General.OptionsFileName
General.SmallAxesPositionY
Y position (in pixels) of small axes (< 0: measure from bottom window edge;
>= 1e5: centered)
Default value: -40
Saved in: General.OptionsFileName
General.SmallAxesSize
Size (in pixels) of small axes
Default value: 30
Saved in: General.OptionsFileName
General.StatisticsPositionX
Horizontal position (in pixels) of the upper left corner of the statistic window
Default value: 650
Saved in: General.SessionFileName
General.StatisticsPositionY
Vertical position (in pixels) of the upper left corner of the statistic window
Default value: 150
Saved in: General.SessionFileName
General.Stereo
Use stereo rendering
Default value: 0
Saved in: General.OptionsFileName
General.SystemMenuBar
Use the system menu bar on Mac OS X?
Default value: 1
Saved in: General.SessionFileName
General.Terminal
Should information be printed on the terminal (if available)?
Default value: 0
Saved in: General.OptionsFileName
General.Tooltips
Show tooltips in the user interface
Default value: 1
Saved in: General.OptionsFileName
164
Gmsh 2.8
General.Trackball
Use trackball rotation mode
Default value: 1
Saved in: General.OptionsFileName
General.TrackballHyperbolicSheet
Use hyperbolic sheet away from trackball center for z-rotations
Default value: 1
Saved in: General.OptionsFileName
General.TrackballQuaternion0
First trackball quaternion component (used if General.Trackball=1)
Default value: 0
Saved in: General.TrackballQuaternion1
Second trackball quaternion component (used if General.Trackball=1)
Default value: 0
Saved in: General.TrackballQuaternion2
Third trackball quaternion component (used if General.Trackball=1)
Default value: 0
Saved in: General.TrackballQuaternion3
Fourth trackball quaternion component (used if General.Trackball=1)
Default value: 1
Saved in: General.TranslationX
X-axis translation (in model units)
Default value: 0
Saved in: General.TranslationY
Y-axis translation (in model units)
Default value: 0
Saved in: General.TranslationZ
Z-axis translation (in model units)
Default value: 0
Saved in: General.VectorType
Default vector display type (for normals, etc.)
Default value: 4
Saved in: General.OptionsFileName
Appendix B: Options
165
General.Verbosity
Level of information printed during processing (0=no information)
Default value: 5
Saved in: General.OptionsFileName
General.VisibilityPositionX
Horizontal position (in pixels) of the upper left corner of the visibility window
Default value: 650
Saved in: General.SessionFileName
General.VisibilityPositionY
Vertical position (in pixels) of the upper left corner of the visibility window
Default value: 150
Saved in: General.SessionFileName
General.ZoomFactor
Middle mouse button zoom acceleration factor
Default value: 4
Saved in: General.OptionsFileName
General.Color.Background
Background color
Default value: {255,255,255}
Saved in: General.OptionsFileName
General.Color.BackgroundGradient
Background gradient color
Default value: {208,215,255}
Saved in: General.OptionsFileName
General.Color.Foreground
Foreground color
Default value: {85,85,85}
Saved in: General.OptionsFileName
General.Color.Text
Text color
Default value: {0,0,0}
Saved in: General.OptionsFileName
General.Color.Axes
Axes color
Default value: {0,0,0}
Saved in: General.OptionsFileName
General.Color.SmallAxes
Small axes color
Default value: {0,0,0}
Saved in: General.OptionsFileName
166
Gmsh 2.8
General.Color.AmbientLight
Ambient light color
Default value: {25,25,25}
Saved in: General.OptionsFileName
General.Color.DiffuseLight
Diffuse light color
Default value: {255,255,255}
Saved in: General.OptionsFileName
General.Color.SpecularLight
Specular light color
Default value: {255,255,255}
Saved in: General.OptionsFileName
Print.ParameterCommand
Command parsed when the print parameter is changed
Default value: "Mesh.Clip=1; View.Clip=1; General.ClipWholeElements=1;
General.Clip0D=Print.Parameter; SetChanged;"
Saved in: General.OptionsFileName
Print.Parameter
Current value of the print parameter
Default value: 0
Saved in: General.OptionsFileName
Print.ParameterFirst
First value of print parameter in loop
Default value: -1
Saved in: General.OptionsFileName
Print.ParameterLast
Last value of print parameter in loop
Default value: 1
Saved in: General.OptionsFileName
Print.ParameterSteps
Number of steps in loop over print parameter
Default value: 10
Saved in: General.OptionsFileName
Print.Background
Print background (gradient and image)?
Default value: 0
Saved in: General.OptionsFileName
Print.CompositeWindows
Composite all window tiles in the same output image (for bitmap output only)
Default value: 0
Saved in: General.OptionsFileName
Appendix B: Options
Print.PgfTwoDim
Output PGF format for two dimensions.
tAxis=0. Default 1 (yes).
Default value: 1
Saved in: General.OptionsFileName
167
Print.PgfExportAxis
Include axis in export pgf code (not in the png). Default 0 (no).
Default value: 0
Saved in: General.OptionsFileName
Print.PgfHorizontalBar
Use a horizontal color bar in the pgf output. Default 0 (no).
Default value: 0
Saved in: General.OptionsFileName
Print.DeleteTemporaryFiles
Delete temporary files used during printing
Default value: 1
Saved in: General.OptionsFileName
Print.EpsBestRoot
Try to minimize primitive splitting in BSP tree sorted PostScript/PDF output
Default value: 1
Saved in: General.OptionsFileName
Print.EpsCompress
Compress PostScript/PDF output using zlib
Default value: 0
Saved in: General.OptionsFileName
Print.EpsLineWidthFactor
Width factor for lines in PostScript/PDF output
Default value: 1
Saved in: General.OptionsFileName
Print.EpsOcclusionCulling
Cull occluded primitives (to reduce PostScript/PDF file size)
Default value: 1
Saved in: General.OptionsFileName
Print.EpsPointSizeFactor
Size factor for points in PostScript/PDF output
Default value: 1
Saved in: General.OptionsFileName
Print.EpsPS3Shading
Enable PostScript Level 3 shading
Default value: 0
Saved in: General.OptionsFileName
168
Gmsh 2.8
Print.EpsQuality
PostScript/PDF quality (0=bitmap, 1=vector (simple sort), 2=vector (accurate
sort), 3=vector (unsorted)
Default value: 1
Saved in: General.OptionsFileName
Print.Format
File format (10=automatic)
Default value: 10
Saved in: General.OptionsFileName
Print.GeoLabels
Save labels in unrolled Gmsh geometries
Default value: 1
Saved in: General.OptionsFileName
Print.GeoOnlyPhysicals
Only save entities that belong to physical groups
Default value: 0
Saved in: General.OptionsFileName
Print.GifDither
Apply dithering to GIF output
Default value: 0
Saved in: General.OptionsFileName
Print.GifInterlace
Interlace GIF output
Default value: 0
Saved in: General.OptionsFileName
Print.GifSort
Sort the colormap in GIF output
Default value: 1
Saved in: General.OptionsFileName
Print.GifTransparent
Output transparent GIF image
Default value: 0
Saved in: General.OptionsFileName
Print.Height
Height of printed image; use (possibly scaled) current height if < 0
Default value: -1
Saved in: General.OptionsFileName
Print.JpegQuality
JPEG quality (between 1 and 100)
Default value: 100
Saved in: General.OptionsFileName
Appendix B: Options
169
Print.JpegSmoothing
JPEG smoothing (between 0 and 100)
Default value: 0
Saved in: General.OptionsFileName
Print.PostElementary
Save elementary region tags in mesh statistics exported as post-processing views
Default value: 1
Saved in: General.OptionsFileName
Print.PostElement
Save element numbers in mesh statistics exported as post-processing views
Default value: 0
Saved in: General.OptionsFileName
Print.PostGamma
Save Gamma quality measure in mesh statistics exported as post-processing
views
Default value: 0
Saved in: General.OptionsFileName
Print.PostEta
Save Eta quality measure in mesh statistics exported as post-processing views
Default value: 0
Saved in: General.OptionsFileName
Print.PostRho
Save Rho quality measure in mesh statistics exported as post-processing views
Default value: 0
Saved in: General.OptionsFileName
Print.PostDisto
Save Disto quality measure in mesh statistics exported as post-processing views
Default value: 0
Saved in: General.OptionsFileName
Print.TexAsEquation
Print all TeX strings as equations
Default value: 0
Saved in: General.OptionsFileName
Print.Text
Print text strings?
Default value: 1
Saved in: General.OptionsFileName
Print.Width
Width of printed image; use (possibly scaled) current width if < 0)
Default value: -1
Saved in: General.OptionsFileName
170
Gmsh 2.8
Appendix B: Options
171
Geometry.LabelType
Type of entity label (1=elementary number, 2=physical number)
Default value: 1
Saved in: General.OptionsFileName
Geometry.Light
Enable lighting for the geometry
Default value: 1
Saved in: General.OptionsFileName
Geometry.LightTwoSide
Light both sides of surfaces (leads to slower rendering)
Default value: 1
Saved in: General.OptionsFileName
Geometry.Lines
Display geometry curves?
Default value: 1
Saved in: General.OptionsFileName
Geometry.LineNumbers
Display curve numbers?
Default value: 0
Saved in: General.OptionsFileName
Geometry.LineSelectWidth
Display width of selected lines (in pixels)
Default value: 2
Saved in: General.OptionsFileName
Geometry.LineType
Display lines as solid color segments (0), 3D cylinders (1) or tapered cylinders
(2)
Default value: 0
Saved in: General.OptionsFileName
Geometry.LineWidth
Display width of lines (in pixels)
Default value: 2
Saved in: General.OptionsFileName
Geometry.MatchGeomAndMesh
Matches geometries and meshes
Default value: 0
Saved in: General.OptionsFileName
Geometry.Normals
Display size of normal vectors (in pixels)
Default value: 0
Saved in: General.OptionsFileName
172
Gmsh 2.8
Geometry.NumSubEdges
Number of edge subdivisions between control points when displaying curves
Default value: 20
Saved in: General.OptionsFileName
Geometry.OCCFixDegenerated
Fix degenerated edges/faces in STEP, IGES and BRep models
Default value: 0
Saved in: General.OptionsFileName
Geometry.OCCFixSmallEdges
Fix small edges in STEP, IGES and BRep models
Default value: 0
Saved in: General.OptionsFileName
Geometry.OCCFixSmallFaces
Fix small faces in STEP, IGES and BRep models
Default value: 0
Saved in: General.OptionsFileName
Geometry.OCCSewFaces
Sew faces in STEP, IGES and BRep models
Default value: 0
Saved in: General.OptionsFileName
Geometry.OCCConnectFaces
Cut and connect faces in STEP, IGES and BRep models
Default value: 0
Saved in: General.OptionsFileName
Geometry.OffsetX
Model display offset along X-axis (in model coordinates)
Default value: 0
Saved in: Geometry.OffsetY
Model display offset along Y-axis (in model coordinates)
Default value: 0
Saved in: Geometry.OffsetZ
Model display offset along Z-axis (in model coordinates)
Default value: 0
Saved in: Geometry.OldCircle
Use old circle description (compatibility option for old Gmsh geometries)
Default value: 0
Saved in: General.OptionsFileName
Geometry.OldRuledSurface
Use old 3-sided ruled surface interpolation (compatibility option for old Gmsh
geometries)
Appendix B: Options
173
Default value: 0
Saved in: General.OptionsFileName
Geometry.OldNewReg
Use old newreg definition for geometrical transformations (compatibility option
for old Gmsh geometries)
Default value: 1
Saved in: General.OptionsFileName
Geometry.Points
Display geometry points?
Default value: 1
Saved in: General.OptionsFileName
Geometry.PointNumbers
Display points numbers?
Default value: 0
Saved in: General.OptionsFileName
Geometry.PointSelectSize
Display size of selected points (in pixels)
Default value: 5
Saved in: General.OptionsFileName
Geometry.PointSize
Display size of points (in pixels)
Default value: 4
Saved in: General.OptionsFileName
Geometry.PointType
Display points as solid color dots (0) or 3D spheres (1)
Default value: 0
Saved in: General.OptionsFileName
Geometry.ScalingFactor
Global geometry scaling factor
Default value: 1
Saved in: General.OptionsFileName
Geometry.OrientedPhysicals
Use sign of elementary entity in physical definition as orientation indicator
Default value: 1
Saved in: General.OptionsFileName
Geometry.SnapX
Snapping grid spacing along the X-axis
Default value: 0.1
Saved in: General.OptionsFileName
Geometry.SnapY
Snapping grid spacing along the Y-axis
Default value: 0.1
Saved in: General.OptionsFileName
174
Geometry.SnapZ
Snapping grid spacing along the Z-axis
Default value: 0.1
Saved in: General.OptionsFileName
Geometry.Surfaces
Display geometry surfaces?
Default value: 0
Saved in: General.OptionsFileName
Geometry.SurfaceNumbers
Display surface numbers?
Default value: 0
Saved in: General.OptionsFileName
Geometry.SurfaceType
Surface display type (0=cross, 1=wireframe, 2=solid)
Default value: 2
Saved in: General.OptionsFileName
Geometry.Tangents
Display size of tangent vectors (in pixels)
Default value: 0
Saved in: General.OptionsFileName
Geometry.Tolerance
Geometrical tolerance
Default value: 1e-06
Saved in: General.OptionsFileName
Geometry.Transform
Transform model display coordinates (0=no, 1=scale)
Default value: 0
Saved in: Geometry.TransformXX
Element (1,1) of the 3x3 model display transformation matrix
Default value: 1
Saved in: Geometry.TransformXY
Element (1,2) of the 3x3 model display transformation matrix
Default value: 0
Saved in: Geometry.TransformXZ
Element (1,3) of the 3x3 model display transformation matrix
Default value: 0
Saved in: -
Gmsh 2.8
Appendix B: Options
Geometry.TransformYX
Element (2,1) of the 3x3 model display transformation matrix
Default value: 0
Saved in: Geometry.TransformYY
Element (2,2) of the 3x3 model display transformation matrix
Default value: 1
Saved in: Geometry.TransformYZ
Element (2,3) of the 3x3 model display transformation matrix
Default value: 0
Saved in: Geometry.TransformZX
Element (3,1) of the 3x3 model display transformation matrix
Default value: 0
Saved in: Geometry.TransformZY
Element (3,2) of the 3x3 model display transformation matrix
Default value: 0
Saved in: Geometry.TransformZZ
Element (3,3) of the 3x3 model display transformation matrix
Default value: 1
Saved in: Geometry.Volumes
Display geometry volumes? (not implemented yet)
Default value: 0
Saved in: General.OptionsFileName
Geometry.VolumeNumbers
Display volume numbers? (not implemented yet)
Default value: 0
Saved in: General.OptionsFileName
Geometry.Color.Points
Normal geometry point color
Default value: {90,90,90}
Saved in: General.OptionsFileName
Geometry.Color.Lines
Normal geometry curve color
Default value: {0,0,255}
Saved in: General.OptionsFileName
175
176
Gmsh 2.8
Geometry.Color.Surfaces
Normal geometry surface color
Default value: {128,128,128}
Saved in: General.OptionsFileName
Geometry.Color.Volumes
Normal geometry volume color
Default value: {255,255,0}
Saved in: General.OptionsFileName
Geometry.Color.Selection
Selected geometry color
Default value: {255,0,0}
Saved in: General.OptionsFileName
Geometry.Color.HighlightZero
Highlight 0 color
Default value: {255,0,0}
Saved in: General.OptionsFileName
Geometry.Color.HighlightOne
Highlight 1 color
Default value: {255,150,0}
Saved in: General.OptionsFileName
Geometry.Color.HighlightTwo
Highlight 2 color
Default value: {255,255,0}
Saved in: General.OptionsFileName
Geometry.Color.Tangents
Tangent geometry vectors color
Default value: {255,255,0}
Saved in: General.OptionsFileName
Geometry.Color.Normals
Normal geometry vectors color
Default value: {255,0,0}
Saved in: General.OptionsFileName
Geometry.Color.Projection
Projection surface color
Default value: {0,255,0}
Saved in: General.OptionsFileName
Appendix B: Options
177
Mesh.Algorithm3D
3D mesh algorithm (1=Delaunay, 4=Frontal, 5=Frontal Delaunay, 6=Frontal
Hex, 7=MMG3D, 9=R-tree)
Default value: 1
Saved in: General.OptionsFileName
Mesh.AngleSmoothNormals
Threshold angle below which normals are not smoothed
Default value: 30
Saved in: General.OptionsFileName
Mesh.AnisoMax
Maximum anisotropy of the mesh
Default value: 1e+33
Saved in: General.OptionsFileName
Mesh.AllowSwapAngle
Threshold angle (in degrees) between faces normals under which we allow an
edge swap
Default value: 10
Saved in: General.OptionsFileName
Mesh.BdfFieldFormat
Field format for Nastran BDF files (0=free, 1=small, 2=large)
Default value: 1
Saved in: General.OptionsFileName
Mesh.Binary
Write mesh files in binary format (if possible)
Default value: 0
Saved in: General.OptionsFileName
Mesh.Bunin
Apply Bunin optimization on quad meshes (the parameter is the maximal size
of a cavity that may be remeshed)
Default value: 0
Saved in: General.OptionsFileName
Mesh.Lloyd
Apply lloyd optimization on surface meshes
Default value: 0
Saved in: General.OptionsFileName
Mesh.SmoothCrossField
Apply n barycentric smoothing passes to the cross field
Default value: 0
Saved in: General.OptionsFileName
Mesh.CgnsImportOrder
Enable the creation of high-order mesh from CGNS structured meshes(1, 2, 4,
8, ...)
Default value: 1
Saved in: General.OptionsFileName
178
Gmsh 2.8
Mesh.ChacoArchitecture
(Adv. Chaco): Parallel architecture topology (0=hypercube, 1-3=mesh dimensions)
Default value: 1
Saved in: General.OptionsFileName
Mesh.ChacoEigensolver
(Adv. Chaco): Type of eigensolver for a spectral algorithm (0=Lanczos,
1=Multilevel RQI/Symmlq)
Default value: 1
Saved in: General.OptionsFileName
Mesh.ChacoEigTol
(Adv. Chaco): Tolerance of the eigensolver for spectral or multilevel-KL algorithms
Default value: 0.001
Saved in: General.OptionsFileName
Mesh.ChacoGlobalMethod
Chaco partitioning algorithm (1=Multilevel-KL, 2=Spectral,
5=Random, 6=Scattered)
Default value: 1
Saved in: General.OptionsFileName
4=Linear,
Mesh.ChacoHypercubeDim
(Adv. Chaco): Dimensional partitioning for a hypercube topology
Default value: 0
Saved in: General.OptionsFileName
Mesh.ChacoLocalMethod
(Adv. Chaco): Local partitioning algorithm
Default value: 1
Saved in: General.OptionsFileName
Mesh.ChacoMeshDim1
(Adv. Chaco): Number of partitions in the first dimension of a mesh topology
Default value: 1
Saved in: General.OptionsFileName
Mesh.ChacoMeshDim2
(Adv. Chaco): Number of partitions in the second dimension of a mesh topology
Default value: 1
Saved in: General.OptionsFileName
Mesh.ChacoMeshDim3
(Adv. Chaco): Number of partitions in the third dimension of a mesh topology
Default value: 1
Saved in: General.OptionsFileName
Mesh.ChacoPartitionSection
(Adv. Chaco): Partition by (1=bisection, 2=quadrisection, 3=octasection
Default value: 1
Saved in: General.OptionsFileName
Appendix B: Options
179
Mesh.ChacoSeed
(Adv. Chaco): Seed for random number generator
Default value: 7.65432e+06
Saved in: General.OptionsFileName
Mesh.ChacoVMax
(Adv. Chaco): Maximum vertices in a coarse graph (for multilevel-KL algorithm and Multilevel RQI/Symmlq eigensolver)
Default value: 250
Saved in: General.OptionsFileName
Mesh.ChacoParamINTERNAL_VERTICES
(Adv. Chaco): Parameter INTERNAL VERTICES
Default value: 0
Saved in: General.OptionsFileName
Mesh.ChacoParamREFINE_MAP
(Adv. Chaco): Parameter REFINE MAP
Default value: 1
Saved in: General.OptionsFileName
Mesh.ChacoParamREFINE_PARTITION
(Adv. Chaco): Parameter REFINE PARTITION
Default value: 0
Saved in: General.OptionsFileName
Mesh.ChacoParamTERMINAL_PROPOGATION
(Adv. Chaco): Parameter TERMINAL PROPOGATION
Default value: 0
Saved in: General.OptionsFileName
Mesh.CharacteristicLengthExtendFromBoundary
Extend computation of mesh element sizes from the boundaries into the surfaces/volumes
Default value: 1
Saved in: General.OptionsFileName
Mesh.CharacteristicLengthFactor
Factor applied to all mesh element sizes
Default value: 1
Saved in: General.OptionsFileName
Mesh.CharacteristicLengthMin
Minimum mesh element size
Default value: 0
Saved in: General.OptionsFileName
Mesh.CharacteristicLengthMax
Maximum mesh element size
Default value: 1e+22
Saved in: General.OptionsFileName
180
Gmsh 2.8
Mesh.CharacteristicLengthFromCurvature
Automatically compute mesh element sizes from curvature (experimental)
Default value: 0
Saved in: General.OptionsFileName
Mesh.CharacteristicLengthFromPoints
Compute mesh element sizes from values given at geometry points
Default value: 1
Saved in: General.OptionsFileName
Mesh.Clip
Enable clipping planes? (Plane[i]=2^i, i=0,...,5)
Default value: 0
Saved in: Mesh.ColorCarousel
Mesh coloring (0=by element type, 1=by elementary entity, 2=by physical entity, 3=by partition)
Default value: 1
Saved in: General.OptionsFileName
Mesh.CpuTime
CPU time (in seconds) for the generation of the current mesh (read-only)
Default value: 0
Saved in: Mesh.DrawSkinOnly
Draw only the skin of 3D meshes?
Default value: 0
Saved in: General.OptionsFileName
Mesh.Dual
Display the dual mesh obtained by barycentric subdivision
Default value: 0
Saved in: General.OptionsFileName
Mesh.ElementOrder
Element order (1=linear elements, N (<6) = elements of higher order)
Default value: 1
Saved in: General.OptionsFileName
Mesh.Explode
Element shrinking factor (between 0 and 1)
Default value: 1
Saved in: General.OptionsFileName
Mesh.FlexibleTransfinite
Allow transfinite contraints to be modified for Blossom or by global mesh size
factor
Default value: 0
Saved in: General.OptionsFileName
Appendix B: Options
181
Mesh.NewtonConvergenceTestXYZ
Force inverse surface mapping algorithm (Newton-Raphson) to converge in real
coordinates (experimental)
Default value: 0
Saved in: General.OptionsFileName
Mesh.Format
Mesh output format (1=msh, 2=unv, 10=automatic, 19=vrml, 27=stl,
30=mesh, 31=bdf, 32=cgns, 33=med, 40=ply2)
Default value: 10
Saved in: General.OptionsFileName
Mesh.Hexahedra
Display mesh hexahedra?
Default value: 1
Saved in: General.OptionsFileName
Mesh.HighOrderNumLayers
Number of high order mesh elements to consider for optimization
Default value: 6
Saved in: Mesh.HighOrderOptimize
Optimize high order meshes?
Default value: 0
Saved in: General.OptionsFileName
Mesh.HighOrderPoissonRatio
Poisson ratio of the material used in the elastic smoother for high order meshesMust be between -1.0 and 0.5, excluded
Default value: 0.33
Saved in: Mesh.HighOrderThresholdMin
Minimum threshold for high order element optimization
Default value: 0.1
Saved in: General.OptionsFileName
Mesh.HighOrderThresholdMax
Maximum threshold for high order element optimization
Default value: 2
Saved in: General.OptionsFileName
Mesh.HighOrderOptPrimSurfMesh
Try to fix flipped surface mesh elements in high-order optimizer
Default value: 0
Saved in: General.OptionsFileName
Mesh.LabelSampling
Label sampling rate (display one label every LabelSampling elements)
Default value: 1
Saved in: General.OptionsFileName
182
Gmsh 2.8
Mesh.LabelType
Type of element label (0=element number, 1=elementary entity number,
2=physical entity number, 3=partition number, 4=coordinates)
Default value: 0
Saved in: General.OptionsFileName
Mesh.LcIntegrationPrecision
Accuracy of evaluation of the LC field for 1D mesh generation
Default value: 1e-09
Saved in: General.OptionsFileName
Mesh.Light
Enable lighting for the mesh
Default value: 1
Saved in: General.OptionsFileName
Mesh.LightLines
Enable lighting for mesh lines (element edges)
Default value: 1
Saved in: General.OptionsFileName
Mesh.LightTwoSide
Light both sides of surfaces (leads to slower rendering)
Default value: 1
Saved in: General.OptionsFileName
Mesh.Lines
Display mesh lines (1D elements)?
Default value: 0
Saved in: General.OptionsFileName
Mesh.LineNumbers
Display mesh line numbers?
Default value: 0
Saved in: General.OptionsFileName
Mesh.LineWidth
Display width of mesh lines (in pixels)
Default value: 1
Saved in: General.OptionsFileName
Mesh.MeshOnlyVisible
Mesh only visible entities (experimental: use with caution!)
Default value: 0
Saved in: General.OptionsFileName
Mesh.MetisAlgorithm
METIS partitioning algorithm (1=Recursive, 2=K-way, 3=Nodal weight)
Default value: 1
Saved in: General.OptionsFileName
Appendix B: Options
183
Mesh.MetisEdgeMatching
(Adv. METIS): Determines the matching type (1=Random, 2=Heavy-Edge,
3=Sorted Heavy-Edge)
Default value: 3
Saved in: General.OptionsFileName
Mesh.MetisRefinementAlgorithm
(Adv. METIS): Algorithm for k-way refinement (1=Random, 2=Greedy,
3=Random with minimized connectivity)
Default value: 3
Saved in: General.OptionsFileName
Mesh.MinimumCirclePoints
Minimum number of points used to mesh a circle
Default value: 7
Saved in: General.OptionsFileName
Mesh.MinimumCurvePoints
Minimum number of points used to mesh a (non-straight) curve
Default value: 3
Saved in: General.OptionsFileName
Mesh.MshFileVersion
Version of the MSH file format to use
Default value: 2.2
Saved in: General.OptionsFileName
Mesh.MshFilePartitioned
Split MSH file by mesh partition (0: no, 1: yes, 2: create physicals by partition)
Default value: 0
Saved in: General.OptionsFileName
Mesh.PartitionHexWeight
Weight of hexahedral element for METIS load balancing
Default value: 1
Saved in: General.OptionsFileName
Mesh.PartitionPrismWeight
Weight of prismatic element (wedge) for METIS load balancing
Default value: 1
Saved in: General.OptionsFileName
Mesh.PartitionPyramidWeight
Weight of pyramidal element for METIS load balancing
Default value: 1
Saved in: General.OptionsFileName
Mesh.PartitionQuadWeight
Weight of quadrangle for METIS load balancing
Default value: 1
Saved in: General.OptionsFileName
184
Mesh.PartitionTetWeight
Weight of tetrahedral element for METIS load balancing
Default value: 1
Saved in: General.OptionsFileName
Mesh.PartitionTriWeight
Weight of triangle for METIS load balancing
Default value: 1
Saved in: General.OptionsFileName
Mesh.NbHexahedra
Number of hexahedra in the current mesh (read-only)
Default value: 0
Saved in: Mesh.NbNodes
Number of nodes in the current mesh (read-only)
Default value: 0
Saved in: Mesh.NbPartitions
Number of partitions
Default value: 1
Saved in: General.OptionsFileName
Mesh.NbPrisms
Number of prisms in the current mesh (read-only)
Default value: 0
Saved in: Mesh.NbPyramids
Number of pyramids in the current mesh (read-only)
Default value: 0
Saved in: Mesh.NbQuadrangles
Number of quadrangles in the current mesh (read-only)
Default value: 0
Saved in: Mesh.NbTetrahedra
Number of tetrahedra in the current mesh (read-only)
Default value: 0
Saved in: Mesh.NbTriangles
Number of triangles in the current mesh (read-only)
Default value: 0
Saved in: -
Gmsh 2.8
Appendix B: Options
185
Mesh.Normals
Display size of normal vectors (in pixels)
Default value: 0
Saved in: General.OptionsFileName
Mesh.NumSubEdges
Number of edge subdivisions when displaying high order elements
Default value: 2
Saved in: General.OptionsFileName
Mesh.Optimize
Optimize the mesh to improve the quality of tetrahedral elements
Default value: 0
Saved in: General.OptionsFileName
Mesh.OptimizeNetgen
Optimize the mesh using Netgen to improve the quality of tetrahedral elements
Default value: 0
Saved in: General.OptionsFileName
Mesh.Partitioner
Partitioner software (1=Chacho, 2=METIS)
Default value: 2
Saved in: General.OptionsFileName
Mesh.Points
Display mesh vertices (nodes)?
Default value: 0
Saved in: General.OptionsFileName
Mesh.PointNumbers
Display mesh node numbers?
Default value: 0
Saved in: General.OptionsFileName
Mesh.PointSize
Display size of mesh vertices (in pixels)
Default value: 4
Saved in: General.OptionsFileName
Mesh.PointType
Display mesh vertices as solid color dots (0) or 3D spheres (1)
Default value: 0
Saved in: General.OptionsFileName
Mesh.Prisms
Display mesh prisms?
Default value: 1
Saved in: General.OptionsFileName
186
Gmsh 2.8
Mesh.Pyramids
Display mesh pyramids?
Default value: 1
Saved in: General.OptionsFileName
Mesh.Quadrangles
Display mesh quadrangles?
Default value: 1
Saved in: General.OptionsFileName
Mesh.QualityInf
Only display elements whose quality measure is greater than QualityInf
Default value: 0
Saved in: General.OptionsFileName
Mesh.QualitySup
Only display elements whose quality measure is smaller than QualitySup
Default value: 0
Saved in: General.OptionsFileName
Mesh.QualityType
Type
of
quality
measure
(0=gamma~vol/sum face/max edge,
1=eta~vol^(2/3)/sum edge^2, 2=rho~min edge/max edge)
Default value: 2
Saved in: General.OptionsFileName
Mesh.RadiusInf
Only display elements whose longest edge is greater than RadiusInf
Default value: 0
Saved in: General.OptionsFileName
Mesh.RadiusSup
Only display elements whose longest edge is smaller than RadiusSup
Default value: 0
Saved in: General.OptionsFileName
Mesh.RandomFactor
Random factor used in the 2D meshing algorithm (should be increased if RandomFactor * size(triangle)/size(model) approaches machine accuracy)
Default value: 1e-09
Saved in: General.OptionsFileName
Mesh.IgnorePartitionBoundary
Ignore partitions boundaries (0=no, 1=yes)
Default value: 0
Saved in: General.OptionsFileName
Mesh.RecombinationAlgorithm
Mesh recombination algorithm (0=standard, 1=blossom)
Default value: 1
Saved in: General.OptionsFileName
Appendix B: Options
187
Mesh.RecombineAll
Apply recombination algorithm to all surfaces, ignoring per-surface spec
Default value: 0
Saved in: General.OptionsFileName
Mesh.Recombine3DAll
Apply recombination3D algorithm to all volumes, ignoring per-volume spec
Default value: 0
Saved in: General.OptionsFileName
Mesh.DoRecombinationTest
Apply recombination algorithm for test
Default value: 0
Saved in: General.OptionsFileName
Mesh.RecombinationTestHorizStart
Depth start
Default value: 1
Saved in: General.OptionsFileName
Mesh.RecombinationTestNoGreedyStrat
No greedy (global) strategies
Default value: 0
Saved in: General.OptionsFileName
Mesh.RecombinationTestNewStrat
New strategies
Default value: 0
Saved in: General.OptionsFileName
Mesh.RemeshAlgorithm
Remeshing algorithm (0=no split, 1=automatic, 2=automatic only with metis)
Default value: 0
Saved in: General.OptionsFileName
Mesh.RemeshParametrization
Remeshing using discrete parametrization (0=harmonic circle, 1=conformal spectral, 2=rbf, 3=harmonic plane, 4=convex circle, 5=convex plane,
6=harmonic square, 7=conformal fe
Default value: 4
Saved in: General.OptionsFileName
Mesh.RefineSteps
Number of refinement steps in the MeshAdapt-based 2D algorithms
Default value: 10
Saved in: General.OptionsFileName
Mesh.Remove4Triangles
Try to remove nodes surrounded by 4 triangles in 2D triangular meshes
Default value: 0
Saved in: General.OptionsFileName
188
Gmsh 2.8
Mesh.ReverseAllNormals
Reverse all the mesh normals (for display)
Default value: 0
Saved in: General.OptionsFileName
Mesh.SaveAll
Ignore Physical definitions and save all elements
Default value: 0
Saved in: Mesh.SaveElementTagType
Type of the element tag saved in mesh formats that dont support saving physical or partition ids (1=elementary, 2=physical, 3=partition)
Default value: 1
Saved in: General.OptionsFileName
Mesh.SaveParametric
Save parametric coordinates of nodes
Default value: 0
Saved in: General.OptionsFileName
Mesh.SaveGroupsOfNodes
Save groups of nodes for each physical line and surface (UNV mesh format only)
Default value: 0
Saved in: General.OptionsFileName
Mesh.ScalingFactor
Global scaling factor applied to the saved mesh
Default value: 1
Saved in: General.OptionsFileName
Mesh.SecondOrderExperimental
Use experimental code to generate second order mesh
Default value: 0
Saved in: General.OptionsFileName
Mesh.SecondOrderIncomplete
Create incomplete second order elements? (8-node quads, 20-node hexas, etc.)
Default value: 0
Saved in: General.OptionsFileName
Mesh.SecondOrderLinear
Should second order vertices simply be created by linear interpolation?
Default value: 0
Saved in: General.OptionsFileName
Mesh.Smoothing
Number of smoothing steps applied to the final mesh
Default value: 1
Saved in: General.OptionsFileName
Appendix B: Options
189
Mesh.SmoothNormals
Smooth the mesh normals?
Default value: 0
Saved in: General.OptionsFileName
Mesh.SmoothRatio
Ratio between mesh sizes at vertices of a same edeg (used in BAMG)
Default value: 1.8
Saved in: General.OptionsFileName
Mesh.SubdivisionAlgorithm
Mesh subdivision algorithm (0=none, 1=all quadrangles, 2=all hexahedra)
Default value: 0
Saved in: General.OptionsFileName
Mesh.SurfaceEdges
Display edges of surface mesh?
Default value: 1
Saved in: General.OptionsFileName
Mesh.SurfaceFaces
Display faces of surface mesh?
Default value: 0
Saved in: General.OptionsFileName
Mesh.SurfaceNumbers
Display surface mesh element numbers?
Default value: 0
Saved in: General.OptionsFileName
Mesh.SwitchElementTags
Invert elementary and physical tags when reading the mesh
Default value: 0
Saved in: General.OptionsFileName
Mesh.Tangents
Display size of tangent vectors (in pixels)
Default value: 0
Saved in: General.OptionsFileName
Mesh.Tetrahedra
Display mesh tetrahedra?
Default value: 1
Saved in: General.OptionsFileName
Mesh.ToleranceEdgeLength
Skip a model edge in mesh generation if its length is less than users defined
tolerance
Default value: 0
Saved in: General.OptionsFileName
190
Gmsh 2.8
Mesh.Triangles
Display mesh triangles?
Default value: 1
Saved in: General.OptionsFileName
Mesh.VolumeEdges
Display edges of volume mesh?
Default value: 1
Saved in: General.OptionsFileName
Mesh.VolumeFaces
Display faces of volume mesh?
Default value: 0
Saved in: General.OptionsFileName
Mesh.VolumeNumbers
Display volume mesh element numbers?
Default value: 0
Saved in: General.OptionsFileName
Mesh.Voronoi
Display the voronoi diagram
Default value: 0
Saved in: General.OptionsFileName
Mesh.ZoneDefinition
Method for defining a zone (0=single zone, 1=by partition, 2=by physical)
Default value: 0
Saved in: General.OptionsFileName
Mesh.Color.Points
Mesh node color
Default value: {0,0,255}
Saved in: General.OptionsFileName
Mesh.Color.PointsSup
Second order mesh node color
Default value: {255,0,255}
Saved in: General.OptionsFileName
Mesh.Color.Lines
Mesh line color
Default value: {0,0,0}
Saved in: General.OptionsFileName
Mesh.Color.Triangles
Mesh triangle color (if Mesh.ColorCarousel=0)
Default value: {160,150,255}
Saved in: General.OptionsFileName
Appendix B: Options
Mesh.Color.Quadrangles
Mesh quadrangle color (if Mesh.ColorCarousel=0)
Default value: {130,120,225}
Saved in: General.OptionsFileName
Mesh.Color.Tetrahedra
Mesh tetrahedron color (if Mesh.ColorCarousel=0)
Default value: {160,150,255}
Saved in: General.OptionsFileName
Mesh.Color.Hexahedra
Mesh hexahedron color (if Mesh.ColorCarousel=0)
Default value: {130,120,225}
Saved in: General.OptionsFileName
Mesh.Color.Prisms
Mesh prism color (if Mesh.ColorCarousel=0)
Default value: {232,210,23}
Saved in: General.OptionsFileName
Mesh.Color.Pyramids
Mesh pyramid color (if Mesh.ColorCarousel=0)
Default value: {217,113,38}
Saved in: General.OptionsFileName
Mesh.Color.Tangents
Tangent mesh vector color
Default value: {255,255,0}
Saved in: General.OptionsFileName
Mesh.Color.Normals
Normal mesh vector color
Default value: {255,0,0}
Saved in: General.OptionsFileName
Mesh.Color.Zero
Color 0 in color carousel
Default value: {255,120,0}
Saved in: General.OptionsFileName
Mesh.Color.One
Color 1 in color carousel
Default value: {0,255,132}
Saved in: General.OptionsFileName
Mesh.Color.Two
Color 2 in color carousel
Default value: {255,160,0}
Saved in: General.OptionsFileName
191
192
Mesh.Color.Three
Color 3 in color carousel
Default value: {0,255,192}
Saved in: General.OptionsFileName
Mesh.Color.Four
Color 4 in color carousel
Default value: {255,200,0}
Saved in: General.OptionsFileName
Mesh.Color.Five
Color 5 in color carousel
Default value: {0,216,255}
Saved in: General.OptionsFileName
Mesh.Color.Six
Color 6 in color carousel
Default value: {255,240,0}
Saved in: General.OptionsFileName
Mesh.Color.Seven
Color 7 in color carousel
Default value: {0,176,255}
Saved in: General.OptionsFileName
Mesh.Color.Eight
Color 8 in color carousel
Default value: {228,255,0}
Saved in: General.OptionsFileName
Mesh.Color.Nine
Color 9 in color carousel
Default value: {0,116,255}
Saved in: General.OptionsFileName
Mesh.Color.Ten
Color 10 in color carousel
Default value: {188,255,0}
Saved in: General.OptionsFileName
Mesh.Color.Eleven
Color 11 in color carousel
Default value: {0,76,255}
Saved in: General.OptionsFileName
Mesh.Color.Twelve
Color 12 in color carousel
Default value: {148,255,0}
Saved in: General.OptionsFileName
Gmsh 2.8
Appendix B: Options
Mesh.Color.Thirteen
Color 13 in color carousel
Default value: {24,0,255}
Saved in: General.OptionsFileName
Mesh.Color.Fourteen
Color 14 in color carousel
Default value: {108,255,0}
Saved in: General.OptionsFileName
Mesh.Color.Fifteen
Color 15 in color carousel
Default value: {84,0,255}
Saved in: General.OptionsFileName
Mesh.Color.Sixteen
Color 16 in color carousel
Default value: {68,255,0}
Saved in: General.OptionsFileName
Mesh.Color.Seventeen
Color 17 in color carousel
Default value: {104,0,255}
Saved in: General.OptionsFileName
Mesh.Color.Eighteen
Color 18 in color carousel
Default value: {0,255,52}
Saved in: General.OptionsFileName
Mesh.Color.Nineteen
Color 19 in color carousel
Default value: {184,0,255}
Saved in: General.OptionsFileName
193
194
Solver.Executable3
System command to launch solver 3
Default value: ""
Saved in: General.SessionFileName
Solver.Executable4
System command to launch solver 4
Default value: ""
Saved in: General.SessionFileName
Solver.Executable5
System command to launch solver 5
Default value: ""
Saved in: General.SessionFileName
Solver.Executable6
System command to launch solver 6
Default value: ""
Saved in: General.SessionFileName
Solver.Executable7
System command to launch solver 7
Default value: ""
Saved in: General.SessionFileName
Solver.Executable8
System command to launch solver 8
Default value: ""
Saved in: General.SessionFileName
Solver.Executable9
System command to launch solver 9
Default value: ""
Saved in: General.SessionFileName
Solver.Name0
Name of solver 0
Default value: "GetDP"
Saved in: General.SessionFileName
Solver.Name1
Name of solver 1
Default value: ""
Saved in: General.SessionFileName
Solver.Name2
Name of solver 2
Default value: ""
Saved in: General.SessionFileName
Gmsh 2.8
Appendix B: Options
Solver.Name3
Name of solver 3
Default value: ""
Saved in: General.SessionFileName
Solver.Name4
Name of solver 4
Default value: ""
Saved in: General.SessionFileName
Solver.Name5
Name of solver 5
Default value: ""
Saved in: General.SessionFileName
Solver.Name6
Name of solver 6
Default value: ""
Saved in: General.SessionFileName
Solver.Name7
Name of solver 7
Default value: ""
Saved in: General.SessionFileName
Solver.Name8
Name of solver 8
Default value: ""
Saved in: General.SessionFileName
Solver.Name9
Name of solver 9
Default value: ""
Saved in: General.SessionFileName
Solver.RemoteLogin0
Command to login to a remote host to launch solver 0
Default value: ""
Saved in: General.SessionFileName
Solver.RemoteLogin1
Command to login to a remote host to launch solver 1
Default value: ""
Saved in: General.SessionFileName
Solver.RemoteLogin2
Command to login to a remote host to launch solver 2
Default value: ""
Saved in: General.SessionFileName
195
196
Gmsh 2.8
Solver.RemoteLogin3
Command to login to a remote host to launch solver 3
Default value: ""
Saved in: General.SessionFileName
Solver.RemoteLogin4
Command to login to a remote host to launch solver 4
Default value: ""
Saved in: General.SessionFileName
Solver.RemoteLogin5
Command to login to a remote host to launch solver 5
Default value: ""
Saved in: General.SessionFileName
Solver.RemoteLogin6
Command to login to a remote host to launch solver 6
Default value: ""
Saved in: General.SessionFileName
Solver.RemoteLogin7
Command to login to a remote host to launch solver 7
Default value: ""
Saved in: General.SessionFileName
Solver.RemoteLogin8
Command to login to a remote host to launch solver 8
Default value: ""
Saved in: General.SessionFileName
Solver.RemoteLogin9
Command to login to a remote host to launch solver 9
Default value: ""
Saved in: General.SessionFileName
Solver.SocketName
Base name of socket (UNIX socket if the name does not contain a colon, TCP/IP
otherwise, in the form host:baseport; the actual name/port is constructed by
appending the unique client id. If baseport is 0, the port is chosen automatically
(recommended))
Default value: ".gmshsock"
Saved in: General.OptionsFileName
Solver.AlwaysListen
Always listen to incoming connection requests?
Default value: 0
Saved in: General.OptionsFileName
Solver.AutoArchiveOutputFiles
Automatically archive output files after each computation
Default value: 0
Saved in: General.OptionsFileName
Appendix B: Options
197
Solver.AutoCheck
Automatically check model every time a parameter is changed
Default value: 1
Saved in: General.OptionsFileName
Solver.AutoSaveDatabase
Automatically save database after each computation
Default value: 0
Saved in: General.OptionsFileName
Solver.AutoMesh
Automatically mesh if necesssary (0: never remesh; 1: on startup, use existing
mesh on disk if available; 2: always remesh)
Default value: 1
Saved in: General.OptionsFileName
Solver.AutoMergeFile
Automatically merge result files
Default value: 1
Saved in: General.OptionsFileName
Solver.AutoShowViews
Automcatically show newly merged results (0: none; 1: all; 2: last one)
Default value: 2
Saved in: General.OptionsFileName
Solver.AutoShowLastStep
Automatically show the last time step in newly merged results
Default value: 1
Saved in: General.OptionsFileName
Solver.Plugins
Enable default solver plugins?
Default value: 0
Saved in: General.OptionsFileName
Solver.ShowInvisibleParameters
Show all parameters, even those marked invisible
Default value: 0
Saved in: General.OptionsFileName
Solver.Timeout
Time (in seconds) before closing the socket if no connection is happening
Default value: 5
Saved in: General.OptionsFileName
198
Gmsh 2.8
PostProcessing.AnimationCycle
Cycle through time steps (0) or views (1) for animations
Default value: 0
Saved in: General.OptionsFileName
PostProcessing.AnimationStep
Step increment for animations
Default value: 1
Saved in: General.OptionsFileName
PostProcessing.CombineRemoveOriginal
Remove original views after a Combine operation
Default value: 1
Saved in: General.OptionsFileName
PostProcessing.ForceNodeData
Try to force saving datasets as NodeData
Default value: 0
Saved in: General.OptionsFileName
PostProcessing.Format
Default file format for post-processing views (0=ASCII view, 1=binary view,
2=parsed view, 3=STL triangulation, 4=raw text, 5=Gmsh mesh, 6=MED file,
10=automatic)
Default value: 10
Saved in: General.OptionsFileName
PostProcessing.HorizontalScales
Display value scales horizontally
Default value: 1
Saved in: General.OptionsFileName
PostProcessing.Link
Post-processing view links (0=apply next option changes to selected views,
1=force same options for all selected views)
Default value: 0
Saved in: General.OptionsFileName
PostProcessing.NbViews
Current number of views merged (read-only)
Default value: 0
Saved in: PostProcessing.Plugins
Enable default post-processing plugins?
Default value: 1
Saved in: General.OptionsFileName
PostProcessing.Smoothing
Apply (non-reversible) smoothing to post-processing view when merged
Default value: 0
Saved in: General.OptionsFileName
Appendix B: Options
199
View.Attributes
Optional string attributes
Default value: ""
Saved in: General.OptionsFileName
View.AxesFormatX
Number format for X-axis (in standard C form)
Default value: "%.3g"
Saved in: General.OptionsFileName
View.AxesFormatY
Number format for Y-axis (in standard C form)
Default value: "%.3g"
Saved in: General.OptionsFileName
View.AxesFormatZ
Number format for Z-axis (in standard C form)
Default value: "%.3g"
Saved in: General.OptionsFileName
View.AxesLabelX
X-axis label
Default value: ""
Saved in: General.OptionsFileName
View.AxesLabelY
Y-axis label
Default value: ""
Saved in: General.OptionsFileName
View.AxesLabelZ
Z-axis label
Default value: ""
Saved in: General.OptionsFileName
View.FileName
Default post-processing view file name
Default value: ""
Saved in: View.Format
Number format (in standard C form)
Default value: "%.3g"
Saved in: General.OptionsFileName
View.GeneralizedRaiseX
Generalized elevation of the view along X-axis (in model coordinates, using
formula possibly containing x, y, z, s[tep], t[ime], v0, ... v8)
Default value: "v0"
Saved in: General.OptionsFileName
200
Gmsh 2.8
View.GeneralizedRaiseY
Generalized elevation of the view along Y-axis (in model coordinates, using
formula possibly containing x, y, z, s[tep], t[ime], v0, ... v8)
Default value: "v1"
Saved in: General.OptionsFileName
View.GeneralizedRaiseZ
Generalized elevation of the view along Z-axis (in model coordinates, using
formula possibly containing x, y, z, s[tep], t[ime], v0, ... v8)
Default value: "v2"
Saved in: General.OptionsFileName
View.Name
Default post-processing view name
Default value: ""
Saved in: View.Stipple0
First stippling pattern
Default value: "1*0x1F1F"
Saved in: General.OptionsFileName
View.Stipple1
Second stippling pattern
Default value: "1*0x3333"
Saved in: General.OptionsFileName
View.Stipple2
Third stippling pattern
Default value: "1*0x087F"
Saved in: General.OptionsFileName
View.Stipple3
Fourth stippling pattern
Default value: "1*0xCCCF"
Saved in: General.OptionsFileName
View.Stipple4
Fifth stippling pattern
Default value: "2*0x1111"
Saved in: General.OptionsFileName
View.Stipple5
Sixth stippling pattern
Default value: "2*0x0F0F"
Saved in: General.OptionsFileName
View.Stipple6
Seventh stippling pattern
Default value: "1*0xCFFF"
Saved in: General.OptionsFileName
Appendix B: Options
201
View.Stipple7
Eighth stippling pattern
Default value: "2*0x0202"
Saved in: General.OptionsFileName
View.Stipple8
Ninth stippling pattern
Default value: "2*0x087F"
Saved in: General.OptionsFileName
View.Stipple9
Tenth stippling pattern
Default value: "1*0xFFFF"
Saved in: General.OptionsFileName
View.AbscissaRangeType
Ascissa scale range type (1=default, 2=custom)
Default value: 1
Saved in: General.OptionsFileName
View.AdaptVisualizationGrid
Use adaptive visualization grid (for high-order elements)?
Default value: 0
Saved in: General.OptionsFileName
View.AngleSmoothNormals
Threshold angle below which normals are not smoothed
Default value: 30
Saved in: General.OptionsFileName
View.ArrowSizeMax
Maximum display size of arrows (in pixels)
Default value: 60
Saved in: General.OptionsFileName
View.ArrowSizeMin
Minimum display size of arrows (in pixels)
Default value: 0
Saved in: General.OptionsFileName
View.AutoPosition
Position the scale or 2D plot automatically (0: manual, 1: automatic, 2: top
left, 3: top right, 4: bottom left, 5: bottom right, 6: top, 7: bottom, 8: left, 9:
right, 10: full, 11: top third)
Default value: 1
Saved in: General.OptionsFileName
View.Axes
Axes (0=none, 1=simple axes, 2=box, 3=full grid, 4=open grid, 5=ruler)
Default value: 0
Saved in: General.OptionsFileName
202
View.AxesMikado
Mikado axes style
Default value: 0
Saved in: General.OptionsFileName
View.AxesAutoPosition
Position the axes automatically
Default value: 1
Saved in: General.OptionsFileName
View.AxesMaxX
Maximum X-axis coordinate
Default value: 1
Saved in: General.OptionsFileName
View.AxesMaxY
Maximum Y-axis coordinate
Default value: 1
Saved in: General.OptionsFileName
View.AxesMaxZ
Maximum Z-axis coordinate
Default value: 1
Saved in: General.OptionsFileName
View.AxesMinX
Minimum X-axis coordinate
Default value: 0
Saved in: General.OptionsFileName
View.AxesMinY
Minimum Y-axis coordinate
Default value: 0
Saved in: General.OptionsFileName
View.AxesMinZ
Minimum Z-axis coordinate
Default value: 0
Saved in: General.OptionsFileName
View.AxesTicsX
Number of tics on the X-axis
Default value: 5
Saved in: General.OptionsFileName
View.AxesTicsY
Number of tics on the Y-axis
Default value: 5
Saved in: General.OptionsFileName
Gmsh 2.8
Appendix B: Options
203
View.AxesTicsZ
Number of tics on the Z-axis
Default value: 5
Saved in: General.OptionsFileName
View.Boundary
Draw the N minus b-dimensional boundary of the element (N=element dimension, b=option value)
Default value: 0
Saved in: General.OptionsFileName
View.CenterGlyphs
Center glyphs (arrows, numbers, etc.)? (0=left, 1=centered, 2=right)
Default value: 1
Saved in: General.OptionsFileName
View.Clip
Enable clipping planes? (Plane[i]=2^i, i=0,...,5)
Default value: 0
Saved in: View.ColormapAlpha
Colormap alpha channel value (used only if != 1)
Default value: 1
Saved in: General.OptionsFileName
View.ColormapAlphaPower
Colormap alpha channel power
Default value: 0
Saved in: General.OptionsFileName
View.ColormapBeta
Colormap beta parameter (gamma = 1-beta)
Default value: 0
Saved in: General.OptionsFileName
View.ColormapBias
Colormap bias
Default value: 0
Saved in: General.OptionsFileName
View.ColormapCurvature
Colormap curvature or slope coefficient
Default value: 0
Saved in: General.OptionsFileName
View.ColormapInvert
Invert the color values, i.e., replace x with (255-x) in the colormap?
Default value: 0
Saved in: General.OptionsFileName
204
View.ColormapNumber
Default colormap number
Default value: 2
Saved in: General.OptionsFileName
View.ColormapRotation
Incremental colormap rotation
Default value: 0
Saved in: General.OptionsFileName
View.ColormapSwap
Swap the min/max values in the colormap?
Default value: 0
Saved in: General.OptionsFileName
View.ComponentMap0
Forced component 0 (if View.ForceComponents > 0)
Default value: 0
Saved in: General.OptionsFileName
View.ComponentMap1
Forced component 1 (if View.ForceComponents > 0)
Default value: 1
Saved in: General.OptionsFileName
View.ComponentMap2
Forced component 2 (if View.ForceComponents > 0)
Default value: 2
Saved in: General.OptionsFileName
View.ComponentMap3
Forced component 3 (if View.ForceComponents > 0)
Default value: 3
Saved in: General.OptionsFileName
View.ComponentMap4
Forced component 4 (if View.ForceComponents > 0)
Default value: 4
Saved in: General.OptionsFileName
View.ComponentMap5
Forced component 5 (if View.ForceComponents > 0)
Default value: 5
Saved in: General.OptionsFileName
View.ComponentMap6
Forced component 6 (if View.ForceComponents > 0)
Default value: 6
Saved in: General.OptionsFileName
Gmsh 2.8
Appendix B: Options
View.ComponentMap7
Forced component 7 (if View.ForceComponents > 0)
Default value: 7
Saved in: General.OptionsFileName
View.ComponentMap8
Forced component 8 (if View.ForceComponents > 0)
Default value: 8
Saved in: General.OptionsFileName
View.CustomAbscissaMax
User-defined maximum abscissa value
Default value: 0
Saved in: View.CustomAbscissaMin
User-defined minimum abscissa value
Default value: 0
Saved in: View.CustomMax
User-defined maximum value to be displayed
Default value: 0
Saved in: View.CustomMin
User-defined minimum value to be displayed
Default value: 0
Saved in: View.DisplacementFactor
Displacement amplification
Default value: 1
Saved in: General.OptionsFileName
View.DrawHexahedra
Display post-processing hexahedra?
Default value: 1
Saved in: General.OptionsFileName
View.DrawLines
Display post-processing lines?
Default value: 1
Saved in: General.OptionsFileName
View.DrawPoints
Display post-processing points?
Default value: 1
Saved in: General.OptionsFileName
205
206
View.DrawPrisms
Display post-processing prisms?
Default value: 1
Saved in: General.OptionsFileName
View.DrawPyramids
Display post-processing pyramids?
Default value: 1
Saved in: General.OptionsFileName
View.DrawQuadrangles
Display post-processing quadrangles?
Default value: 1
Saved in: General.OptionsFileName
View.DrawScalars
Display scalar values?
Default value: 1
Saved in: General.OptionsFileName
View.DrawSkinOnly
Draw only the skin of 3D scalar views?
Default value: 0
Saved in: General.OptionsFileName
View.DrawStrings
Display post-processing annotation strings?
Default value: 1
Saved in: General.OptionsFileName
View.DrawTensors
Display tensor values?
Default value: 1
Saved in: General.OptionsFileName
View.DrawTetrahedra
Display post-processing tetrahedra?
Default value: 1
Saved in: General.OptionsFileName
View.DrawTriangles
Display post-processing triangles?
Default value: 1
Saved in: General.OptionsFileName
View.DrawVectors
Display vector values?
Default value: 1
Saved in: General.OptionsFileName
Gmsh 2.8
Appendix B: Options
207
View.Explode
Element shrinking factor (between 0 and 1)
Default value: 1
Saved in: General.OptionsFileName
View.ExternalView
Index of the view used to color vector fields (-1=self)
Default value: -1
Saved in: General.OptionsFileName
View.FakeTransparency
Use fake transparency (cheaper than the real thing, but incorrect)
Default value: 0
Saved in: General.OptionsFileName
View.ForceNumComponents
Force number of components to display (see View.ComponentMapN for mapping)
Default value: 0
Saved in: General.OptionsFileName
View.GeneralizedRaiseFactor
Generalized raise amplification factor
Default value: 1
Saved in: General.OptionsFileName
View.GeneralizedRaiseView
Index of the view used for generalized raise (-1=self)
Default value: -1
Saved in: General.OptionsFileName
View.GlyphLocation
Glyph (arrow, number, etc.) location (1=center of gravity, 2=node)
Default value: 1
Saved in: General.OptionsFileName
View.Height
Height (in pixels) of the scale or 2D plot
Default value: 200
Saved in: General.OptionsFileName
View.IntervalsType
Type of interval display (1=iso, 2=continuous, 3=discrete, 4=numeric)
Default value: 2
Saved in: General.OptionsFileName
View.Light
Enable lighting for the view
Default value: 1
Saved in: General.OptionsFileName
208
Gmsh 2.8
View.LightLines
Light element edges
Default value: 1
Saved in: General.OptionsFileName
View.LightTwoSide
Light both sides of surfaces (leads to slower rendering)
Default value: 1
Saved in: General.OptionsFileName
View.LineType
Display lines as solid color segments (0) or 3D cylinders (1)
Default value: 0
Saved in: General.OptionsFileName
View.LineWidth
Display width of lines (in pixels)
Default value: 1
Saved in: General.OptionsFileName
View.MaxRecursionLevel
Maximum recursion level for adaptive views
Default value: 0
Saved in: General.OptionsFileName
View.Max
View.MaxX
Maximum view coordinate along the X-axis (read-only)
Default value: 0
Saved in: View.MaxY
Maximum view coordinate along the Y-axis (read-only)
Default value: 0
Saved in: View.MaxZ
Maximum view coordinate along the Z-axis (read-only)
Default value: 0
Saved in: View.Min
View.MinX
Minimum view coordinate along the X-axis (read-only)
Default value: 0
Saved in: -
Appendix B: Options
209
View.MinY
Minimum view coordinate along the Y-axis (read-only)
Default value: 0
Saved in: View.MinZ
Minimum view coordinate along the Z-axis (read-only)
Default value: 0
Saved in: View.NbIso
Number of intervals
Default value: 10
Saved in: General.OptionsFileName
View.NbTimeStep
Number of time steps in the view (do not change this!)
Default value: 1
Saved in: View.NormalRaise
Elevation of the view along the normal (in model coordinates)
Default value: 0
Saved in: View.Normals
Display size of normal vectors (in pixels)
Default value: 0
Saved in: General.OptionsFileName
View.OffsetX
Translation of the view along X-axis (in model coordinates)
Default value: 0
Saved in: View.OffsetY
Translation of the view along Y-axis (in model coordinates)
Default value: 0
Saved in: View.OffsetZ
Translation of the view along Z-axis (in model coordinates)
Default value: 0
Saved in: View.PointSize
Display size of points (in pixels)
Default value: 3
Saved in: General.OptionsFileName
View.PointType
Display points as solid color dots (0), 3D spheres (1), scaled dots (2) or scaled
spheres (3)
210
Gmsh 2.8
Default value: 0
Saved in: General.OptionsFileName
View.PositionX
X position (in pixels) of the scale or 2D plot (< 0: measure from right edge; >=
1e5: centered)
Default value: 100
Saved in: General.OptionsFileName
View.PositionY
Y position (in pixels) of the scale or 2D plot (< 0: measure from bottom edge;
>= 1e5: centered)
Default value: 50
Saved in: General.OptionsFileName
View.RaiseX
Elevation of the view along X-axis (in model coordinates)
Default value: 0
Saved in: View.RaiseY
Elevation of the view along Y-axis (in model coordinates)
Default value: 0
Saved in: View.RaiseZ
Elevation of the view along Z-axis (in model coordinates)
Default value: 0
Saved in: View.RangeType
Value scale range type (1=default, 2=custom, 3=per time step)
Default value: 1
Saved in: General.OptionsFileName
View.Sampling
Element sampling rate (draw one out every Sampling elements)
Default value: 1
Saved in: General.OptionsFileName
View.SaturateValues
Saturate the view values to custom min and max (1=true, 0=false)
Default value: 0
Saved in: General.OptionsFileName
View.ScaleType
Value scale type (1=linear, 2=logarithmic, 3=double logarithmic)
Default value: 1
Saved in: General.OptionsFileName
Appendix B: Options
211
View.ShowElement
Show element boundaries?
Default value: 0
Saved in: General.OptionsFileName
View.ShowScale
Show value scale?
Default value: 1
Saved in: General.OptionsFileName
View.ShowTime
Time display mode (0=hidden, 1=time value if multi-step, 2=time value always,
3=time step if multi-step, 4=time step always)
Default value: 3
Saved in: General.OptionsFileName
View.SmoothNormals
Smooth the normals?
Default value: 0
Saved in: General.OptionsFileName
View.Stipple
Stipple curves in 2D plots?
Default value: 0
Saved in: General.OptionsFileName
View.Tangents
Display size of tangent vectors (in pixels)
Default value: 0
Saved in: General.OptionsFileName
View.TargetError
Target representation error for adaptive views
Default value: 0.01
Saved in: General.OptionsFileName
View.TensorType
Tensor Visualization Type
Default value: 1
Saved in: General.OptionsFileName
View.TimeStep
Current time step displayed
Default value: 0
Saved in: View.TransformXX
Element (1,1) of the 3x3 coordinate transformation matrix
Default value: 1
Saved in: -
212
Gmsh 2.8
View.TransformXY
Element (1,2) of the 3x3 coordinate transformation matrix
Default value: 0
Saved in: View.TransformXZ
Element (1,3) of the 3x3 coordinate transformation matrix
Default value: 0
Saved in: View.TransformYX
Element (2,1) of the 3x3 coordinate transformation matrix
Default value: 0
Saved in: View.TransformYY
Element (2,2) of the 3x3 coordinate transformation matrix
Default value: 1
Saved in: View.TransformYZ
Element (2,3) of the 3x3 coordinate transformation matrix
Default value: 0
Saved in: View.TransformZX
Element (3,1) of the 3x3 coordinate transformation matrix
Default value: 0
Saved in: View.TransformZY
Element (3,2) of the 3x3 coordinate transformation matrix
Default value: 0
Saved in: View.TransformZZ
Element (3,3) of the 3x3 coordinate transformation matrix
Default value: 1
Saved in: View.Type
Type of plot (1=3D, 2=2D space, 3=2D time)
Default value: 1
Saved in: View.UseGeneralizedRaise
Use generalized raise?
Default value: 0
Saved in: General.OptionsFileName
View.VectorType
Vector display type (1=segment, 2=arrow, 3=pyramid, 4=3D arrow, 5=displacement, 6=comet)
Appendix B: Options
Default value: 4
Saved in: General.OptionsFileName
View.Visible
Is the view visible?
Default value: 1
Saved in: View.Width
Width (in pixels) of the scale or 2D plot
Default value: 300
Saved in: General.OptionsFileName
View.Color.Points
Point color
Default value: {0,0,0}
Saved in: General.OptionsFileName
View.Color.Lines
Line color
Default value: {0,0,0}
Saved in: General.OptionsFileName
View.Color.Triangles
Triangle color
Default value: {0,0,0}
Saved in: General.OptionsFileName
View.Color.Quadrangles
Quadrangle color
Default value: {0,0,0}
Saved in: General.OptionsFileName
View.Color.Tetrahedra
Tetrahedron color
Default value: {0,0,0}
Saved in: General.OptionsFileName
View.Color.Hexahedra
Hexahedron color
Default value: {0,0,0}
Saved in: General.OptionsFileName
View.Color.Prisms
Prism color
Default value: {0,0,0}
Saved in: General.OptionsFileName
View.Color.Pyramids
Pyramid color
Default value: {0,0,0}
Saved in: General.OptionsFileName
213
214
View.Color.Tangents
Tangent vector color
Default value: {255,255,0}
Saved in: General.OptionsFileName
View.Color.Normals
Normal vector color
Default value: {255,0,0}
Saved in: General.OptionsFileName
View.Color.Text2D
2D text color
Default value: {0,0,0}
Saved in: General.OptionsFileName
View.Color.Text3D
3D text color
Default value: {0,0,0}
Saved in: General.OptionsFileName
View.Color.Axes
Axes color
Default value: {0,0,0}
Saved in: General.OptionsFileName
View.Color.Background2D
Bacground color for 2D plots
Default value: {255,255,255}
Saved in: General.OptionsFileName
View.ColorTable
Color table used to draw the view
Saved in: General.OptionsFileName
Gmsh 2.8
215
216
Gmsh 2.8
ENABLE_BUILD_LIB
Enable lib target for building static Gmsh library (default: OFF)
ENABLE_BUILD_SHARED
Enable shared target for building shared Gmsh library (default: OFF)
ENABLE_BUILD_DYNAMIC
Enable dynamic Gmsh executable (linked with shared lib) (default: OFF)
ENABLE_BUILD_ANDROID
Enable Android NDK library target (experimental) (default: OFF)
ENABLE_BUILD_IOS
Enable iOS (ARM) library target (experimental) (default: OFF)
ENABLE_CGNS
Enable CGNS mesh export (experimental) (default: OFF)
ENABLE_CAIRO
Enable Cairo to render fonts (experimental) (default: ON)
ENABLE_CHACO
Enable Chaco mesh partitioner (alternative to Metis) (default: ON)
ENABLE_DINTEGRATION
Enable discrete integration (needed for levelsets) (default: ON)
ENABLE_FLTK
Enable FLTK graphical user interface (requires mesh/post) (default: ON)
ENABLE_FOURIER_MODEL
Enable Fourier geometrical models (experimental) (default: OFF)
ENABLE_GMM
Enable GMM linear solvers (simple alternative to PETSc) (default: ON)
ENABLE_GRAPHICS
Enable building graphics lib even without GUI (advanced) (default: OFF)
ENABLE_KBIPACK
Enable Kbipack (neeeded by homology solver) (default: ON)
ENABLE_MATHEX
Enable math expression parser (used by plugins and options) (default: ON)
ENABLE_MED
Enable MED mesh and post file formats (default: ON)
ENABLE_MESH
Enable mesh module (required by GUI) (default: ON)
ENABLE_METIS
Enable Metis mesh partitioner (default: ON)
ENABLE_MMG3D
Enable MMG3D 3D anisotropic mesh refinement (default: ON)
217
ENABLE_MPEG_ENCODE
Enable built-in MPEG movie encoder (default: ON)
ENABLE_MPI
Enable MPI (mostly for parser and solver - mesh generation is sequential) (default: OFF)
ENABLE_MSVC_STATIC_RUNTIME
Enable static Visual C++ runtime (default: OFF)
ENABLE_NATIVE_FILE_CHOOSER
Enable native file chooser in GUI (default: ON)
ENABLE_NETGEN
Enable Netgen 3D frontal mesh generator (default: ON)
ENABLE_OCC
Enable Open CASCADE geometrical models (default: ON)
ENABLE_ONELAB
Enable OneLab solver interface (default: ON)
ENABLE_ONELAB_METAMODEL
Enable OneLab metamodels (experimental) (default: ON)
ENABLE_OPENMP
Enable OpenMP (experimental) (default: OFF)
ENABLE_OPTHOM
Enable high-order mesh optimization tools (default: ON)
ENABLE_OS_SPECIFIC_INSTALL
Enable OS-specific (e.g. app bundle) installation (default: ON)
ENABLE_OSMESA
Enable OSMesa for offscreen rendering (experimental) (default: OFF)
ENABLE_PARSER
Enable GEO file parser (required for .geo/.pos files) (default: ON)
ENABLE_PETSC
Enable PETSc linear solvers (required for SLEPc) (default: ON)
ENABLE_PLUGINS
Enable post-processing plugins (default: ON)
ENABLE_POST
Enable post-processing module (required by GUI) (default: ON)
ENABLE_POPPLER
Enable Poppler for displaying PDF documents (experimental) (default: OFF)
ENABLE_QT
Enable dummy QT graphical interface proof-of-concept (experimental) (default:
OFF)
ENABLE_RTREE
Enable RTREE (used for quad/hex mesh generation) (default: ON)
218
Gmsh 2.8
ENABLE_SALOME
Enable Salome routines for CAD healing (default: ON)
ENABLE_SGEOM
Enable SGEOM interface to OCC (experimental) (default: OFF)
ENABLE_SLEPC
Enable SLEPc eigensolvers (required for conformal compounds) (default: ON)
ENABLE_SOLVER
Enable built-in finite element solvers (required for compounds) (default: ON)
ENABLE_TAUCS
Enable Taucs linear solver (alternative to PETSc) (default: ON)
ENABLE_TETGEN
Enable Tetgen 3D initial mesh generator (default: ON)
ENABLE_TETGEN_OLD
Enable older version of Tetgen (default: OFF)
ENABLE_VORO3D
Enable Voro3D (for hex meshing, experimental) (default: ON)
ENABLE_WRAP_JAVA
Enable generation of Java wrappers (experimental) (default: OFF)
ENABLE_WRAP_PYTHON
Enable generation of Python wrappers (default: OFF)
219
220
Gmsh 2.8
5. follow the style used in the existing code when adding something new (spaces after
commas, opening braces for functions on a separate line, opening braces for loops and
tests on the same line, etc.)
221
222
Gmsh 2.8
223
2. Gmsh is very slow when I use many transformations (Translate, Rotate, Symmetry,
Extrude, etc. ). Whats wrong?
The default behavior of Gmsh is to check and suppress all duplicate entities (points,
lines and surfaces) each time a transformation command is issued. This can slow down
things a lot if many transformations are performed. There are two solutions to this
problem:
you may save the unrolled geometry in another file (e.g. with gmsh file.geo -0),
and use this new file for subsequent computations;
or you may set the Geometry.AutoCoherence option to 0. This will prevent any
automatic duplicate check/replacement. If you still need to remove the duplicates
entities, simply add Coherence; at strategic locations in your geo files (e.g. before
the creation of line loops, etc.).
3. How can I display only selected parts of my model?
Use Tools->Visibility. This allows you to select elementary entities and physical
groups, as well as mesh elements, in a variety of ways (in a list or tree browser, by
identification number, interactively, or per window).
4. Can I edit STEP/IGES/BRep models?
Not yet. At the moment you can only change mesh element sizes, define volumes and
physical groups, or delete entities. The easiest way to do this is to merge the model in
a .geo file using Merge "file.step"; and add the relevant scripting command after
that. We plan to add more advanced editing features in the future (to delete entities,
to create mixed surfaces and volumes, to export in .geo format, etc.).
5. How can I build modular geometries?
Define common geometrical objects and options in separate files, reusable in all your
problem definition structures. Then Include the files in your main project file.
224
Gmsh 2.8
The best solution is to not use IGES and use STEP instead. If you really have to use
IGES, check that you dont have duplicate curves (e.g. by displaying their numbers
in the GUI with Tools->Options->Geometry->Visibility->Line numbers). If there are
duplicates, try to change the geometrical tolerance and sew the faces (see options in
Tools->Options->Geometry->General).
4. The quality of the elements generated by the 3D algorithm is very bad.
Use Optimize quality in the mesh menu.
5. Non-recombined 3D extruded meshes sometimes fail.
The swapping algorithm is not very clever at the moment. Try to change the surface mesh a bit, or recombine your mesh to generate prisms or hexahedra instead of
tetrahedra.
6. Does Gmsh automatically couple unstructured tetrahedral meshes and structured hexahedral meshed using pyramids?
Only in simple geometrical cases. We need your help to improve this.
7. Can I explicitly assign region numbers to extruded layers?
No, this feature has been removed in Gmsh 2.0. You must use the standard entity
number instead.
8. Did you remove the elliptic mesh generator in Gmsh 2.0?
Yes. You can achieve the same result by using the transfinite algorithm with smoothing
(e.g., with Mesh.Smoothing = 10).
9. Does Gmsh support curved elements?
Yes, Gmsh can generate both 1st order and 2nd order elements. To generate second
order elements, click on High order in the mesh menu after the mesh is completed.
To always generate 2nd order elements, select Generate second order elements in the
mesh option panel. From the command line, you can also use -order 2.
10. Can I import an existing surface mesh in Gmsh and use it to build a 3D mesh?
Yes, you can import a surface mesh in any one of the supported mesh file formats,
define a volume, and mesh it. For an example see demos/sphere-discrete.geo.
11. How do I define boundary conditions or material properties in Gmsh?
By design, Gmsh does not try to incorporate every possible definition of boundary
conditions or material propertiesthis is a job best left to the solver. Instead, Gmsh
provides a simple mechanism to tag groups of elements, and it is up to the solver to
interpret these tags as boundary conditions, materials, etc. Associating tags with elements in Gmsh is done by defining Physical entities (Physical Points, Physical Lines,
Physical Surfaces and Physical Volumes). See the reference manual as well as the tutorials (in particular tutorial/t1.geo) for a detailed description and some examples.
12. How can I display only the mesh associated with selected geometrical entities?
See How can I display only selected parts of my model?.
13. How can I explore a mesh (for example, to see inside a complex structure)?
You can use Tools->Clipping Planes to clip the region of interest. You can define up
to 6 clipping planes in Gmsh (i.e., enough to define a cube inside your model) and
each plane can clip either the geometry, the mesh, the post-processing views, or any
225
combination of the above. The clipping planes are defined using the four coefficients
A,B,C,D of the equation A*x+B*y+C*y+D=0, which can be adjusted interactively by
dragging the mouse in the input fields.
14. What is the signification of Rho, Eta and Gamma in Tools->Statistics?
They measure the quality of the tetrahedra in a mesh:
Gamma ~ inscribed radius / circumscribed radius Eta
sum edge length^2 Rho ~ min edge length / max edge length
volume^(2/3)
For the exact definitions, see Geo/MElement.cpp. The graphs plot the the number of
elements vs. the quality measure.
15. Why dont the vertex and/or elememt numbers on the screen match the numbers in
the mesh file?
Gmsh reindexes the mesh vertices and elements so that they are numbered in a continuous sequence in the output files. The numbers displayed on screen after mesh generation
thus usually differ from the ones saved in the mesh files. To check the actual numbers
saved in the output file just load the mesh file back using File->Open.
226
Gmsh 2.8
227
229
230
Gmsh 2.8
2.5.0 (Oct 15, 2010): new compound geometrical entities (for remeshing and/or
trans-patch meshing); improved mesh reclassification tool; new client/server
visualization mode; new ability to watch a pattern of files to merge; new
integrated MPEG export; new option to force the type of views dynamically;
bumped mesh version format to 2.2 (small change in the meaning of the partition
tags; this only affects partitioned (i.e. parallel) meshes); renamed several
post-processing plugins (as well as plugin options) to make them easier to
understand; many bug fixes and usability improvements all over the place.
2.4.2 (Sep 21, 2009): solver code refactoring + better IDE integration.
2.4.1 (Sep 1, 2009): fixed surface mesh orientation bug introduced in 2.4.0;
mesh and graphics code refactoring, small usability enhancements and bug fixes.
2.4.0 (Aug 22, 2009): switched build system to CMake; optionally copy
transfinite mesh contraints during geometry transformations; bumped mesh version
format to 2.1 (small change in the $PhysicalNames section, where the group
dimension is now required); ported most plugins to the new post-processing API;
switched from MathEval to MathEx and Flu_Tree_Browser to Fl_Tree; small bug
fixes and improvements all over the place.
2.3.1 (Mar 18, 2009): removed GSL dependency (Gmsh now simply uses Blas and
Lapack); new per-window visibility; added support for composite window printing
and background images; fixed string option affectation in parser; fixed surface
mesh orientation for Open CASCADE models; fixed random triangle orientations in
Delaunay and Frontal algorithms.
2.3.0 (Jan 23, 2009): major graphics and GUI code refactoring; new
full-quad/hexa subdivision algorithm; improved automatic transfinite corner
selection (now also for volumes); improved visibility browser; new automatic
adaptive visualization for high-order simplices; modified arrow size, clipping
planes and transform options; many improvements and bug fixes all over the
place.
2.2.6 (Nov 21, 2008): better transfinite smoothing and automatic corner
selection; fixed high order meshing crashes on Windows and Linux; new uniform
mesh refinement (thanks Brian!); fixed various other small bugs.
2.2.5 (Oct 25, 2008): Gmsh now requires FLTK 1.1.7 or above; various small
improvements (STL and VTK mesh IO, Netgen upgrade, Visual C++ support, Fields,
Mesh.{Msh,Stl,...}Binary changed to Mesh.Bindary) and bug fixes (pyramid
interpolation, Chaco crashes).
2.2.4 (Aug 14, 2008): integrated Metis and Chaco mesh partitioners; variables
can now be deleted in geo files; added support for point datasets in model-based
postprocessing views; small bug fixes.
231
2.2.3 (Jul 14, 2008): enhanced clipping interface; API cleanup; fixed various
bugs (Plugin(Integrate), high order meshes, surface info crash).
2.2.2 (Jun 20, 2008): added geometrical transformations on volumes; fixed bug in
high order mesh generation.
2.2.1 (Jun 15, 2008): various small improvements (adaptive views, GUI, code
cleanup) and bug fixes (high order meshes, Netgen interface).
2.2.0 (Apr 19, 2008): new model-based post-processing backend; added MED I/O for
mesh and post-processing; fixed BDF vertex ordering for 2nd order elements;
replaced Mesh.ConstrainedBackgroundMesh with
Mesh.CharacteristicLength{FromPoints,ExtendFromBoundary}; new Fields interface;
control windows are now non-modal by default; new experimental 2D frontal
algorithm; fixed various bugs.
2.1.1 (Mar 1, 2008): small bug fixes (second order meshes, combine views, divide
and conquer crash, ...).
2.1.0 (Feb 23, 2008): new post-processing database; complete rewrite of
post-processing drawing code; improved surface mesh algorithms; improved
STEP/IGES/BREP support; new 3D mesh optimization algorithm; new default native
file choosers; fixed could not find extruded vertex in extrusions; many
improvements and bug fixes all over the place.
2.0.8 (Jul 13, 2007): unused vertices are not saved in mesh files anymore; new
plugin GUI; automatic GUI font size selection; renamed
Plugin(DecomposeInSimplex) into Plugin(MakeSimplex); reintroduced enhanced
Plugin(SphericalRaise); clarified meshing algo names; new option to save groups
of nodes in UNV meshes; new background mesh infrastructure; many small
improvements and small bug fixes.
2.0.7 (Apr 3, 2007): volumes can now be defined from external CAD surfaces;
Delaunay/Tetgen algorithm is now used by default when available; re-added
support for Plot3D structured mesh format; added ability to export external CAD
models as GEO files (this only works for the limited set of geometrical
primitives available in the GEO language, of course--so trying to convert e.g. a
trimmed NURBS from a STEP file into a GEO file will fail); "lateral" entities
are now added at the end of the list returned by extrusion commands; fixed
various bugs.
2.0 (Feb 5, 2007): new geometry and mesh databases, with support for STEP and
IGES import via Open CASCADE; complete rewrite of geometry and mesh drawing
code; complete rewrite of mesh I/O layer (with new native binary MSH format and
support for import/export of I-deas UNV, Nastran BDF, STL, Medit MESH and VRML
1.0 files); added support for incomplete second order elements; new 2D and 3D
meshing algorithms; improved integration of Netgen and TetGen algorithms;
232
Gmsh 2.8
233
234
Gmsh 2.8
Netgen kernel to version 4.4; new optional TIME list in parsed views to specify
the values of the time steps; several bug fixes in the Elliptic mesh algorithm;
various other small bug fixes and enhancements.
1.56 (Oct 17, 2004): new post-processing option to draw a scalar view raised by
a displacement view without using Plugin(DisplacementRaise) (makes drawing
arbitrary scalar fields on deformed meshes much easier); better post-processing
menu (arbitrary number of views+scrollable+show view number); improved
view->combine; new horizontal post-processing scales; new option to draw the
mesh nodes per element; views can now also be saved in "parsed" format; fixed
various path problems on Windows; small bug fixes.
1.55 (Aug 21, 2004): added background mesh support for Triangle; meshes can now
be displayed using "smoothed" normals (like post-processing views); added GUI
for clipping planes; new interactive clipping/cutting plane definition;
reorganized the Options GUI; enhanced 3D iso computation; enhanced lighting;
many small bug fixes.
1.54 (Jul 03, 2004): integrated Netgen (3D mesh quality optimization +
alternative 3D algorithm); Extrude Surface now always automatically creates a
new volume (in the same way Extrude Point or Extrude Line create new lines and
surfaces, respectively); fixed UNV output; made the "Layers" region numbering
consistent between lines, surfaces and volumes; fixed home directory problem on
Win98; new Plugin(CutParametric); the default project file is now created in the
home directory if no current directory is defined (e.g., when double-clicking on
the icon on Windows/Mac); fixed the discrepancy between the orientation of
geometrical surfaces and the associated surface meshes; added automatic
orientation of surfaces in surface loops; generalized Plugin(Triangulate) to
handle vector and tensor views; much nicer display of discrete iso-surfaces and
custom ranges using smooth normals; small bug fixes and cleanups.
1.53 (Jun 04, 2004): completed support for second order elements in the mesh
module (line, triangles, quadrangles, tetrahedra, hexahedra, prisms and
pyramids); various background mesh fixes and enhancements; major performance
improvements in mesh and post-processing drawing routines (OpenGL vertex arrays
for tri/quads); new Plugin(Evaluate) to evaluate arbitrary expressions on
post-processing views; generalized Plugin(Extract) to handle any combination of
components; generalized "Coherence" to handle transfinite surface/volume
attributes; plugin options can now be set in the option file (like all other
options); added "undo" capability during geometry creation; rewrote the contour
guessing routines so that entities can be selected in an arbitrary order; Mac
users can now double click on geo/msh/pos files in the Finder to launch Gmsh;
removed support for FLTK 1.0; rewrote most of the code related to quadrangles;
fixed 2d elliptic algorithm; removed all OpenGL display list code and options;
fixed light positioning; new BoundingBox command to set the bounding box
explicitly; added support for inexpensive "fake" transparency mode; many code
cleanups.
235
1.52 (May 06, 2004): new raster ("bitmap") PostScript/EPS/PDF output formats;
new Plugin(Extract) to extract a given component from a post-processing view;
new Plugin(CutGrid) and Plugin(StreamLines); improved mesh projection on
non-planar surfaces; added support for second order tetrahedral elements; added
interactive control of element order; refined mesh entity drawing selection (and
renamed most of the corresponding options); enhanced log scale in
post-processing; better font selection; simplified View.Raise{X,Y,Z} by removing
the scaling; various bug fixes (default postscript printing mode, drawing of 3D
arrows/cylinders on Linux, default home directory on Windows, default initial
file browser directory, extrusion of points with non-normalized axes of
rotation, computation of the scene bounding box in scripts, + the usual
documentation updates).
1.51 (Feb 29, 2004): initial support for visualizing mesh partitions; integrated
version 2.0 of the MSH mesh file format; new option to compute post-processing
ranges (min/max) per time step; Multiple views can now be combined into multi
time step ones (e.g. for programs that generate data one time step at a time);
new syntax: #var[] returns the size of the list var[]; enhanced "gmsh -convert";
temporary and error files are now created in the home directory to avoid file
permission issues; new 3D arrows; better lighting support; STL facets can now be
converted into individual geometrical surfaces; many other small improvements
and bug fixes (multi timestep tensors, color by physical entity, parser cleanup,
etc.).
1.50 (Dec 06, 2003): small changes to the visibility browser + made visibility
scriptable (new Show/Hide commands); fixed (rare) crash when deleting views;
split File->Open into File->Open and File->New to behave like most other
programs; Mac versions now use the system menu bar by default (if possible);
fixed bug leading to degenerate and/or duplicate tetrahedra in extruded meshes;
fixed crash when reloading sms meshes.
1.49 (Nov 30, 2003): made Merge, Save and Print behave like Include (i.e., open
files in the same directory as the main project file if the path is relative);
new Plugin(DecomposeInSimplex); new option View.AlphaChannel to set the
transparency factor globally for a post-processing view; new "Combine Views"
command; various bug fixes and cleanups.
1.48 (Nov 23, 2003): new DisplacementRaise plugin to plot arbitrary fields on
deformed meshes; generalized CutMap, CutPlane, CutSphere and Skin plugins to
handle all kinds of elements and fields; new "Save View[n]" command to save
views from a script; many small bug fixes (configure tests for libpng, handling
of erroneous options, multi time step scalar prism drawings, copy of surface
mesh attributes, etc.).
1.47 (Nov 12, 2003): fixed extrusion of surfaces defined by only two curves; new
syntax to retrieve point coordinates and indices of entities created through
236
Gmsh 2.8
237
238
Gmsh 2.8
239
1.19 (May 07, 2001): fixed seg. fault for scalar simplex post-processing; new
Solver menu; interface for GetDP solver through sockets; fixed multiple scale
alignment; added some options + full option descriptions.
1.18 (Apr 26, 2001): fixed many small bugs and incoherences in post-processing;
fixed broken background mesh in 1D mesh generation.
1.17 (Apr 17, 2001): corrected physical points saving; fixed parsing of DOS
files (carriage return problems); easier geometrical selections (cursor change);
plugin manager; enhanced variable arrays (sublist selection and affectation);
line loop check; New arrow display; reduced number of fatal errors + better
handling in interactive mode; fixed bug when opening meshes; enhanced File->Open
behavior for meshes and post-processing views.
1.16 (Feb 26, 2001): added single/double buffer selection (only useful for Unix
versions of Gmsh run from remote hosts without GLX); fixed a bug for recent
versions of the opengl32.dll on Windows, which caused OpenGL fonts not to show
up.
1.15 (Feb 23, 2001): added automatic visibility setting during entity selection;
corrected geometrical extrusion bug.
1.14 (Feb 17, 2001): corrected a few bugs in the GUI (most of them were
introduced in 1.13); added interactive color selection; made the option database
bidirectional (i.e. scripts now correctly update the GUI); default options can
now be saved and automatically reloaded at startup; made some changes to the
scripting syntax (PostProcessing.View[n] becomes View[n]; Offset0 becomes
OffsetX, etc.); corrected the handling of simple triangular surfaces with large
characteristic lengths in the 2D isotropic algorithm; added an ASCII to binary
post-processing view converter.
1.13 (Feb 09, 2001): added support for JPEG output on Windows.
1.12: corrected vector lines in the post-processing parsed format; corrected
animation on Windows; corrected file creation in scripts on Windows; direct
affectation of variable arrays.
1.11 (Feb 07, 2001): corrected included file loading problem.
1.10 (Feb 04, 2001): switched from Motif to FLTK for the GUI. Many small tweaks.
1.00 (Jan 15, 2001): added PPM and YUV output; corrected nested If/Endif;
Corrected several bugs for pixel output and enhanced GIF output (dithering,
transparency); slightly changed the post-processing file format to allow both
single and double precision numbers.
240
Gmsh 2.8
0.999 (Dec 20, 2000): added JPEG output and easy MPEG generation (see t8.geo in
the tutorial); clean up of export functions; small fixes; Linux versions are now
compiled with gcc 2.95.2, which should fix the problems encountered with
Mandrake 7.2.
0.998 (Dec 19, 2000): corrected bug introduced in 0.997 in the generation of the
initial 3D mesh.
0.997 (Dec 14, 2000): corrected bug in interactive surface/volume selection;
Added interactive symmetry; corrected geometrical extrusion with rotation in
degenerated or partially degenerated cases; corrected bug in 2D mesh when
meshing in the mean plane.
0.996: arrays of variables; enhanced Printf and Sprintf; Simplified options
(suppression of option arrays).
0.995 (Dec 11, 2000): totally rewritten geometrical database (performance has
been drastically improved for all geometrical transformations, and most notably
for extrusion). As a consequence, the internal numbering of geometrical entities
has changed: this will cause incompatibilities with old .geo files, and will
require a partial rewrite of your old .geo files if these files made use of
geometrical transformations. The syntax of the .geo file has also been
clarified. Many additions for scripting purposes. New extrusion mesh
generator. Preliminary version of the coupling between extruded and Delaunay
meshes. New option and procedural database. All interactive operations can be
scripted in the input files. See the last example in the tutorial for an
example. Many stability enhancements in the 2D and 3D mesh
algorithms. Performance boost of the 3D algorithm. Gmsh is still slow, but the
performance becomes acceptable. An average 1000 tetrahedra/second is obtained on
a 600Mhz computer for a mesh of one million tetrahedra. New anisotropic 2D mesh
algorithm. New (ASCII and binary) post-processing file format and clarified mesh
file format. New handling for interactive rotations (trackball mode). New
didactic interactive mesh construction (watch the Delaunay algorithm in real
time on complex geometries: thats exciting ;-). And many, many bug fixes and
cleanups.
0.992 (Nov 13, 2000): corrected recombined extrusion; corrected ellipses; added
simple automatic animation of post-processing maps; fixed various bugs.
0.991 (Oct 24, 2000): fixed a serious allocation bug in 2D algorithm, which
caused random crashes. All users should upgrade to 0.991.
0.990: bug fix in non-recombined 3D transfinite meshes.
0.989 (Sep 01, 2000): added ability to reload previously saved meshes; some new
command line options; reorganization of the scale menu; GIF output.
241
0.987: fixed bug with smoothing (leading to the possible generation of erroneous
3d meshes); corrected bug for mixed 3D meshes; moved the toggle view link
option to Opt->Postprocessing_Options.
0.986: fixed overlay problems; SGI version should now also run on 32 bits
machines; fixed small 3d mesh bug.
0.985: corrected colormap bug on HP, SUN, SGI and IBM versions; corrected small
initialization bug in postscript output.
0.984: corrected bug in display lists; added some options in Opt->General.
0.983: corrected some seg. faults in interactive mode; corrected bug in
rotations; changed default window sizes for better match with 1024x768 screens
(default X resources can be changed: see ex03.geo).
0.982: lighting for mesh and post-processing; corrected 2nd order mesh on non
plane surfaces; added example 13.
243
244
Gmsh 2.8
and that the name of Silicon Graphics, Inc. not be used in advertising or
publicity pertaining to distribution of the software without specific, written
prior permission.
The GIF and PPM routines (Graphics/gl2gif.cpp) are based on code copyright (C)
1989, 1991, Jef Poskanzer. Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in supporting
documentation. This software is provided "as is" without express or implied
warranty.
The colorbar widget (Fltk/Colorbar_Window.cpp) was inspired by code from the
Vis5d program for visualizing five dimensional gridded data sets, copyright (C)
1990-1995, Bill Hibbard, Brian Paul, Dave Santek, and Andre Battaiola.
This version of Gmsh may contain code (in the contrib/ANN subdirectory)
copyright (C) 1997-2005 University of Maryland and Sunil Arya and David Mount:
check the configuration options.
This version of Gmsh may contain code (in the contrib/Chaco subdirectory)
written by Bruce Hendrickson and Robert Leland at Sandia National Laboratories
under US Department of Energy contract DE-AC04-76DP00789 and is copyrighted by
Sandia Corporation: check the configuration options.
This version of Gmsh may contain code (in the contrib/gmm subdirectory)
copyright (C) 2002-2008 Yves Renard: check the configuration options.
This version of Gmsh may contain code (in the contrib/kbipack subdirectory)
copyright (C) 2005 Saku Suuriniemi: check the configuration options.
This version of Gmsh may contain code (in the contrib/MathEx subdirectory) based
in part on the work of the SSCILIB Library, copyright (C) 2000-2003 Sadao
Massago: check the configuration options.
This version of Gmsh may contain code (in the contrib/Metis subdirectory)
written by George Karypis (karypis at cs.umn.edu), copyright (C) 1998 Regents of
the University of Minnesota: check the configuration options.
This version of Gmsh may contain code (in the contrib/mpeg_encode subdirectory)
copyright (c) 1995 The Regents of the University of California: check the
configuration options.
This version of Gmsh may contain code (in the contrib/Netgen subdirectory)
copyright (C) 1994-2004 Joachim Sch"oberl: check the configuration options.
This version of Gmsh may contain code (in the contrib/Tetgen subdirectory)
245
Appendix H: License
247
Appendix H License
Gmsh is provided under the terms of the GNU General Public License
(GPL), Version 2 or later, with the following exception:
The copyright holders of Gmsh give you permission to combine Gmsh
with code included in the standard release of TetGen (from Hang
Si), Netgen (from Joachim Sch"oberl), Chaco (from Bruce Hendrickson
and Robert Leland at Sandia National Laboratories), METIS (from
George Karypis at the University of Minnesota) and OpenCASCADE
(from Open CASCADE S.A.S) under their respective licenses. You may
copy and distribute such a system following the terms of the GNU
GPL for Gmsh and the licenses of the other code concerned, provided
that you include the source code of that other code when and as the
GNU GPL requires distribution of source code.
Note that people who make modified versions of Gmsh are not
obligated to grant this special exception for their modified
versions; it is their choice whether to do so. The GNU General
Public License gives permission to release a modified version
without this exception; this exception also makes it possible to
release a modified version which carries forward this exception.
End of exception.
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundations software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
248
Gmsh 2.8
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each authors protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyones free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
Appendix H: License
249
250
Gmsh 2.8
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
Appendix H: License
251
252
Gmsh 2.8
Appendix H: License
253
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the
to attach them to the start of each source file
convey the exclusion of warranty; and each file
the "copyright" line and a pointer to where the
program. It is safest
to most effectively
should have at least
full notice is found.
<one line to give the programs name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
254
Gmsh 2.8
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type show w.
This is free software, and you are welcome to redistribute it
under certain conditions; type show c for details.
The hypothetical commands show w and show c should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than show w and show c; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
Gnomovision (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
Concept index
255
Concept index
2
2D plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
3
3D plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
A
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
Authors, e-mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Expressions, affectation . . . . . . . . . . . . . . . . . . . . . . . . 26
Expressions, character . . . . . . . . . . . . . . . . . . . . . . . . . 21
Expressions, color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Expressions, definition . . . . . . . . . . . . . . . . . . . . . . . . . 19
Expressions, floating point . . . . . . . . . . . . . . . . . . . . . 19
Expressions, identifiers . . . . . . . . . . . . . . . . . . . . . . . . . 26
Expressions, lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Extrusion, geometry . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Extrusion, mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
F
B
Background mesh. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Binary operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Bindings, keyboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Bindings, mouse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Bugs, reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
FAQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
File format, mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
File formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
File, comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Floating point numbers . . . . . . . . . . . . . . . . . . . . . . . . 19
Frequently asked questions . . . . . . . . . . . . . . . . . . . 221
Functions, built-in . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Functions, user-defined . . . . . . . . . . . . . . . . . . . . . . . . 25
C
Changelog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Characteristic lengths. . . . . . . . . . . . . . . . . . . . . . . . . . 43
Colors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Command-line options . . . . . . . . . . . . . . . . . . . . . . . . . 12
Commands, general . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Commands, geometry . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Commands, mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Commands, post-processing . . . . . . . . . . . . . . . . . . . . 68
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Concepts, index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
Conditionals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Contact information . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Contributors, list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
Copyright . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3, 243
Credits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
D
Developer, information . . . . . . . . . . . . . . . . . . . . . . . 219
Document syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Download . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
G
General commands . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry commands . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry, extrusion . . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry, module . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry, options . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry, transformations . . . . . . . . . . . . . . . . . . . . .
Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
26
33
37
33
39
38
67
H
History, versions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
I
Index, concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
Index, syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
Interactive mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Internet address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
K
E
E-mail, authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Elementary lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Elementary points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Elementary surfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Elementary volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Evaluation order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Keyboard, shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Keywords, index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
L
License . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3, 247
Lines, elementary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
256
Gmsh 2.8
Lines, physical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
M
Mailing list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Mesh commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Mesh, background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Mesh, element size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Mesh, extrusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Mesh, file format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Mesh, module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Mesh, options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Mesh, transfinite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Module, geometry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Module, Mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Module, Post-processing . . . . . . . . . . . . . . . . . . . . . . . 67
Module, Solver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Mouse, actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
MSH file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
N
Nodes, ordering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Non-interactive mode . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Numbers, real . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
O
Operating system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Operator precedence . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Operators, definition . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Options, command-line . . . . . . . . . . . . . . . . . . . . . . . . 12
Options, geometry . . . . . . . . . . . . . . . . . . . . . . . . . 39, 65
Options, mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Options, post-processing . . . . . . . . . . . . . . . . . . . . . . . 96
Order, evaluation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Post-processing, options . . . . . . . . . . . . . . . . . . . . . . . 96
Precedence, operators. . . . . . . . . . . . . . . . . . . . . . . . . . 23
Programming, notes . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Q
Questions, frequently asked . . . . . . . . . . . . . . . . . . . 221
R
Real numbers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Reporting bugs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Rotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Rules, syntactic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Running Gmsh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
S
Scale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Shortcuts, keyboard . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Size, elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Solver commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Solver, module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Surfaces, elementary . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Surfaces, physical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Symmetry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Syntax, index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
Syntax, rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
T
Ternary operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Transfinite, mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Transformations, geometry . . . . . . . . . . . . . . . . . . . . . 38
Translation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Tutorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
U
P
Physical lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Physical points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Physical surfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Physical volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Plugins, post-processing . . . . . . . . . . . . . . . . . . . . . . .
Points, elementary . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Points, physical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Post-processing commands . . . . . . . . . . . . . . . . . . . . .
Post-processing plugins . . . . . . . . . . . . . . . . . . . . . . . .
Post-processing, module . . . . . . . . . . . . . . . . . . . . . . .
Unary operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
34
33
35
36
67
71
33
33
68
71
67
V
Versions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Volumes, elementary . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Volumes, physical. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
W
Web site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Syntax index
257
Syntax index
!
! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
!= . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
%
% . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
&
&& . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
(
() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
*
* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
*= . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
+
+ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
++ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
+= . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22,
-, -parse_and_exit . . . . . . . . . . . . . . . . . . . . . . . . . . .
-- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-= . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-1, -2, -3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-a, -g, -m, -s, -p . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-algo string . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-anisoMax float . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-bg file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-bgm file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-bin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-camera . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-clcurv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-clmax float . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-clmin float . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-clscale float . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-combine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-convert files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-display string . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-epslc1d . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-fontsize int. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-format string . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-gamepad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
23
14
22
26
12
12
14
13
13
14
13
12
14
14
13
13
13
13
14
15
14
13
14
12
14
-help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-ho_[min,max,nlayers] . . . . . . . . . . . . . . . . . . . . . . .
-ignorePartBound . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-info . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-link int . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-listen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-match . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-merge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-mpass int . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-new . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-nodb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-nopopup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-numsubedges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-o file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-open . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-optimize[_netgen] . . . . . . . . . . . . . . . . . . . . . . . . . .
-optimize_ho . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-optimize_lloyd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-option file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-order int . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-parametric . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-part int . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-partWeight tri|quad|tet|prism|hex int . . . .
-pid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-rand float . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-refine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-saveall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-setnumber name value . . . . . . . . . . . . . . . . . . . . . . . .
-setstring name value . . . . . . . . . . . . . . . . . . . . . . . .
-smooth int . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-smoothRatio float . . . . . . . . . . . . . . . . . . . . . . . . . . .
-stereo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-string "string" . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-swapangle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-theme string. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-tol float . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-v int. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-watch pattern . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
15
13
14
15
14
14
12
14
14
14
14
14
15
14
12
14
13
13
13
15
13
13
12
13
14
13
12
13
15
15
13
13
14
15
13
14
12
15
15
14
/
/..............................................
/*, */. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
/= . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22
19
19
26
:
: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
258
Gmsh 2.8
<
< . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
< Recursive > Color color-expression { Point |
Line | Surface | Volume { expression-list
}; ... } . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
< Recursive > Hide { Point | Line | Surface |
Volume { expression-list }; ... } . . . 39, 62
< Recursive > Show { Point | Line | Surface |
Volume { expression-list }; ... } . . . 39, 62
<= . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
=
= . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
== . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
>
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
>= . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
?
? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
^
^ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
|
|| . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
A
Abort; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Acos ( expression ) . . . . . . . . . . . . . . . . . . . . . . . . . . 24
AdaptMesh { expression-list } {
expression-list } { { expression-list < ,
... > } }; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Alias View[expression ]; . . . . . . . . . . . . . . . . . . . . . 68
AliasWithOptions View[expression ]; . . . . . . . . 68
Asin ( expression ) . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Atan ( expression ) . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Atan2 ( expression, expression ) . . . . . . . . . . . . 24
Attractor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
AttractorAnisoCurve . . . . . . . . . . . . . . . . . . . . . . . . . 45
B
Background Field = expression ;. . . . . . . . . . . . . .
Background Mesh View[expression ]; . . . . . . . . . .
Boundary { transform-list } . . . . . . . . . . . . . . . . .
BoundaryLayer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
BoundingBox { expression, expression,
expression, expression, expression,
expression }; . . . . . . . . . . . . . . . . . . . . . . . . . . . .
BoundingBox; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
44
69
38
46
29
29
Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
BSpline ( expression ) = { expression-list };
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
build-in-function . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
C
Call string ; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
CatmullRom ( expression ) = { expression-list
}; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Ceil ( expression ) . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Centerline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
char-option = char-expression ; . . . . . . . . . . . . . 28
Characteristic Length { expression-list } =
expression ; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Circle ( expression ) = { expression,
expression, expression }; . . . . . . . . . . . . . . 34
Coherence Mesh; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Coherence;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Cohomology ( { expression-list } ) { {
expression-list } , { expression-list }
}; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
color-option = color-expression ;. . . . . . . . . . . 28
Combine ElementsByViewName; . . . . . . . . . . . . . . . . 68
Combine ElementsFromAllViews | Combine Views;
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Combine ElementsFromVisibleViews;. . . . . . . . . . 68
Combine TimeStepsByViewName | Combine
TimeSteps; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Combine TimeStepsFromAllViews; . . . . . . . . . . . . . 68
Combine TimeStepsFromVisibleViews; . . . . . . . . 68
CombinedBoundary { transform-list } . . . . . . . . 38
Compound Line ( expression ) = {
expression-list }; . . . . . . . . . . . . . . . . . . . . . . 35
Compound Surface ( expression ) = {
expression-list } < Boundary { {
expression-list }, { expression-list }, {
expression-list }, { expression-list } }
> ; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Compound Volume ( expression ) = {
expression-list }; . . . . . . . . . . . . . . . . . . . . . . 36
CopyOptions View[expression, expression ];
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Cos ( expression ) . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Cosh ( expression ) . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Cpu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
CreateDir char-expression ; . . . . . . . . . . . . . . . . . 62
Curvature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Cylinder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
D
DefineConstant[ string = {
expression |char-expression,
onelab-options } <, ...>]; . . . . . . . . . . . . . . 28
DefineConstant[ string =
expression |char-expression <, ...>];
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Syntax index
E
Ellipse ( expression ) = { expression,
expression, expression, expression };
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
ENABLE_3M . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
ENABLE_ACIS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
ENABLE_ANN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
ENABLE_BAMG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
ENABLE_BFGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
ENABLE_BLAS_LAPACK . . . . . . . . . . . . . . . . . . . . . . . . . 215
ENABLE_BLOSSOM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
ENABLE_BUILD_ANDROID . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_BUILD_DYNAMIC . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_BUILD_IOS. . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_BUILD_LIB. . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_BUILD_SHARED . . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_CAIRO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_CGNS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_CHACO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_DINTEGRATION . . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_FLTK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_FOURIER_MODEL . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_GMM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_GRAPHICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_KBIPACK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_MATHEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_MED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_MESH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_METIS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_MMG3D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
ENABLE_MPEG_ENCODE . . . . . . . . . . . . . . . . . . . . . . . . . 217
ENABLE_MPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
ENABLE_MSVC_STATIC_RUNTIME . . . . . . . . . . . . . . . . 217
ENABLE_NATIVE_FILE_CHOOSER . . . . . . . . . . . . . . . . 217
ENABLE_NETGEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
ENABLE_OCC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
ENABLE_ONELAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
ENABLE_ONELAB_METAMODEL . . . . . . . . . . . . . . . . . . . 217
ENABLE_OPENMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
ENABLE_OPTHOM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
ENABLE_OS_SPECIFIC_INSTALL . . . . . . . . . . . . . . . . 217
ENABLE_OSMESA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
ENABLE_PARSER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
ENABLE_PETSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
259
ENABLE_PLUGINS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
ENABLE_POPPLER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
ENABLE_POST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
ENABLE_QT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
ENABLE_RTREE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
ENABLE_SALOME . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
ENABLE_SGEOM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
ENABLE_SLEPC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
ENABLE_SOLVER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
ENABLE_TAUCS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
ENABLE_TETGEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
ENABLE_TETGEN_OLD . . . . . . . . . . . . . . . . . . . . . . . . . . 218
ENABLE_VORO3D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
ENABLE_WRAP_JAVA. . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
ENABLE_WRAP_PYTHON . . . . . . . . . . . . . . . . . . . . . . . . . 218
EndFor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
EndIf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Error ( char-expression <, expression-list >
); . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Exit; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Exp ( expression ) . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
extrude . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Extrude { { expression-list }, {
expression-list }, { expression-list },
expression } { extrude-list } . . . . . . . . . . 37
Extrude { { expression-list }, {
expression-list }, { expression-list },
expression } { extrude-list layers } . . 60
Extrude { { expression-list }, {
expression-list }, expression } {
extrude-list } . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Extrude { { expression-list }, {
expression-list }, expression } {
extrude-list layers } . . . . . . . . . . . . . . . . . . . 60
Extrude { expression-list } { extrude-list }
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Extrude { expression-list } { extrude-list
layers } . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Extrude { Surface { expression-list }; layers
< Using Index[expr ]; > < Using
View[expr ]; > < ScaleLastLayer; > } . . . . 60
F
Fabs ( expression ) . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Field[expression ] = string ; . . . . . . . . . . . . . . . . 44
Field[expression ].string = char-expression |
expression | expression-list ;. . . . . . . . . . 44
Floor ( expression ) . . . . . . . . . . . . . . . . . . . . . . . . . 24
Fmod ( expression, expression ) . . . . . . . . . . . . . 24
For ( expression : expression ) . . . . . . . . . . . . . 25
For ( expression : expression : expression )
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
For string In { expression : expression :
expression } . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
For string In { expression : expression } . . 26
Frustum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Function string . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
260
Gmsh 2.8
G
General.AlphaBlending . . . . . . . . . . . . . . . . . . . . . .
General.Antialiasing . . . . . . . . . . . . . . . . . . . . . . .
General.ArrowHeadRadius . . . . . . . . . . . . . . . . . . .
General.ArrowStemLength . . . . . . . . . . . . . . . . . . .
General.ArrowStemRadius . . . . . . . . . . . . . . . . . . .
General.Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesAutoPosition . . . . . . . . . . . . . . . . . .
General.AxesForceValue . . . . . . . . . . . . . . . . . . . . .
General.AxesFormatX . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesFormatY . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesFormatZ . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesLabelX . . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesLabelY . . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesLabelZ . . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesMaxX. . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesMaxY. . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesMaxZ. . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesMikado . . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesMinX. . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesMinY. . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesMinZ. . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesTicsX . . . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesTicsY . . . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesTicsZ . . . . . . . . . . . . . . . . . . . . . . . . . .
General.AxesValueMaxX . . . . . . . . . . . . . . . . . . . . . .
General.AxesValueMaxY . . . . . . . . . . . . . . . . . . . . . .
General.AxesValueMaxZ . . . . . . . . . . . . . . . . . . . . . .
General.AxesValueMinX . . . . . . . . . . . . . . . . . . . . . .
General.AxesValueMinY . . . . . . . . . . . . . . . . . . . . . .
General.AxesValueMinZ . . . . . . . . . . . . . . . . . . . . . .
General.BackgroundGradient . . . . . . . . . . . . . . . .
General.BackgroundImage3D . . . . . . . . . . . . . . . . .
General.BackgroundImageFileName . . . . . . . . . .
General.BackgroundImageHeight . . . . . . . . . . . . .
General.BackgroundImagePage . . . . . . . . . . . . . . .
General.BackgroundImagePositionX . . . . . . . . .
General.BackgroundImagePositionY . . . . . . . . .
General.BackgroundImageWidth . . . . . . . . . . . . . .
General.BoundingBoxSize . . . . . . . . . . . . . . . . . . .
General.Camera . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.CameraAperture . . . . . . . . . . . . . . . . . . . . .
General.CameraEyeSeparationRatio . . . . . . . . .
General.CameraFocalLengthRatio . . . . . . . . . . .
General.Clip0A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip0B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip0C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip0D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip1A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip1B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip1C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip1D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip2A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip2B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip2C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip2D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip3A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip3B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
145
146
146
146
146
146
146
146
143
143
143
143
143
143
146
146
147
146
147
147
147
147
147
147
147
147
147
148
148
148
148
148
144
148
148
148
148
148
149
149
149
149
149
149
149
149
149
149
150
150
150
150
150
150
150
150
150
General.Clip3C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip3D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip4A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip4B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip4C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip4D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip5A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip5B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip5C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Clip5D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.ClipFactor . . . . . . . . . . . . . . . . . . . . . . . . .
General.ClipOnlyDrawIntersectingVolume . .
General.ClipOnlyVolume . . . . . . . . . . . . . . . . . . . . .
General.ClipPositionX . . . . . . . . . . . . . . . . . . . . . .
General.ClipPositionY . . . . . . . . . . . . . . . . . . . . . .
General.ClipWholeElements . . . . . . . . . . . . . . . . .
General.Color.AmbientLight . . . . . . . . . . . . . . . .
General.Color.Axes . . . . . . . . . . . . . . . . . . . . . . . . .
General.Color.Background . . . . . . . . . . . . . . . . . .
General.Color.BackgroundGradient . . . . . . . . .
General.Color.DiffuseLight . . . . . . . . . . . . . . . .
General.Color.Foreground . . . . . . . . . . . . . . . . . .
General.Color.SmallAxes . . . . . . . . . . . . . . . . . . .
General.Color.SpecularLight . . . . . . . . . . . . . . .
General.Color.Text . . . . . . . . . . . . . . . . . . . . . . . . .
General.ColorScheme . . . . . . . . . . . . . . . . . . . . . . . .
General.ConfirmOverwrite . . . . . . . . . . . . . . . . . .
General.ContextPositionX . . . . . . . . . . . . . . . . . .
General.ContextPositionY . . . . . . . . . . . . . . . . . .
General.DefaultFileName . . . . . . . . . . . . . . . . . . .
General.DetachedMenu . . . . . . . . . . . . . . . . . . . . . . .
General.Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.DisplayBorderFactor . . . . . . . . . . . . . . .
General.DoubleBuffer . . . . . . . . . . . . . . . . . . . . . . .
General.DrawBoundingBoxes . . . . . . . . . . . . . . . . .
General.ErrorFileName . . . . . . . . . . . . . . . . . . . . . .
General.ExpertMode . . . . . . . . . . . . . . . . . . . . . . . . .
General.ExtraHeight . . . . . . . . . . . . . . . . . . . . . . . .
General.ExtraPositionX . . . . . . . . . . . . . . . . . . . . .
General.ExtraPositionY . . . . . . . . . . . . . . . . . . . . .
General.ExtraWidth . . . . . . . . . . . . . . . . . . . . . . . . .
General.FastRedraw . . . . . . . . . . . . . . . . . . . . . . . . .
General.FieldHeight . . . . . . . . . . . . . . . . . . . . . . . .
General.FieldPositionX . . . . . . . . . . . . . . . . . . . . .
General.FieldPositionY . . . . . . . . . . . . . . . . . . . . .
General.FieldWidth . . . . . . . . . . . . . . . . . . . . . . . . .
General.FileChooserPositionX . . . . . . . . . . . . . .
General.FileChooserPositionY . . . . . . . . . . . . . .
General.FileName. . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.FltkTheme . . . . . . . . . . . . . . . . . . . . . . . . . .
General.FontSize. . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.GraphicsFont . . . . . . . . . . . . . . . . . . . . . . .
General.GraphicsFontEngine . . . . . . . . . . . . . . . .
General.GraphicsFontSize . . . . . . . . . . . . . . . . . .
General.GraphicsFontSizeTitle . . . . . . . . . . . . .
General.GraphicsFontTitle . . . . . . . . . . . . . . . . .
General.GraphicsHeight . . . . . . . . . . . . . . . . . . . . .
General.GraphicsPositionX . . . . . . . . . . . . . . . . .
150
151
151
151
151
151
151
151
151
151
151
152
152
152
152
152
166
165
165
165
166
165
165
166
165
152
152
152
152
144
152
144
153
153
153
144
153
153
153
153
153
153
154
153
154
154
154
154
144
144
154
144
144
154
154
144
154
154
Syntax index
General.GraphicsPositionY . . . . . . . . . . . . . . . . .
General.GraphicsWidth . . . . . . . . . . . . . . . . . . . . . .
General.HighOrderToolsPositionX . . . . . . . . . .
General.HighOrderToolsPositionY . . . . . . . . . .
General.InitialModule . . . . . . . . . . . . . . . . . . . . . .
General.Light0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light0W . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light0X . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light0Y . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light0Z . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light1W . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light1X . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light1Y . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light1Z . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light2W . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light2X . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light2Y . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light2Z . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light3W . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light3X . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light3Y . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light3Z . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light4W . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light4X . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light4Y . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light4Z . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light5W . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light5X . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light5Y . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Light5Z . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.LineWidth . . . . . . . . . . . . . . . . . . . . . . . . . .
General.ManipulatorPositionX . . . . . . . . . . . . . .
General.ManipulatorPositionY . . . . . . . . . . . . . .
General.MaxX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.MaxY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.MaxZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.MenuHeight . . . . . . . . . . . . . . . . . . . . . . . . .
General.MenuPositionX . . . . . . . . . . . . . . . . . . . . . .
General.MenuPositionY . . . . . . . . . . . . . . . . . . . . . .
General.MenuWidth . . . . . . . . . . . . . . . . . . . . . . . . . .
General.MessageHeight . . . . . . . . . . . . . . . . . . . . . .
General.MinX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.MinY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.MinZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.MouseHoverMeshes . . . . . . . . . . . . . . . . . .
General.MouseSelection . . . . . . . . . . . . . . . . . . . . .
General.NonModalWindows . . . . . . . . . . . . . . . . . . .
General.NoPopup . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.OptionsFileName . . . . . . . . . . . . . . . . . . .
General.OptionsPositionX . . . . . . . . . . . . . . . . . .
General.OptionsPositionY . . . . . . . . . . . . . . . . . .
General.Orthographic . . . . . . . . . . . . . . . . . . . . . . .
General.PluginHeight . . . . . . . . . . . . . . . . . . . . . . .
261
155
155
155
155
155
155
155
155
155
155
156
156
156
156
156
156
156
156
156
156
157
157
157
157
157
157
157
157
157
157
158
158
158
158
158
158
158
158
158
158
159
159
159
159
159
159
159
159
159
159
160
160
160
144
160
160
160
160
General.PluginPositionX . . . . . . . . . . . . . . . . . . .
General.PluginPositionY . . . . . . . . . . . . . . . . . . .
General.PluginWidth . . . . . . . . . . . . . . . . . . . . . . . .
General.PointSize . . . . . . . . . . . . . . . . . . . . . . . . . .
General.PolygonOffsetAlwaysOn . . . . . . . . . . . . .
General.PolygonOffsetFactor . . . . . . . . . . . . . . .
General.PolygonOffsetUnits . . . . . . . . . . . . . . . .
General.ProgressMeterStep . . . . . . . . . . . . . . . . .
General.QuadricSubdivisions . . . . . . . . . . . . . . .
General.RecentFile0 . . . . . . . . . . . . . . . . . . . . . . . .
General.RecentFile1 . . . . . . . . . . . . . . . . . . . . . . . .
General.RecentFile2 . . . . . . . . . . . . . . . . . . . . . . . .
General.RecentFile3 . . . . . . . . . . . . . . . . . . . . . . . .
General.RecentFile4 . . . . . . . . . . . . . . . . . . . . . . . .
General.RotationCenterGravity . . . . . . . . . . . . .
General.RotationCenterX . . . . . . . . . . . . . . . . . . .
General.RotationCenterY . . . . . . . . . . . . . . . . . . .
General.RotationCenterZ . . . . . . . . . . . . . . . . . . .
General.RotationX . . . . . . . . . . . . . . . . . . . . . . . . . .
General.RotationY . . . . . . . . . . . . . . . . . . . . . . . . . .
General.RotationZ . . . . . . . . . . . . . . . . . . . . . . . . . .
General.SaveOptions . . . . . . . . . . . . . . . . . . . . . . . .
General.SaveSession . . . . . . . . . . . . . . . . . . . . . . . .
General.ScaleX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.ScaleY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.ScaleZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.SessionFileName . . . . . . . . . . . . . . . . . . .
General.Shininess . . . . . . . . . . . . . . . . . . . . . . . . . .
General.ShininessExponent . . . . . . . . . . . . . . . . .
General.SmallAxes . . . . . . . . . . . . . . . . . . . . . . . . . .
General.SmallAxesPositionX . . . . . . . . . . . . . . . .
General.SmallAxesPositionY . . . . . . . . . . . . . . . .
General.SmallAxesSize . . . . . . . . . . . . . . . . . . . . . .
General.StatisticsPositionX . . . . . . . . . . . . . . .
General.StatisticsPositionY . . . . . . . . . . . . . . .
General.Stereo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.SystemMenuBar . . . . . . . . . . . . . . . . . . . . . .
General.Terminal. . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.TextEditor . . . . . . . . . . . . . . . . . . . . . . . . .
General.TmpFileName . . . . . . . . . . . . . . . . . . . . . . . .
General.Tooltips. . . . . . . . . . . . . . . . . . . . . . . . . . . .
General.Trackball . . . . . . . . . . . . . . . . . . . . . . . . . .
General.TrackballHyperbolicSheet . . . . . . . . .
General.TrackballQuaternion0 . . . . . . . . . . . . . .
General.TrackballQuaternion1 . . . . . . . . . . . . . .
General.TrackballQuaternion2 . . . . . . . . . . . . . .
General.TrackballQuaternion3 . . . . . . . . . . . . . .
General.TranslationX . . . . . . . . . . . . . . . . . . . . . . .
General.TranslationY . . . . . . . . . . . . . . . . . . . . . . .
General.TranslationZ . . . . . . . . . . . . . . . . . . . . . . .
General.VectorType . . . . . . . . . . . . . . . . . . . . . . . . .
General.Verbosity . . . . . . . . . . . . . . . . . . . . . . . . . .
General.VisibilityPositionX . . . . . . . . . . . . . . .
General.VisibilityPositionY . . . . . . . . . . . . . . .
General.WatchFilePattern . . . . . . . . . . . . . . . . . .
General.ZoomFactor . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.AutoCoherence . . . . . . . . . . . . . . . . . . . . .
Geometry.Clip . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
160
160
160
161
161
161
161
161
161
145
145
145
145
145
161
162
162
162
161
161
161
162
162
162
162
162
145
162
162
163
163
163
163
163
163
163
163
163
145
145
163
164
164
164
164
164
164
164
164
164
164
165
165
165
145
165
170
170
262
Geometry.Color.HighlightOne . . . . . . . . . . . . . . .
Geometry.Color.HighlightTwo . . . . . . . . . . . . . . .
Geometry.Color.HighlightZero . . . . . . . . . . . . . .
Geometry.Color.Lines . . . . . . . . . . . . . . . . . . . . . . .
Geometry.Color.Normals . . . . . . . . . . . . . . . . . . . . .
Geometry.Color.Points . . . . . . . . . . . . . . . . . . . . . .
Geometry.Color.Projection . . . . . . . . . . . . . . . . .
Geometry.Color.Selection . . . . . . . . . . . . . . . . . .
Geometry.Color.Surfaces . . . . . . . . . . . . . . . . . . .
Geometry.Color.Tangents . . . . . . . . . . . . . . . . . . .
Geometry.Color.Volumes . . . . . . . . . . . . . . . . . . . . .
Geometry.CopyDisplayAttributes . . . . . . . . . . .
Geometry.CopyMeshingMethod . . . . . . . . . . . . . . . .
Geometry.ExactExtrusion . . . . . . . . . . . . . . . . . . .
Geometry.ExtrudeReturnLateralEntities . . .
Geometry.ExtrudeSplinePoints . . . . . . . . . . . . . .
Geometry.HideCompounds . . . . . . . . . . . . . . . . . . . . .
Geometry.HighlightOrphans . . . . . . . . . . . . . . . . .
Geometry.LabelType . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.Light . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.LightTwoSide . . . . . . . . . . . . . . . . . . . . . .
Geometry.LineNumbers . . . . . . . . . . . . . . . . . . . . . . .
Geometry.Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.LineSelectWidth . . . . . . . . . . . . . . . . . .
Geometry.LineType . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.LineWidth . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.MatchGeomAndMesh . . . . . . . . . . . . . . . . .
Geometry.Normals. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.NumSubEdges . . . . . . . . . . . . . . . . . . . . . . .
Geometry.OCCConnectFaces . . . . . . . . . . . . . . . . . .
Geometry.OCCFixDegenerated . . . . . . . . . . . . . . . .
Geometry.OCCFixSmallEdges . . . . . . . . . . . . . . . . .
Geometry.OCCFixSmallFaces . . . . . . . . . . . . . . . . .
Geometry.OCCSewFaces . . . . . . . . . . . . . . . . . . . . . . .
Geometry.OffsetX. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.OffsetY. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.OffsetZ. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.OldCircle . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.OldNewReg . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.OldRuledSurface . . . . . . . . . . . . . . . . . .
Geometry.OrientedPhysicals . . . . . . . . . . . . . . . .
Geometry.PointNumbers . . . . . . . . . . . . . . . . . . . . . .
Geometry.Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.PointSelectSize . . . . . . . . . . . . . . . . . .
Geometry.PointSize . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.PointType . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.ScalingFactor . . . . . . . . . . . . . . . . . . . . .
Geometry.SnapX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.SnapY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.SnapZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.SurfaceNumbers . . . . . . . . . . . . . . . . . . .
Geometry.Surfaces . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.SurfaceType . . . . . . . . . . . . . . . . . . . . . . .
Geometry.Tangents . . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.Tolerance . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.Transform . . . . . . . . . . . . . . . . . . . . . . . . .
Geometry.TransformXX . . . . . . . . . . . . . . . . . . . . . . .
Geometry.TransformXY . . . . . . . . . . . . . . . . . . . . . . .
Gmsh 2.8
176
176
176
175
176
175
176
176
176
176
176
170
170
170
170
170
170
170
171
171
171
171
171
171
171
171
171
171
172
172
172
172
172
172
172
172
172
172
173
172
173
173
173
173
173
173
173
173
173
174
174
174
174
174
174
174
174
174
Geometry.TransformXZ . . . . . . . . . . . . . . . . . . . . . . . 174
Geometry.TransformYX . . . . . . . . . . . . . . . . . . . . . . . 175
Geometry.TransformYY . . . . . . . . . . . . . . . . . . . . . . . 175
Geometry.TransformYZ . . . . . . . . . . . . . . . . . . . . . . . 175
Geometry.TransformZX . . . . . . . . . . . . . . . . . . . . . . . 175
Geometry.TransformZY . . . . . . . . . . . . . . . . . . . . . . . 175
Geometry.TransformZZ . . . . . . . . . . . . . . . . . . . . . . . 175
Geometry.VolumeNumbers . . . . . . . . . . . . . . . . . . . . . 175
Geometry.Volumes. . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
GMSH_MAJOR_VERSION . . . . . . . . . . . . . . . . . . . . . . . . . . 26
GMSH_MINOR_VERSION . . . . . . . . . . . . . . . . . . . . . . . . . . 26
GMSH_PATCH_VERSION . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Gradient . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
H
Hide char-expression ; . . . . . . . . . . . . . . . . . . . 39, 62
Homology ( { expression-list } ) { {
expression-list } , { expression-list }
}; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Hypot ( expression, expression ) . . . . . . . . . . . . 24
I
If ( expression ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Include char-expression ; . . . . . . . . . . . . . . . . . . . . 31
IntersectAniso . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
L
Laplacian . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Line ( expression ) = { expression, expression
}; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Line Loop ( expression ) = { expression-list
}; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Log ( expression ) . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Log10 ( expression ) . . . . . . . . . . . . . . . . . . . . . . . . . 24
LonLat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
M
MathEval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
MathEvalAniso . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Max . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
MaxEigenHessian . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Mean . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Merge char-expression ; . . . . . . . . . . . . . . . . . . . . . . 29
Mesh expression ; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Mesh.Algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
Mesh.Algorithm3D. . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Mesh.AllowSwapAngle . . . . . . . . . . . . . . . . . . . . . . . . 177
Mesh.AngleSmoothNormals . . . . . . . . . . . . . . . . . . . 177
Mesh.AnisoMax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Mesh.BdfFieldFormat . . . . . . . . . . . . . . . . . . . . . . . . 177
Mesh.Binary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Mesh.Bunin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Mesh.CgnsImportOrder . . . . . . . . . . . . . . . . . . . . . . . 177
Syntax index
Mesh.ChacoArchitecture . . . . . . . . . . . . . . . . . . . . . 178
Mesh.ChacoEigensolver . . . . . . . . . . . . . . . . . . . . . . 178
Mesh.ChacoEigTol. . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
Mesh.ChacoGlobalMethod . . . . . . . . . . . . . . . . . . . . . 178
Mesh.ChacoHypercubeDim . . . . . . . . . . . . . . . . . . . . . 178
Mesh.ChacoLocalMethod . . . . . . . . . . . . . . . . . . . . . . 178
Mesh.ChacoMeshDim1 . . . . . . . . . . . . . . . . . . . . . . . . . 178
Mesh.ChacoMeshDim2 . . . . . . . . . . . . . . . . . . . . . . . . . 178
Mesh.ChacoMeshDim3 . . . . . . . . . . . . . . . . . . . . . . . . . 178
Mesh.ChacoParamINTERNAL_VERTICES . . . . . . . . . 179
Mesh.ChacoParamREFINE_MAP . . . . . . . . . . . . . . . . . 179
Mesh.ChacoParamREFINE_PARTITION . . . . . . . . . . 179
Mesh.ChacoParamTERMINAL_PROPOGATION . . . . . . 179
Mesh.ChacoPartitionSection . . . . . . . . . . . . . . . . 178
Mesh.ChacoSeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
Mesh.ChacoVMax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
Mesh.CharacteristicLengthExtendFromBoundary
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
Mesh.CharacteristicLengthFactor . . . . . . . . . . 179
Mesh.CharacteristicLengthFromCurvature . . 180
Mesh.CharacteristicLengthFromPoints . . . . . . 180
Mesh.CharacteristicLengthMax . . . . . . . . . . . . . . 179
Mesh.CharacteristicLengthMin . . . . . . . . . . . . . . 179
Mesh.Clip . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
Mesh.Color.Eight. . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Mesh.Color.Eighteen . . . . . . . . . . . . . . . . . . . . . . . . 193
Mesh.Color.Eleven . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Mesh.Color.Fifteen . . . . . . . . . . . . . . . . . . . . . . . . . 193
Mesh.Color.Five . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Mesh.Color.Four . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Mesh.Color.Fourteen . . . . . . . . . . . . . . . . . . . . . . . . 193
Mesh.Color.Hexahedra . . . . . . . . . . . . . . . . . . . . . . . 191
Mesh.Color.Lines. . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Mesh.Color.Nine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Mesh.Color.Nineteen . . . . . . . . . . . . . . . . . . . . . . . . 193
Mesh.Color.Normals . . . . . . . . . . . . . . . . . . . . . . . . . 191
Mesh.Color.One . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Mesh.Color.Points . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Mesh.Color.PointsSup . . . . . . . . . . . . . . . . . . . . . . . 190
Mesh.Color.Prisms . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Mesh.Color.Pyramids . . . . . . . . . . . . . . . . . . . . . . . . 191
Mesh.Color.Quadrangles . . . . . . . . . . . . . . . . . . . . . 191
Mesh.Color.Seven. . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Mesh.Color.Seventeen . . . . . . . . . . . . . . . . . . . . . . . 193
Mesh.Color.Six . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Mesh.Color.Sixteen . . . . . . . . . . . . . . . . . . . . . . . . . 193
Mesh.Color.Tangents . . . . . . . . . . . . . . . . . . . . . . . . 191
Mesh.Color.Ten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Mesh.Color.Tetrahedra . . . . . . . . . . . . . . . . . . . . . . 191
Mesh.Color.Thirteen . . . . . . . . . . . . . . . . . . . . . . . . 193
Mesh.Color.Three. . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Mesh.Color.Triangles . . . . . . . . . . . . . . . . . . . . . . . 190
Mesh.Color.Twelve . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Mesh.Color.Two . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Mesh.Color.Zero . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Mesh.ColorCarousel . . . . . . . . . . . . . . . . . . . . . . . . . 180
Mesh.CpuTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
Mesh.DoRecombinationTest . . . . . . . . . . . . . . . . . . 187
263
Mesh.DrawSkinOnly . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.Dual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.ElementOrder . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.Explode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.FlexibleTransfinite . . . . . . . . . . . . . . . . . .
Mesh.Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.Hexahedra . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.HighOrderNumLayers . . . . . . . . . . . . . . . . . . .
Mesh.HighOrderOptimize . . . . . . . . . . . . . . . . . . . . .
Mesh.HighOrderOptPrimSurfMesh . . . . . . . . . . . . .
Mesh.HighOrderPoissonRatio . . . . . . . . . . . . . . . .
Mesh.HighOrderThresholdMax . . . . . . . . . . . . . . . .
Mesh.HighOrderThresholdMin . . . . . . . . . . . . . . . .
Mesh.IgnorePartitionBoundary . . . . . . . . . . . . . .
Mesh.LabelSampling . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.LabelType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.LcIntegrationPrecision . . . . . . . . . . . . . . .
Mesh.Light . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.LightLines . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.LightTwoSide . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.LineNumbers. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.LineWidth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.Lloyd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.MeshOnlyVisible . . . . . . . . . . . . . . . . . . . . . . .
Mesh.MetisAlgorithm . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.MetisEdgeMatching . . . . . . . . . . . . . . . . . . . . .
Mesh.MetisRefinementAlgorithm . . . . . . . . . . . . .
Mesh.MinimumCirclePoints . . . . . . . . . . . . . . . . . .
Mesh.MinimumCurvePoints . . . . . . . . . . . . . . . . . . .
Mesh.MshFilePartitioned . . . . . . . . . . . . . . . . . . .
Mesh.MshFileVersion . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.NbHexahedra. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.NbNodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.NbPartitions . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.NbPrisms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.NbPyramids . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.NbQuadrangles . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.NbTetrahedra . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.NbTriangles. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.NewtonConvergenceTestXYZ . . . . . . . . . . . . .
Mesh.Normals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.NumSubEdges. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.Optimize . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.OptimizeNetgen . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.Partitioner. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.PartitionHexWeight . . . . . . . . . . . . . . . . . . .
Mesh.PartitionPrismWeight . . . . . . . . . . . . . . . . .
Mesh.PartitionPyramidWeight . . . . . . . . . . . . . . .
Mesh.PartitionQuadWeight . . . . . . . . . . . . . . . . . .
Mesh.PartitionTetWeight . . . . . . . . . . . . . . . . . . .
Mesh.PartitionTriWeight . . . . . . . . . . . . . . . . . . .
Mesh.PointNumbers . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.PointSize . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.PointType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.Prisms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mesh.Pyramids . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
180
180
180
180
180
181
181
181
181
181
181
181
181
186
181
182
182
182
182
182
182
182
182
177
182
182
183
183
183
183
183
183
184
184
184
184
184
184
184
184
181
185
185
185
185
185
183
183
183
183
184
184
185
185
185
185
185
186
264
Gmsh 2.8
Mesh.Quadrangles. . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
Mesh.QualityInf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
Mesh.QualitySup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
Mesh.QualityType. . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
Mesh.RadiusInf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
Mesh.RadiusSup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
Mesh.RandomFactor . . . . . . . . . . . . . . . . . . . . . . . . . . 186
Mesh.RecombinationAlgorithm . . . . . . . . . . . . . . . 186
Mesh.RecombinationTestHorizStart . . . . . . . . . 187
Mesh.RecombinationTestNewStrat . . . . . . . . . . . 187
Mesh.RecombinationTestNoGreedyStrat . . . . . . 187
Mesh.Recombine3DAll . . . . . . . . . . . . . . . . . . . . . . . . 187
Mesh.RecombineAll . . . . . . . . . . . . . . . . . . . . . . . . . . 187
Mesh.RefineSteps. . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
Mesh.RemeshAlgorithm . . . . . . . . . . . . . . . . . . . . . . . 187
Mesh.RemeshParametrization . . . . . . . . . . . . . . . . 187
Mesh.Remove4Triangles . . . . . . . . . . . . . . . . . . . . . . 187
Mesh.ReverseAllNormals . . . . . . . . . . . . . . . . . . . . . 188
Mesh.SaveAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
Mesh.SaveElementTagType . . . . . . . . . . . . . . . . . . . 188
Mesh.SaveGroupsOfNodes . . . . . . . . . . . . . . . . . . . . . 188
Mesh.SaveParametric . . . . . . . . . . . . . . . . . . . . . . . . 188
Mesh.ScalingFactor . . . . . . . . . . . . . . . . . . . . . . . . . 188
Mesh.SecondOrderExperimental . . . . . . . . . . . . . . 188
Mesh.SecondOrderIncomplete . . . . . . . . . . . . . . . . 188
Mesh.SecondOrderLinear . . . . . . . . . . . . . . . . . . . . . 188
Mesh.SmoothCrossField . . . . . . . . . . . . . . . . . . . . . . 177
Mesh.Smoothing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
Mesh.SmoothNormals . . . . . . . . . . . . . . . . . . . . . . . . . 189
Mesh.SmoothRatio. . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Mesh.SubdivisionAlgorithm . . . . . . . . . . . . . . . . . 189
Mesh.SurfaceEdges . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Mesh.SurfaceFaces . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Mesh.SurfaceNumbers . . . . . . . . . . . . . . . . . . . . . . . . 189
Mesh.SwitchElementTags . . . . . . . . . . . . . . . . . . . . . 189
Mesh.Tangents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Mesh.Tetrahedra . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Mesh.ToleranceEdgeLength . . . . . . . . . . . . . . . . . . 189
Mesh.Triangles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Mesh.VolumeEdges. . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Mesh.VolumeFaces. . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Mesh.VolumeNumbers . . . . . . . . . . . . . . . . . . . . . . . . . 190
Mesh.Voronoi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Mesh.ZoneDefinition . . . . . . . . . . . . . . . . . . . . . . . . 190
Min . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
MinAniso . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Modulo ( expression, expression ) . . . . . . . . . . 24
MPI_Rank . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
MPI_Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
N
newl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
newll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
newp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
newreg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
news . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
newsl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
27
27
27
27
27
27
newv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
NonBlockingSystemCall char-expression ;. . . . 30
O
operator-binary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
operator-ternary-left . . . . . . . . . . . . . . . . . . . . . . .
operator-ternary-right . . . . . . . . . . . . . . . . . . . . . .
operator-unary-left . . . . . . . . . . . . . . . . . . . . . . . . .
operator-unary-right . . . . . . . . . . . . . . . . . . . . . . . .
22
22
22
22
22
P
Param . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Periodic Line { expression-list } = {
expression-list }; . . . . . . . . . . . . . . . . . . . . . . 61
Periodic Surface expression { expression-list
} = expression { expression-list }; . . . . 61
Physical Line ( expression | char-expression
) = { expression-list }; . . . . . . . . . . . . . . . . 35
Physical Point ( expression | char-expression
) = { expression-list }; . . . . . . . . . . . . . . . . 33
Physical Surface ( expression |
char-expression ) = { expression-list };
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Physical Volume ( expression |
char-expression ) = { expression-list };
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Pi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Plane Surface ( expression ) = {
expression-list }; . . . . . . . . . . . . . . . . . . . . . . 35
Plugin (string ) . Run; . . . . . . . . . . . . . . . . . . . . . . . 69
Plugin (string ) . string = expression |
char-expression ; . . . . . . . . . . . . . . . . . . . . . . . . 69
Plugin(AnalyseCurvedMesh) . . . . . . . . . . . . . . . . . . 72
Plugin(Annotate) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Plugin(Bubbles) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Plugin(Crack) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Plugin(Curl) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Plugin(CurvedBndDist) . . . . . . . . . . . . . . . . . . . . . . . 74
Plugin(CutBox) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Plugin(CutGrid) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Plugin(CutParametric) . . . . . . . . . . . . . . . . . . . . . . . 76
Plugin(CutPlane) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Plugin(CutSphere). . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Plugin(DiscretizationError) . . . . . . . . . . . . . . . . 78
Plugin(Distance) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Plugin(Divergence) . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Plugin(Eigenvalues) . . . . . . . . . . . . . . . . . . . . . . . . . 79
Plugin(Eigenvectors) . . . . . . . . . . . . . . . . . . . . . . . . 79
Plugin(ExtractEdges) . . . . . . . . . . . . . . . . . . . . . . . . 79
Plugin(ExtractElements) . . . . . . . . . . . . . . . . . . . . . 79
Plugin(FaultZone). . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Plugin(FieldFromAmplitudePhase) . . . . . . . . . . . 80
Plugin(Gradient) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Plugin(HarmonicToTime) . . . . . . . . . . . . . . . . . . . . . . 81
Plugin(HomologyComputation) . . . . . . . . . . . . . . . . 81
Plugin(HomologyPostProcessing) . . . . . . . . . . . . . 82
Syntax index
Plugin(Integrate). . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Plugin(Isosurface) . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Plugin(Lambda2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Plugin(LongitudeLatitude) . . . . . . . . . . . . . . . . . . 85
Plugin(MakeSimplex) . . . . . . . . . . . . . . . . . . . . . . . . . 85
Plugin(MathEval) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Plugin(MinMax) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Plugin(ModifyComponent) . . . . . . . . . . . . . . . . . . . . . 87
Plugin(ModulusPhase) . . . . . . . . . . . . . . . . . . . . . . . . 88
Plugin(NearestNeighbor) . . . . . . . . . . . . . . . . . . . . . 89
Plugin(NearToFarField) . . . . . . . . . . . . . . . . . . . . . . 88
Plugin(NewView) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Plugin(Particles). . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Plugin(Probe) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Plugin(Remove) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Plugin(Scal2Tens). . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Plugin(Scal2Vec) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Plugin(SimplePartition) . . . . . . . . . . . . . . . . . . . . . 92
Plugin(Skin) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Plugin(Smooth) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Plugin(SphericalRaise) . . . . . . . . . . . . . . . . . . . . . . 93
Plugin(StreamLines) . . . . . . . . . . . . . . . . . . . . . . . . . 93
Plugin(Tetrahedralize) . . . . . . . . . . . . . . . . . . . . . . 94
Plugin(Transform). . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Plugin(Triangulate) . . . . . . . . . . . . . . . . . . . . . . . . . 95
Plugin(Warp) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Point ( expression ) = { expression,
expression, expression <, expression > };
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Point | Line { expression-list } In Surface {
expression }; . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
PostProcessing.AnimationCycle . . . . . . . . . . . . . 198
PostProcessing.AnimationDelay . . . . . . . . . . . . . 197
PostProcessing.AnimationStep . . . . . . . . . . . . . . 198
PostProcessing.CombineRemoveOriginal. . . . . 198
PostProcessing.ForceNodeData . . . . . . . . . . . . . . 198
PostProcessing.Format . . . . . . . . . . . . . . . . . . . . . . 198
PostProcessing.HorizontalScales . . . . . . . . . . 198
PostProcessing.Link . . . . . . . . . . . . . . . . . . . . . . . . 198
PostProcessing.NbViews . . . . . . . . . . . . . . . . . . . . . 198
PostProcessing.Plugins . . . . . . . . . . . . . . . . . . . . . 198
PostProcessing.Smoothing . . . . . . . . . . . . . . . . . . 198
PostView . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Print char-expression ; . . . . . . . . . . . . . . . . . . . . . . 30
Print.Background. . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
Print.CompositeWindows . . . . . . . . . . . . . . . . . . . . . 166
Print.DeleteTemporaryFiles . . . . . . . . . . . . . . . . 167
Print.EpsBestRoot . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Print.EpsCompress . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Print.EpsLineWidthFactor . . . . . . . . . . . . . . . . . . 167
Print.EpsOcclusionCulling . . . . . . . . . . . . . . . . . 167
Print.EpsPointSizeFactor . . . . . . . . . . . . . . . . . . 167
Print.EpsPS3Shading . . . . . . . . . . . . . . . . . . . . . . . . 167
Print.EpsQuality. . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Print.Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Print.GeoLabels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Print.GeoOnlyPhysicals . . . . . . . . . . . . . . . . . . . . . 168
Print.GifDither . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
265
Print.GifInterlace . . . . . . . . . . . . . . . . . . . . . . . . . 168
Print.GifSort . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Print.GifTransparent . . . . . . . . . . . . . . . . . . . . . . . 168
Print.Height . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Print.JpegQuality . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Print.JpegSmoothing . . . . . . . . . . . . . . . . . . . . . . . . 169
Print.Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
Print.ParameterCommand . . . . . . . . . . . . . . . . . . . . . 166
Print.ParameterFirst . . . . . . . . . . . . . . . . . . . . . . . 166
Print.ParameterLast . . . . . . . . . . . . . . . . . . . . . . . . 166
Print.ParameterSteps . . . . . . . . . . . . . . . . . . . . . . . 166
Print.PgfExportAxis . . . . . . . . . . . . . . . . . . . . . . . . 167
Print.PgfHorizontalBar . . . . . . . . . . . . . . . . . . . . . 167
Print.PgfTwoDim . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Print.PostDisto . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Print.PostElement . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Print.PostElementary . . . . . . . . . . . . . . . . . . . . . . . 169
Print.PostEta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Print.PostGamma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Print.PostRho . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Print.TexAsEquation . . . . . . . . . . . . . . . . . . . . . . . . 169
Print.Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Print.Width . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Printf ( char-expression , expression-list )
> char-expression ; . . . . . . . . . . . . . . . . . . . . . . 29
Printf ( char-expression , expression-list )
>> char-expression ; . . . . . . . . . . . . . . . . . . . . . 29
Printf ( char-expression <, expression-list >
); . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
R
Rand ( expression ) . . . . . . . . . . . . . . . . . . . . . . . . . . 25
real-option *= expression ; . . . . . . . . . . . . . . . . . 28
real-option += expression ; . . . . . . . . . . . . . . . . . 28
real-option -= expression ; . . . . . . . . . . . . . . . . . 28
real-option /= expression ; . . . . . . . . . . . . . . . . . 29
real-option = expression ; . . . . . . . . . . . . . . . . . . . 28
Recombine Surface { expression-list } | "*" <
= expression >; . . . . . . . . . . . . . . . . . . . . . . . . . . 62
RefineMesh; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
RelocateMesh Point | Line | Surface {
expression-list } | "*"; . . . . . . . . . . . . . . . . 30
Restrict . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Return . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Reverse Line | Surface { expression-list } |
"*" ; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Rotate { { expression-list }, {
expression-list }, expression } {
transform-list } . . . . . . . . . . . . . . . . . . . . . . . . 38
Round ( expression ) . . . . . . . . . . . . . . . . . . . . . . . . . 25
Ruled Surface ( expression ) = {
expression-list } < In Sphere {
expression } >; . . . . . . . . . . . . . . . . . . . . . . . . . . 35
S
Save char-expression ; . . . . . . . . . . . . . . . . . . . . . . . 62
266
Gmsh 2.8
string *= expression ; . . . . . . . . . . . . . . . . . . . . . . . 27
string += { expression-list }; . . . . . . . . . . . . . . 28
string += expression ; . . . . . . . . . . . . . . . . . . . . . . . 27
string -= { expression-list }; . . . . . . . . . . . . . . 28
string -= expression ; . . . . . . . . . . . . . . . . . . . . . . . 27
string /= expression ; . . . . . . . . . . . . . . . . . . . . . . . 27
string = { }; . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
string = { expression-list }; . . . . . . . . . . . . . . . 27
string = char-expression ; . . . . . . . . . . . . . . . . . . . 28
string = expression ; . . . . . . . . . . . . . . . . . . . . . . . . 26
string [ { expression-list } ] *= {
expression-list }; . . . . . . . . . . . . . . . . . . . . . . 28
string [ { expression-list } ] += {
expression-list }; . . . . . . . . . . . . . . . . . . . . . . 28
string [ { expression-list } ] -= {
expression-list }; . . . . . . . . . . . . . . . . . . . . . . 28
string [ { expression-list } ] /= {
expression-list }; . . . . . . . . . . . . . . . . . . . . . . 28
string [ { expression-list } ] = {
expression-list }; . . . . . . . . . . . . . . . . . . . . . . 27
Structured. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Surface { expression-list } In Volume {
expression }; . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Surface Loop ( expression ) = {
expression-list }; . . . . . . . . . . . . . . . . . . . . . . 35
Symmetry { expression-list } { transform-list
} . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
SyncModel;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
SystemCall char-expression ; . . . . . . . . . . . . . . . . 30
T
Tan ( expression ) . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Tanh ( expression ) . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Threshold . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
TotalMemory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Transfinite Line { expression-list } | "*" =
expression < Using Progression | Bump
expression >; . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Transfinite Surface { expression-list } | "*"
< = { expression-list } > < Left | Right |
Alternate | AlternateRight |
AlternateLeft > ; . . . . . . . . . . . . . . . . . . . . . . . . 61
Transfinite Volume { expression-list } | "*" <
= { expression-list } > ;. . . . . . . . . . . . . . . . 61
transform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
TransfQuadTri { expression-list } | "*"; . . . 61
Translate { expression-list } {
transform-list } . . . . . . . . . . . . . . . . . . . . . . . . 38
V
View "string " { string < ( expression-list ) >
{ expression-list }; ... }; . . . . . . . . . . . . . 69
View.AbscissaRangeType . . . . . . . . . . . . . . . . . . . . . 201
View.AdaptVisualizationGrid . . . . . . . . . . . . . . . 201
View.AngleSmoothNormals . . . . . . . . . . . . . . . . . . . 201
View.ArrowSizeMax . . . . . . . . . . . . . . . . . . . . . . . . . . 201
Syntax index
View.ArrowSizeMin . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AutoPosition . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AxesAutoPosition . . . . . . . . . . . . . . . . . . . . . .
View.AxesFormatX. . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AxesFormatY. . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AxesFormatZ. . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AxesLabelX . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AxesLabelY . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AxesLabelZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AxesMaxX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AxesMaxY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AxesMaxZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AxesMikado . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AxesMinX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AxesMinY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AxesMinZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AxesTicsX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AxesTicsY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.AxesTicsZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Boundary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.CenterGlyphs . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Clip . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Color.Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Color.Background2D . . . . . . . . . . . . . . . . . . .
View.Color.Hexahedra . . . . . . . . . . . . . . . . . . . . . . .
View.Color.Lines. . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Color.Normals . . . . . . . . . . . . . . . . . . . . . . . . .
View.Color.Points . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Color.Prisms . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Color.Pyramids . . . . . . . . . . . . . . . . . . . . . . . .
View.Color.Quadrangles . . . . . . . . . . . . . . . . . . . . .
View.Color.Tangents . . . . . . . . . . . . . . . . . . . . . . . .
View.Color.Tetrahedra . . . . . . . . . . . . . . . . . . . . . .
View.Color.Text2D . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Color.Text3D . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Color.Triangles . . . . . . . . . . . . . . . . . . . . . . .
View.ColormapAlpha . . . . . . . . . . . . . . . . . . . . . . . . .
View.ColormapAlphaPower . . . . . . . . . . . . . . . . . . .
View.ColormapBeta . . . . . . . . . . . . . . . . . . . . . . . . . .
View.ColormapBias . . . . . . . . . . . . . . . . . . . . . . . . . .
View.ColormapCurvature . . . . . . . . . . . . . . . . . . . . .
View.ColormapInvert . . . . . . . . . . . . . . . . . . . . . . . .
View.ColormapNumber . . . . . . . . . . . . . . . . . . . . . . . .
View.ColormapRotation . . . . . . . . . . . . . . . . . . . . . .
View.ColormapSwap . . . . . . . . . . . . . . . . . . . . . . . . . .
View.ColorTable . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.ComponentMap0 . . . . . . . . . . . . . . . . . . . . . . . . .
View.ComponentMap1 . . . . . . . . . . . . . . . . . . . . . . . . .
View.ComponentMap2 . . . . . . . . . . . . . . . . . . . . . . . . .
View.ComponentMap3 . . . . . . . . . . . . . . . . . . . . . . . . .
View.ComponentMap4 . . . . . . . . . . . . . . . . . . . . . . . . .
View.ComponentMap5 . . . . . . . . . . . . . . . . . . . . . . . . .
View.ComponentMap6 . . . . . . . . . . . . . . . . . . . . . . . . .
View.ComponentMap7 . . . . . . . . . . . . . . . . . . . . . . . . .
View.ComponentMap8 . . . . . . . . . . . . . . . . . . . . . . . . .
View.CustomAbscissaMax . . . . . . . . . . . . . . . . . . . . .
267
201
199
201
201
202
199
199
199
199
199
199
202
202
202
202
202
202
202
202
202
203
203
203
203
214
214
213
213
214
213
213
213
213
214
213
214
214
213
203
203
203
203
203
203
204
204
204
214
204
204
204
204
204
204
204
205
205
205
View.CustomAbscissaMin . . . . . . . . . . . . . . . . . . . . .
View.CustomMax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.CustomMin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.DisplacementFactor . . . . . . . . . . . . . . . . . . .
View.DrawHexahedra . . . . . . . . . . . . . . . . . . . . . . . . .
View.DrawLines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.DrawPoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.DrawPrisms . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.DrawPyramids . . . . . . . . . . . . . . . . . . . . . . . . . .
View.DrawQuadrangles . . . . . . . . . . . . . . . . . . . . . . .
View.DrawScalars. . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.DrawSkinOnly . . . . . . . . . . . . . . . . . . . . . . . . . .
View.DrawStrings. . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.DrawTensors. . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.DrawTetrahedra . . . . . . . . . . . . . . . . . . . . . . . .
View.DrawTriangles . . . . . . . . . . . . . . . . . . . . . . . . .
View.DrawVectors. . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Explode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.ExternalView . . . . . . . . . . . . . . . . . . . . . . . . . .
View.FakeTransparency . . . . . . . . . . . . . . . . . . . . . .
View.FileName . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.ForceNumComponents . . . . . . . . . . . . . . . . . . .
View.Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.GeneralizedRaiseFactor . . . . . . . . . . . . . . .
View.GeneralizedRaiseView . . . . . . . . . . . . . . . . .
View.GeneralizedRaiseX . . . . . . . . . . . . . . . . . . . . .
View.GeneralizedRaiseY . . . . . . . . . . . . . . . . . . . . .
View.GeneralizedRaiseZ . . . . . . . . . . . . . . . . . . . . .
View.GlyphLocation . . . . . . . . . . . . . . . . . . . . . . . . .
View.Height . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.IntervalsType . . . . . . . . . . . . . . . . . . . . . . . . .
View.Light . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.LightLines . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.LightTwoSide . . . . . . . . . . . . . . . . . . . . . . . . . .
View.LineType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.LineWidth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Max . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.MaxRecursionLevel . . . . . . . . . . . . . . . . . . . . .
View.MaxX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.MaxY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.MaxZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Min . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.MinX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.MinY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.MinZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.NbIso . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.NbTimeStep . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.NormalRaise. . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Normals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.OffsetX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.OffsetY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.OffsetZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.PointSize . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.PointType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.PositionX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.PositionY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.RaiseX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
205
205
205
205
205
205
205
206
206
206
206
206
206
206
206
206
206
207
207
207
199
207
199
207
207
199
200
200
207
207
207
207
208
208
208
208
208
208
208
208
208
208
208
209
209
200
209
209
209
209
209
209
209
209
209
210
210
210
268
View.RaiseY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.RaiseZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.RangeType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Sampling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.SaturateValues . . . . . . . . . . . . . . . . . . . . . . . .
View.ScaleType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.ShowElement. . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.ShowScale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.ShowTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.SmoothNormals . . . . . . . . . . . . . . . . . . . . . . . . .
View.Stipple . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Stipple0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Stipple1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Stipple2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Stipple3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Stipple4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Stipple5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Stipple6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Stipple7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Stipple8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
View.Stipple9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Gmsh 2.8
210
210
210
210
210
210
211
211
211
211
211
200
200
200
200
200
200
200
201
201
201
View.Tangents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
View.TargetError. . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
View.TensorType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
View.TimeStep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
View.TransformXX. . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
View.TransformXY. . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
View.TransformXZ. . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
View.TransformYX. . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
View.TransformYY. . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
View.TransformYZ. . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
View.TransformZX. . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
View.TransformZY. . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
View.TransformZZ. . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
View.Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
View.UseGeneralizedRaise . . . . . . . . . . . . . . . . . . 212
View.VectorType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
View.Visible . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
View.Width . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
Volume ( expression ) = { expression-list };
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36