1MMG2D(1) BSD General Commands Manual MMG2D(1)
2
4 mmg2d — Adaptation and optimization of bidimensional meshes
5
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 [-noinsert] [-nomove] [-noswap] [-nosurf] [-nosizreq] [-nreg]
12 [-nsd ⟨n⟩] [-opnbdy] [-optim] [-3dMedit ⟨n⟩]
13
15 The mmg2d application is dedicated to bidimensional triangular mesh
16 remeshing.
17
18 By default it improve the mesh quality with respect to its initial size.
19 Providing a metric file, it adapts the mesh to the prescribed sizes at
20 nodes. -ls option allows to explicitly mesh an implicit domain.
21 Without metric file, the -optim option allow to improve the mesh quality
22 with respect to the initial mesh size.
23
25 1. Generic options:
26 -h Print help.
27 -v ⟨n⟩ Tune level of verbosity.
28 Takes values between -1 and 10.
29 -m ⟨n⟩ Set maximal memory size to n MBytes.
30 -d Turn on debug mode.
31 -default Write a local parameter file (with extension
32 .mmg2d) with setted values.
33 -val Print the default parameters values.
34
35 2. File specifications:
36 -in ⟨mesh_file⟩ Input triangulation.
37 -out ⟨output_file⟩ Output triangulation.
38 -sol ⟨solution_file⟩ Load metric, level-set or displacement file.
39 -met ⟨metric_file⟩ Load metric file in level-set mode.
40
41 3. Mode specifications (default is mesh adaptation):
42 -lag ⟨n⟩ Lagrangian mesh displacement according to
43 mode 0 ( n=0 ), 1 ( n=1 ) or 2 ( n=2 ). This
44 option is only available with the USE_ELAS
45 compilation flag. The LinearElasticity li‐
46 brary must be founded to activate this flag.
47 -ls x Create mesh of isovalue x (0.0 if x is not
48 provided).
49
50 4. Parameters:
51 -A Enable anisotropy (without metric file).
52 -ar ⟨x⟩ | -nr Threshold for angle detection or sharp fea‐
53 tures detection disabling.
54 -hmin ⟨x⟩ Minimal mesh size.
55 -hmax ⟨x⟩ Maximal mesh size.
56 -hsiz ⟨x⟩ Constant mesh size.
57 -hausd ⟨x⟩ Control the Hausdorff distance to the under‐
58 lying surface geometry.
59 -hgrad ⟨x⟩ Control the gradation.
60 -hgradreq ⟨x⟩ Control the gradation from required entities
61 toward others.
62 -rmc x Remove componants whose volumic fraction is
63 less than x (1.e-5 if x is not provided) of
64 the whole mesh volume (level-set mode).
65 -opnbdy Preserve input edges at the interface of two
66 domains of the same reference.
67 -noinsert No point insertion/deletion.
68 -nomove No point relocation
69 -nosurf No surface modifications.
70 -noswap No edge or face flipping.
71 -nosizreq No imposition of the size of required edges
72 over required vertices.
73 -nreg Normal regularization using laplacian - an‐
74 tilaplacian smoothing.
75 -nsd ⟨n⟩ Save the subdomain of index n (default is
76 n=0 which save all subdomains).
77 -optim Mesh improvement with respect to the initial
78 mesh size.
79 -3dMedit ⟨n⟩ Write and/or read Medit mesh file in 3D. If
80 val=1 write the 2D mesh in 3D. If val=2 read
81 and write 2D mesh in 3D. If val=3 read a 2D
82 mesh in 3D and write it in 2D.
83
85 mmg2d returns:
86 • the 0 value if successful;
87 • the 1 value if the process fail but can save a conform mesh;
88 • the 2 value if the process fail and can't save a comform mesh.
89
91 mmg3d(1) mmgs(1)
92
93mmg2d May 04, 2015 mmg2d