-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathmesh2d_write.html
286 lines (252 loc) · 6.88 KB
/
mesh2d_write.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<html>
<head>
<title>
MESH2D_WRITE - Write MESH2D Information to Files
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055">
<h1 align = "center">
MESH2D_WRITE <br> Write MESH2D Information to Files
</h1>
<hr>
<p>
<b>MESH2D_WRITE</b>
is a MATLAB program which
demonstrates how to call MESH2D to create a mesh, and then to
write the node and element information to files for use by other programs.
</p>
<p>
The code assumes that the MESH2D software is in the MATLAB path.
</p>
<h3 align = "center">
Licensing:
</h3>
<p>
The computer code and data files described and made available on this web page
are distributed under
<a href = "../../txt/gnu_lgpl.txt">the GNU LGPL license.</a>
</p>
<h3 align = "center">
Languages:
</h3>
<p>
<b>MESH2D_WRITE</b> is available in
<a href = "../../m_src/mesh2d_write/mesh2d_write.html">a MATLAB version</a>.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../m_src/distmesh/distmesh.html">
DISTMESH</a>,
a MATLAB library which
carries out triangular or tetrahedral mesh generation,
by Per-Olof Persson and Gilbert Strang.
</p>
<p>
<a href = "../../m_src/mesh2d/mesh2d.html">
MESH2D</a>,
a MATLAB library which
can automatically create a triangular mesh for a given polygonal region,
by Darren Engwirda.
</p>
<p>
<a href = "../../m_src/mesh2d_hand/mesh2d_hand.html">
MESH2D_HAND</a>,
a MATLAB program which
reads in a set of 59 points which outline a human hand,
and calls MESH2D, which is able to create a fine triangular
mesh of the region outlined by the points.
</p>
<p>
<a href = "../../m_src/test_triangulation/test_triangulation.html">
TEST_TRIANGULATION</a>,
a MATLAB library which
defines some test regions for triangulation.
</p>
<p>
<a href = "../../c_src/triangle/triangle.html">
TRIANGLE</a>,
a C program which
computes a triangulation of a geometric region,
by Jonathan Shewchuk.
</p>
<p>
<a href = "../../m_src/triangulation/triangulation.html">
TRIANGULATION</a>,
a MATLAB library which
performs various operations on order 3 ("linear") or order 6 ("quadratic") triangulations.
</p>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "mesh2d_write.m">mesh2d_write.m</a>
the program which calls MESH2D for 6 different meshes, each time writing
the node and element data to files.
</li>
<li>
<a href = "mesh2d_write_output.txt">mesh2d_write_output.txt</a>
the output file.
</li>
</ul>
</p>
<h3 align = "center">
Examples and Tests:
</h3>
<p>
<ul>
<li>
<a href = "mesh1_nodes.txt">mesh1_nodes.txt</a>
nodes for mesh 1.
</li>
<li>
<a href = "mesh1_nodes.png">mesh1_nodes.png</a>
an image of the nodes.
</li>
<li>
<a href = "mesh1_elements.txt">mesh1_elements.txt</a>
elements for mesh 1.
</li>
<li>
<a href = "mesh1_elements.png">mesh1_elements.png</a>
an image of the elements.
</li>
</ul>
</p>
<p>
<ul>
<li>
<a href = "mesh2_nodes.txt">mesh2_nodes.txt</a>
nodes for mesh 2.
</li>
<li>
<a href = "mesh2_nodes.png">mesh2_nodes.png</a>
an image of the nodes.
</li>
<li>
<a href = "mesh2_elements.txt">mesh2_elements.txt</a>
elements for mesh 2.
</li>
<li>
<a href = "mesh2_elements.png">mesh2_elements.png</a>
an image of the elements.
</li>
</ul>
</p>
<p>
<ul>
<li>
<a href = "mesh3_nodes.txt">mesh3_nodes.txt</a>
nodes for mesh 3.
</li>
<li>
<a href = "mesh3_nodes.png">mesh3_nodes.png</a>
an image of the nodes.
</li>
<li>
<a href = "mesh3_elements.txt">mesh3_elements.txt</a>
elements for mesh 3.
</li>
<li>
<a href = "mesh3_elements.png">mesh3_elements.png</a>
an image of the elements.
</li>
</ul>
</p>
<p>
<ul>
<li>
<a href = "mesh4_nodes.txt">mesh4_nodes.txt</a>
nodes for mesh 4.
</li>
<li>
<a href = "mesh4_nodes.png">mesh4_nodes.png</a>
an image of the nodes.
</li>
<li>
<a href = "mesh4_elements.txt">mesh4_elements.txt</a>
elements for mesh 4.
</li>
<li>
<a href = "mesh4_elements.png">mesh4_elements.png</a>
an image of the elements.
</li>
</ul>
</p>
<p>
<ul>
<li>
<a href = "mesh5_nodes.txt">mesh5_nodes.txt</a>
nodes for mesh 5.
</li>
<li>
<a href = "mesh5_nodes.png">mesh5_nodes.png</a>
an image of the nodes.
</li>
<li>
<a href = "mesh5_elements.txt">mesh5_elements.txt</a>
elements for mesh 5.
</li>
<li>
<a href = "mesh5_elements.png">mesh5_elements.png</a>
an image of the elements.
</li>
</ul>
</p>
<p>
<ul>
<li>
<a href = "mesh6_nodes.txt">mesh6_nodes.txt</a>
nodes for mesh 6.
</li>
<li>
<a href = "mesh6_nodes.png">mesh6_nodes.png</a>
an image of the nodes.
</li>
<li>
<a href = "mesh6_elements.txt">mesh6_elements.txt</a>
elements for mesh 6.
</li>
<li>
<a href = "mesh6_elements.png">mesh6_elements.png</a>
an image of the elements.
</li>
</ul>
</p>
<p>
<b>MESH7</b> is a channel with 13 hexagonal baffles.
The mesh uses 512 nodes and 874 elements.
<ul>
<li>
<a href = "mesh7_nodes.txt">mesh7_nodes.txt</a>
nodes for mesh 7.
</li>
<li>
<a href = "mesh7_nodes.png">mesh7_nodes.png</a>
an image of the nodes.
</li>
<li>
<a href = "mesh7_elements.txt">mesh7_elements.txt</a>
elements for mesh 7.
</li>
<li>
<a href = "mesh7_elements.png">mesh7_elements.png</a>
an image of the elements.
</li>
</ul>
</p>
<p>
You can go up one level to <a href = "../m_src.html">
the MATLAB source codes</a>.
</p>
<hr>
<i>
Last revised on 13 December 2012.
</i>
<!-- John Burkardt -->
</body>
<!-- Initial HTML skeleton created by HTMLINDEX. -->
</html>