1MMG2D(1)                  BSD General Commands Manual                 MMG2D(1)
2

NAME

4     mmg2d — Adaptation and optimization of bidimensional meshes
5

SYNOPSIS

7     mmg2d mesh_file⟩ [output_file] [-sol solution_file⟩]
8           [-met metric_file⟩] [-h] [-v] [-m n⟩] [-d] [-val] [-default] [-A]
9           [-ar x⟩ | -nr] [-hmin x⟩] [-hmax x⟩] [-hsiz x⟩] [-hausd x⟩]
10           [-hgrad x⟩] [-hgradreq x⟩] [-rmc x] [-lag n⟩] [-ls x]
11           [-lssurf x] [-noinsert] [-nomove] [-noswap] [-nosurf] [-nosizreq]
12           [-nreg] [-xreg] [-nsd n⟩] [-opnbdy] [-optim] [-3dMedit n⟩]
13

DESCRIPTION

15     The mmg2d application is dedicated to bidimensional triangular mesh
16     remeshing.
17
18     By default it performs mesh modifications in order to control the surface
19     approximation.
20     Providing a metric file, it adapts the mesh to the prescribed sizes at
21     nodes.
22     Without metric file, the -optim option allows to improve the mesh quality
23     with respect to the initial mesh size.
24     Providing a level-set file containing the values of the level-set func‐
25     tion at the mesh nodes, the -ls option allows to explicitely mesh an im‐
26     plicit domain and the -lssurf option splits mesh boundaries on a provided
27     isovalue.
28     Providing a displacement file -lag option applies a lagrangian displace‐
29     ment to boundary mesh nodes.
30
31

COMMAND LINE ARGUMENTS

33     1.   Generic options:
34          -h                      Print help.
35          -v ⟨n⟩                  Tune level of verbosity.
36                                  Takes values between -1 and 10.
37          -m ⟨n⟩                  Set maximal memory size to n MBytes.
38          -d                      Turn on debug mode.
39          -default                Write a local parameter file (with extension
40                                  .mmg2d) with setted values.
41          -val                    Print the default parameters values.
42
43     2.   File specifications:
44          -in ⟨mesh_file⟩         Input triangulation.
45          -out ⟨output_file⟩      Output triangulation.
46          -sol ⟨solution_file⟩    Load metric, level-set or displacement file.
47          -met ⟨metric_file⟩      Load metric file in level-set mode.
48
49     3.   Mode specifications (default is mesh adaptation):
50          -lag ⟨n⟩                Lagrangian mesh displacement according to
51                                  mode 0 ( n=0 ), 1 ( n=1 ) or 2 ( n=2 ). This
52                                  option is only available with the USE_ELAS
53                                  compilation flag. The LinearElasticity li‐
54                                  brary must be founded to activate this flag.
55          -ls x                   Create mesh of isovalue x (0.0 if x is not
56                                  provided).
57          -lssurf x               Split boundary mesh on isovalue x (0.0 if x
58                                  is not provided).
59
60     4.   Parameters:
61          -A                      Enable anisotropy (without metric file).
62          -ar ⟨x⟩ | -nr           Threshold for angle detection or sharp fea‐
63                                  tures detection disabling.
64          -hmin ⟨x⟩               Minimal mesh size.
65          -hmax ⟨x⟩               Maximal mesh size.
66          -hsiz ⟨x⟩               Constant mesh size.
67          -hausd ⟨x⟩              Control the Hausdorff distance to the under‐
68                                  lying surface geometry.
69          -hgrad ⟨x⟩              Control the gradation.
70          -hgradreq ⟨x⟩           Control the gradation from required entities
71                                  toward others.
72          -rmc x                  Remove componants whose volumic fraction is
73                                  less than x (1.e-5 if x is not provided) of
74                                  the whole mesh volume or not connected to
75                                  base references provided in parameter file
76                                  (level-set mode).
77          -opnbdy                 Preserve input edges at the interface of two
78                                  domains of the same reference.
79          -noinsert               No point insertion/deletion.
80          -nomove                 No point relocation
81          -nosurf                 No surface modifications.
82          -noswap                 No edge or face flipping.
83          -nosizreq               No imposition of the size of required edges
84                                  over required vertices.
85          -nreg                   Normal regularization using laplacian - an‐
86                                  tilaplacian smoothing.
87          -xreg                   Vertex coordinates regularization using
88                                  laplacian - antilaplacian smoothing.
89          -nsd ⟨n⟩                Save the subdomain of index n (default is
90                                  n=0 which save all subdomains).
91          -optim                  Mesh improvement with respect to the initial
92                                  mesh size.
93          -3dMedit ⟨n⟩            Write and/or read Medit mesh file in 3D.  If
94                                  val=1 write the 2D mesh in 3D. If val=2 read
95                                  and write 2D mesh in 3D. If val=3 read a 2D
96                                  mesh in 3D and write it in 2D.
97

RETURN VALUES

99     mmg2d returns:
100     the 0 value if successful;
101     the 1 value if the process fail but can save a conform mesh;
102     the 2 value if the process fail and can't save a comform mesh.
103

SEE ALSO

105     mmg3d(1) mmgs(1)
106
107mmg2d                            May 04, 2015                            mmg2d
Impressum