[Gmsh] Retaining a Specified Surface mesh
Hines, Albert M.
Albert.Hines at alcoa.com
Thu Aug 20 17:41:22 CEST 2009
I am working with multiple materials and need to maintain a coincident interface between them. How do I impose, rather than request, the triangular surface mesh? I thought I might just remove line 5 in the following msh file, but that doesn't work properly. Sorry if the solution should be so obvious.
Albert Hines
------ Command file:
gmsh -3 -optimize -o foo3d.mesh foo.geo
------ geo file:
Merge "foo.msh";
Surface Loop(1) = {0};
Volume(2) = {1};
Physical Volume(3) = {2};
Physical Surface(4) = {0};
Physical Volume(5) = {2};
Physical Volume(6) = {2};
------ Example msh file:
$MeshFormat
2 0 8
$EndMeshFormat
$Nodes
81
1 0.00 14.950374 4.67
2 40.00 14.950374 4.67
3 40.00 14.950374 32.67
4 0.00 46.894374 32.67
5 40.00 46.894374 4.67
6 0.00 46.894374 4.67
7 0.00 14.950374 32.67
8 40.00 46.894374 32.67
9 26.156733 38.802862 4.67
10 13.232826 27.886074 32.67
11 13.901681 23.087227 4.67
12 13.898714 38.756954 32.67
13 31.371396 14.950374 18.666042
14 0.00 36.246374 4.67
15 0.00 25.598374 4.67
16 0.00 14.950374 18.67
17 13.333333 14.950374 4.67
18 8.675905 14.950374 18.665986
19 26.67 14.950374 4.67
20 20.073706 14.950374 18.628897
21 0.00 30.922374 18.67
22 0.00 36.246374 32.67
23 0.00 25.598374 32.67
24 13.238040 33.953158 4.67
25 26.766683 27.896308 4.67
26 26.67 14.950374 32.67
27 26.038735 23.131066 32.67
28 8.674856 46.894374 18.666020
29 40.00 25.598374 4.67
30 40.00 14.950374 18.67
31 40.00 36.246374 4.67
32 40.00 25.598374 32.67
33 40.00 30.922374 18.67
34 0.00 22.533610 16.548446
35 0.00 39.311139 20.784887
36 26.780767 33.944022 32.67
37 13.333333 14.950374 32.67
38 40.00 21.860046 18.67
39 32.498627 39.013604 26.888102
40 40.00 39.984702 18.67
41 7.325423 38.776059 25.983796
42 32.873119 38.957417 10.389433
43 31.370351 46.894374 18.666070
44 40.00 36.246374 32.67
45 20.070431 46.894374 18.630690
46 26.771601 24.635792 27.351513
47 13.333333 46.894374 4.67
48 13.333333 46.894374 32.67
49 26.67 46.894374 32.67
50 0.00 46.894374 18.67
51 26.67 46.894374 4.67
52 40.00 46.894374 18.67
53 32.670101 22.999166 25.986060
54 7.552356 22.793872 27.028598
55 7.666118 38.781489 11.287107
56 7.085597 22.816802 10.432222
57 32.332081 22.990342 11.289589
58 31.784001 27.906110 11.024495
59 33.737651 39.532733 18.660776
60 20.173019 38.401052 10.247800
61 8.832577 30.842009 10.072787
62 19.723145 22.565474 10.780383
63 33.814744 22.290879 18.608319
64 32.648119 31.002834 26.512222
65 34.518094 33.044349 20.645245
66 34.331170 33.492149 14.808686
67 34.391818 27.389065 21.534335
68 34.957037 27.921636 16.051564
69 7.361153 30.784268 26.512409
70 19.897685 39.097561 26.767356
71 17.461577 22.580041 26.834627
72 23.682731 31.804076 27.828776
73 14.522371 31.251126 27.838004
74 6.258268 22.245022 18.759467
75 6.178561 39.484080 18.605181
76 5.151544 27.999832 16.883967
77 5.106018 34.149606 18.448810
78 14.436685 21.277825 18.334327
79 24.421351 21.058309 18.872031
80 25.185021 40.346122 18.538136
81 15.219453 40.083006 18.517528
$EndNodes
$Elements
154
1 2 2 1 0 44 36 49
2 2 2 1 0 12 48 49
3 2 2 1 0 22 12 10
4 2 2 1 0 4 48 12
5 2 2 1 0 27 32 3
6 2 2 1 0 36 44 32
7 2 2 1 0 27 26 37
8 2 2 1 0 37 7 23
9 2 2 1 0 10 37 23
10 2 2 1 0 36 27 10
11 2 2 1 0 10 27 37
12 2 2 1 0 27 36 32
13 2 2 1 0 26 27 3
14 2 2 1 0 22 4 12
15 2 2 1 0 23 22 10
16 2 2 1 0 10 12 36
17 2 2 1 0 36 12 49
18 2 2 1 0 8 44 49
19 2 2 1 0 14 24 47
20 2 2 1 0 9 51 47
21 2 2 1 0 31 9 25
22 2 2 1 0 5 51 9
23 2 2 1 0 11 15 1
24 2 2 1 0 24 14 15
25 2 2 1 0 11 17 19
26 2 2 1 0 19 2 29
27 2 2 1 0 25 19 29
28 2 2 1 0 24 11 25
29 2 2 1 0 25 11 19
30 2 2 1 0 11 24 15
31 2 2 1 0 17 11 1
32 2 2 1 0 31 5 9
33 2 2 1 0 29 31 25
34 2 2 1 0 25 9 24
35 2 2 1 0 24 9 47
36 2 2 1 0 6 14 47
37 2 2 1 0 35 50 4
38 2 2 1 0 14 35 21
39 2 2 1 0 14 6 50
40 2 2 1 0 16 34 23
41 2 2 1 0 21 22 23
42 2 2 1 0 34 16 1
43 2 2 1 0 21 34 15
44 2 2 1 0 15 34 1
45 2 2 1 0 23 34 21
46 2 2 1 0 7 16 23
47 2 2 1 0 35 14 50
48 2 2 1 0 21 15 14
49 2 2 1 0 21 35 22
50 2 2 1 0 22 35 4
51 2 2 1 0 13 30 2
52 2 2 1 0 26 13 20
53 2 2 1 0 3 30 13
54 2 2 1 0 18 17 1
55 2 2 1 0 20 19 17
56 2 2 1 0 18 16 7
57 2 2 1 0 20 18 37
58 2 2 1 0 37 18 7
59 2 2 1 0 18 20 17
60 2 2 1 0 16 18 1
61 2 2 1 0 26 3 13
62 2 2 1 0 37 26 20
63 2 2 1 0 20 13 19
64 2 2 1 0 19 13 2
65 2 2 1 0 40 52 5
66 2 2 1 0 44 40 33
67 2 2 1 0 8 52 40
68 2 2 1 0 38 29 2
69 2 2 1 0 33 31 29
70 2 2 1 0 38 30 3
71 2 2 1 0 33 38 32
72 2 2 1 0 32 38 3
73 2 2 1 0 38 33 29
74 2 2 1 0 30 38 2
75 2 2 1 0 44 8 40
76 2 2 1 0 32 44 33
77 2 2 1 0 33 40 31
78 2 2 1 0 31 40 5
79 2 2 1 0 43 52 8
80 2 2 1 0 51 43 45
81 2 2 1 0 5 52 43
82 2 2 1 0 28 48 4
83 2 2 1 0 45 49 48
84 2 2 1 0 28 50 6
85 2 2 1 0 45 28 47
86 2 2 1 0 47 28 6
87 2 2 1 0 28 45 48
88 2 2 1 0 50 28 4
89 2 2 1 0 51 5 43
90 2 2 1 0 47 51 45
91 2 2 1 0 45 43 49
92 2 2 1 0 49 43 8
93 2 2 1 0 61 56 62
94 2 2 1 0 60 55 61
95 2 2 1 0 60 61 62
96 2 2 1 0 58 42 60
97 2 2 1 0 58 60 62
98 2 2 1 0 58 62 57
99 2 2 1 0 64 39 65
100 2 2 1 0 65 39 59
101 2 2 1 0 65 59 66
102 2 2 1 0 66 59 42
103 2 2 1 0 66 42 58
104 2 2 1 0 53 64 67
105 2 2 1 0 67 64 65
106 2 2 1 0 63 53 67
107 2 2 1 0 57 63 68
108 2 2 1 0 68 63 67
109 2 2 1 0 58 57 68
110 2 2 1 0 66 58 68
111 2 2 1 0 67 65 68
112 2 2 1 0 68 65 66
113 2 2 1 0 70 73 41
114 2 2 1 0 72 73 70
115 2 2 1 0 72 46 71
116 2 2 1 0 73 71 54
117 2 2 1 0 39 64 72
118 2 2 1 0 64 53 46
119 2 2 1 0 46 72 64
120 2 2 1 0 72 70 39
121 2 2 1 0 54 69 73
122 2 2 1 0 71 73 72
123 2 2 1 0 73 69 41
124 2 2 1 0 69 54 74
125 2 2 1 0 74 56 76
126 2 2 1 0 76 56 61
127 2 2 1 0 69 74 76
128 2 2 1 0 75 41 77
129 2 2 1 0 77 41 69
130 2 2 1 0 77 69 76
131 2 2 1 0 55 75 77
132 2 2 1 0 61 55 77
133 2 2 1 0 61 77 76
134 2 2 1 0 62 56 78
135 2 2 1 0 78 56 74
136 2 2 1 0 78 54 71
137 2 2 1 0 63 57 79
138 2 2 1 0 79 57 62
139 2 2 1 0 79 62 78
140 2 2 1 0 53 63 79
141 2 2 1 0 46 53 79
142 2 2 1 0 71 46 79
143 2 2 1 0 79 78 71
144 2 2 1 0 54 78 74
145 2 2 1 0 60 42 80
146 2 2 1 0 80 42 59
147 2 2 1 0 80 59 39
148 2 2 1 0 80 39 70
149 2 2 1 0 70 41 81
150 2 2 1 0 81 41 75
151 2 2 1 0 80 70 81
152 2 2 1 0 81 75 55
153 2 2 1 0 55 60 81
154 2 2 1 0 81 60 80
$EndElements