forked from johannesgerer/jburkardt-m
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fd_to_tec.html
205 lines (174 loc) · 4.93 KB
/
fd_to_tec.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
<html>
<head>
<title>
FD_TO_TEC - Convert an FD Model to a TECPLOT ASCII File
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055">
<h1 align = "center">
FD_TO_TEC <br> Convert an FEM Model to a TECPLOT ASCII File
</h1>
<hr>
<p>
<b>FD_TO_TEC</b>
is a MATLAB program which
reads two files
defining a finite difference model (FD format) and writes a
TECPLOT ASCII file suitable for display by <b>TECPLOT</b>.
</p>
<p>
The finite difference model is assumed to include two items:
<ul>
<li>
Node coordinates, stored in a "node file";
</li>
<li>
Node values, such as pressure,
velocity, and so on, stored in a "value file";
</li>
</ul>
</p>
<p>
A naming convention assumes that these files share a common prefix,
followed by the suffixes "_nodes.txt" and "_values.txt".
Thus, the "carlos" set of data would be contained in the files
"carlos_nodes.txt" and "carlos_values.txt".
</p>
<p>
<b>FD_TO_TEC</b> reads these two files, calls MATLAB's <b>delaunayn</b> function
to get a triangularization (if the node data is 2D)
or a tetrahedralization (if the node data is 3D) and writes the element data
to a file (which turns the FD model into an FEM model), and writes an equivalent
TECPLOT ASCII ".dat" file.
</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">
Usage:
</h3>
<p>
<blockquote>
<b>fd_to_tec</b> ( <i>'prefix'</i> )
</blockquote>
where
<ul>
<li>
<i>'prefix'</i> is the common file prefix;
</li>
</ul>
reads the files <i>'prefix'</i>_nodes.txt,
and <i>'prefix'</i>_values.txt; creates an element file <i>'prefix'</i>_elements.txt,
and creates the TECPLOT ASCII file <i>'prefix'</i>.dat.
</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>FD_TO_TEC</b> is available in
<a href = "../../m_src/fd_to_tec/fd_to_tec.html">a MATLAB version</a>.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../data/fd/fd.html">
FD</a>,
a data directory which
contains examples of FD files, two text files that can be used to describe
many finite difference models;
</p>
<p>
<a href = "../../m_src/fem_to_tec/fem_to_tec.html">
FEM_TO_TEC</a>,
a MATLAB program which
converts FEM models into TECPLOT ASCII graphics files.
</p>
<p>
<a href = "../../data/tec/tec.html">
TEC</a>,
a data directory which
contains a description and examples
of TECPLOT ASCII graphics files.
</p>
<p>
<a href = "../../m_src/tec_io/tec_io.html">
TEC_IO</a>,
a MATLAB library which
reads and writes TECPLOT ASCII graphics files.
</p>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "fd_to_tec.m">fd_to_tec.m</a>
the source code.
</li>
</ul>
</p>
<h3 align = "center">
Examples and Tests:
</h3>
<p>
<b>ELL</b> is an example of a 2D finite difference model
in which a scalar value is stored.
<ul>
<li>
<a href = "ell_nodes.txt">ell_nodes.txt</a>
the nodal coordinates.
</li>
<li>
<a href = "ell_values.txt">ell_values.txt</a>,
the nodal values.
</li>
<li>
<a href = "ell_elements.txt">ell_elements.txt</a>,
an element file, created by the program.
</li>
<li>
<a href = "ell.dat">ell.dat</a>, the TECPLOT ASCII file.
</li>
</ul>
</p>
<p>
<b>CARLOS</b> is an example of a 3D finite difference model
in which a scalar value is stored.
<ul>
<li>
<a href = "carlos_nodes.txt">carlos_nodes.txt</a>
</li>
<li>
<a href = "carlos_values.txt">carlos_values.txt</a>
</li>
<li>
<a href = "carlos_elements.txt">carlos_elements.txt</a>,
an element file, created by the program.
</li>
<li>
<a href = "carlos.dat">carlos.dat</a>, the TECPLOT ASCII file.
</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 12 March 2010.
</i>
<!-- John Burkardt -->
</body>
</html>