-
Notifications
You must be signed in to change notification settings - Fork 57
/
tec_io.html
361 lines (327 loc) · 8.92 KB
/
tec_io.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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
<html>
<head>
<title>
TEC_IO - Read and Write TEC Files
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055">
<h1 align = "center">
TEC_IO <br> Read and Write TEC Files
</h1>
<hr>
<p>
<b>TEC_IO</b>
is a MATLAB library which
can read or write
a TEC graphics file containing a finite element model.
</p>
<p>
There are several kinds of TEC files; the routines given here can only
handle the case where a single <b>ZONE</b> record is used to define finite
element data, using a <b>DATAPACKING</b> value of "POINT" (not "BLOCK"),
and a ZONETYPE of
<ul>
<li>
FETRIANGLE
</li>
<li>
FEQUADRILATERAL
</li>
<li>
FETETRAHEDRON
</li>
<li>
FEBRICK
</li>
</ul>
</p>
<p>
The data to be written or read is assumed to have a logical
organization into three groups:
<ul>
<li>
Node coordinate data;
</li>
<li>
Element definitions, that is, the sequence of node indices
that define each element;
</li>
<li>
Node data, such as finite element coefficients for pressure,
velocity, and so on.
</li>
</ul>
</p>
<p>
<a href = "http://www.tecplot.com/">
The TECPLOT home page</a> contains a description of the
<b>TECPLOT</b> program.
</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>TEC_IO</b> is available in
<a href = "../../f_src/tec_io/tec_io.html">a FORTRAN90 version</a> and
<a href = "../../m_src/tec_io/tec_io.html">a MATLAB version</a>.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../m_src/fem_50/fem_50.html">
FEM_50</a>,
a MATLAB program
which implements a finite element solver in just 50 lines of code.
</p>
<p>
<a href = "../../m_src/fem_50_heat/fem_50_heat.html">
FEM_50_HEAT</a>,
a MATLAB program which
is a modified version of FEM_50 suitable
for solving the heat equation.
</p>
<p>
<a href = "../../m_src/fem_io/fem_io.html">
FEM_IO</a>,
a MATLAB library which
reads or writes an FEM model.
</p>
<p>
<a href = "../../m_src/fem_to_tec/fem_to_tec.html">
FEM_TO_TEC</a>,
a MATLAB program which
reads the three files
defining an FEM model and writes an equivalent TEC file.
</p>
<p>
<a href = "../../data/fem2d/fem2d.html">
FEM2D</a>,
a data directory which
contains examples of 2D FEM files,
text files that describe a 2D finite element geometry
and associated nodal values;
</p>
<p>
<a href = "../../m_src/fem2d_pack/fem2d_pack.html">
FEM2D_PACK</a>,
a MATLAB library which
is useful for finite element calculations.
</p>
<p>
<a href = "../../m_src/fem2d_poisson/fem2d_poisson.html">
FEM2D_POISSON</a>,
a MATLAB program which
solves Poisson's equation
on a square, using the finite element method.
</p>
<p>
<a href = "../../m_src/hot_pipe/hot_pipe.html">
HOT_PIPE</a>,
a MATLAB library which
can be run with FEM_50_HEAT.
</p>
<p>
<a href = "../../m_src/hot_point/hot_point.html">
HOT_POINT</a>,
a MATLAB library which
can be run with <b>FEM_50_HEAT</b>.
</p>
<p>
<a href = "../../data/tec/tec.html">
TEC</a>,
a data directory which
contains a description and examples
of the <b>TEC</b> graphics files used by <b>TECPLOT</b>
</p>
<p>
<a href = "../../m_src/tec_to_fem/tec_to_fem.html">
TEC_TO_FEM</a>,
a MATLAB program which
reads a TEC file
and writes a set of three files defining the
equivalent FEM model.
</p>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "ch_cap.m">
ch_cap.m</a>
capitalizes a character.
</li>
<li>
<a href = "ch_eqi.m">
ch_eqi.m</a>
is TRUE if two characters are equal, ignoring case.
</li>
<li>
<a href = "ch_is_alpha.m">
ch_is_alpha.m</a>
is TRUE if a character is alphabetic.
</li>
<li>
<a href = "file_name_inc.m">
file_name_inc.m</a>
"increments" a file name.
</li>
<li>
<a href = "i4mat_transpose_print.m">
i4mat_transpose_print_some.m</a>
prints an I4MAT, transposed.
</li>
<li>
<a href = "i4mat_transpose_print_some.m">
i4mat_transpose_print_some.m</a>
prints some of an I4MAT, transposed.
</li>
<li>
<a href = "r8mat_transpose_print.m">
r8mat_transpose_print.m</a>
prints an R8MAT, transposed.
</li>
<li>
<a href = "r8mat_transpose_print_some.m">
r8mat_transpose_print_some.m</a>
prints some of an R8MAT, transposed.
</li>
<li>
<a href = "s_adjustl.m">
s_adjustl.m</a>
shifts a string to the left, removing initial blanks.
</li>
<li>
<a href = "s_alpha_last.m">
s_alpha_last.m</a>
finds the last alphabetic character in a string.
</li>
<li>
<a href = "s_begin.m">
s_begin.m</a>
is TRUE if two strings match up to the end of the shorter one,
ignoring spaces and capitalization.
</li>
<li>
<a href = "s_behead_substring.m">
s_behead_substring.m</a>
beheads a substring from the beginning of a string, if it
occurs there.
</li>
<li>
<a href = "s_eqi.m">
s_eqi.m</a>
returns "TRUE" if two strings are equal, ignoring case.
</li>
<li>
<a href = "s_inc.m">
s_inc.m</a>
"increments" a string.
</li>
<li>
<a href = "s_len_trim.m">
s_len_trim.m</a>
returns the length of a string to the last nonblank.
</li>
<li>
<a href = "s_replace_ch.m">
s_replace_ch.m</a>
replaces all occurrences of one character by another character.
</li>
<li>
<a href = "s_to_i4.m">
s_to_i4.m</a>
converts a string to an I4.
</li>
<li>
<a href = "s_word_count.m">
s_word_count.m</a>
counts the number of words in a string.
</li>
<li>
<a href = "s_word_extract.m">
s_word_extract.m</a>
extracts the first word from a string.
</li>
<li>
<a href = "tec_read.m">
tec_read.m</a>
reads the information from a TEC file.
</li>
<li>
<a href = "tec_variable_line_parse.m">
tec_variable_line_parse.m</a>
parses the "variables" line of a TEC file.
</li>
<li>
<a href = "tec_write.m">
tec_write.m</a>
writes information to a TEC file.
</li>
<li>
<a href = "tec_zone_line_parse.m">
tec_zone_line_parse.m</a>
parses the "zone" line of a TEC file.
</li>
<li>
<a href = "timestamp.m">
timestamp.m</a>
prints the current YMDHMS date as a timestamp.
</li>
</ul>
</p>
<h3 align = "center">
Examples and Tests:
</h3>
<p>
<ul>
<li>
<a href = "tec_io_test.m">
tec_io_test.m</a>
runs the tests.
</li>
<li>
<a href = "tec_io_test01.m">
tec_io_test01.m</a>
tests TEC_READ by reading "ell.dat";
</li>
<li>
<a href = "tec_io_test02.m">
tec_io_test02.m</a>
tests TEC_WRITE by writing "tiny.dat";
</li>
<li>
<a href = "tec_io_test_output.txt">
tec_io_test_output.txt</a>
printed output from the tests.
</li>
<li>
<a href = "ell.dat">ell.dat</a>,
a TECPLOT ASCII file read by the test program;
</li>
<li>
<a href = "tiny.dat">tiny.dat</a>,
a TECPLOT ASCII file created by the test program;
</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 26 April 2006.
</i>
<!-- John Burkardt -->
</body>
</html>