-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathmesh2d_to_medit.html
183 lines (152 loc) · 4.42 KB
/
mesh2d_to_medit.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
<html>
<head>
<title>
MESH2D_TO_MEDIT - Save MESH2D data in MEDIT format
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055">
<h1 align = "center">
MESH2D_TO_MEDIT <br> Save MESH2D data in MEDIT format
</h1>
<hr>
<p>
<b>MESH2D_TO_MEDIT</b>,
a MATLAB program which
accepts the nodes and triangles of a mesh created by MESH2D
and creates a corresponding file that is in MEDIT format.
</p>
<h3 align = "center">
Usage:
</h3>
<p>
<blockquote>
<b>mesh2d_to_medit</b> ( <i>p</i>, <i>t</i>, <i>'filename'</i> )
</blockquote>
where
<ul>
<li>
<i>p</i> is the Nx2 array of node coordinates;
</li>
<li>
<i>t</i> is the Mx3 array of node indices forming triangles;
</li>
<li>
<i>filename</i> is the name of the file to be created.
</li>
</ul>
</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_TO_MEDIT</b> is available in
<a href = "../../m_src/mesh2d_to_medit/mesh2d_to_medit.html">a MATLAB version</a>.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../data/medit/medit.html">
MEDIT</a>,
a data directory which
contains examples of files which can be used by the MEDIT program
to define a 2D or 3D mesh for use by the finite element method (FEM),
using triangles, quadrilaterals, tetrahedrons or hexahedrons.
</p>
<p>
<a href = "../../examples/medit/medit.html">
MEDIT</a>,
examples which
illustrate the use of medit, an interactive graphics program developed
to visualize numerical simulation results on unstructured meshes in
two and three dimensions. Scalar, vector and tensor fields can be
easily associated and displayed with meshes.
The program is by Pascal Frey.
</p>
<p>
<a href = "../../m_src/medit_to_fem/medit_to_fem.html">
MEDIT_TO_FEM</a>,
a MATLAB program which
reads a mesh file created by the MEDIT program
and writes a corresponding pair of node and element files that correspond
to the FEM format.
</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_write/mesh2d_write.html">
MESH2D_WRITE</a>,
a MATLAB program which
demonstrates how MESH2D node and element data can be written to files.
</p>
<p>
<a href = "../../m_src/triangle_to_medit/triangle_to_medit.html">
TRIANGLE_TO_MEDIT</a>,
a MATLAB program which reads the NODE and ELE files created by triangle() to
describe a triangular mesh, and writes a corresponding MESH file
for input to medit().
</p>
<h3 align = "center">
Reference:
</h3>
<p>
<ol>
<li>
Pascal Frey,<br>
MEDIT: An interactive mesh visualization software,<br>
Technical Report RT-0253,<br>
Institut National de Recherche en Informatique et en Automatique,<br>
03 December 2001.
</li>
</ol>
</p>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "mesh2d_to_medit.m">mesh2d_to_medit.m</a>, the source code.
</li>
</ul>
</p>
<h3 align = "center">
Examples and Tests:
</h3>
<p>
<b>ELL_DEMO</b> calls MESH2D to create a mesh of an L-shaped region.
Then it calls MESH2D_TO_MEDIT to write the data to a file.
<ul>
<li>
<a href = "ell_demo.m">ell_demo.m</a>
</li>
<li>
<a href = "ell.mesh">ell.mesh</a>
</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 16 February 2015.
</i>
<!-- John Burkardt -->
</body>
<!-- Initial HTML skeleton created by HTMLINDEX. -->
</html>