-
Notifications
You must be signed in to change notification settings - Fork 57
/
twod.html
288 lines (252 loc) · 8.31 KB
/
twod.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
<html>
<head>
<title>
TWOD - Functions for 2D Finite Elements
</title>
</head>
<body bgcolor="#eeeeee" link="#cc0000" alink="#ff3300" vlink="#000055">
<h1 align = "center">
TWOD <br> Functions for 2D Finite Elements
</h1>
<hr>
<p>
<b>TWOD</b>
is a MATLAB library which
contains functions useful for 2D finite element calculations,
by Jeff Borggaard.
</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>TWOD</b> is available in
<a href = "../../m_src/twod/twod.html">a MATLAB version</a>.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../data/fem2d/fem2d.html">
FEM2D</a>,
a data directory which
contains a description of the data files
that can be used to describe a 2D finite element model.
</p>
<p>
<a href = "../../m_src/fem_io/fem_io.html">
FEM_IO</a>,
a MATLAB library which
reads and writes the node, element and data files that define a finite element model.
</p>
<p>
<a href = "../../m_src/fem1d_pack/fem1d_pack.html">
FEM1D_PACK</a>,
a MATLAB library which
contains utilities for 1D finite element calculations.
</p>
<p>
<a href = "../../m_src/fem2d_heat/fem2d_heat.html">
FEM2D_HEAT</a>,
a MATLAB program which
solves the time dependent heat equation in the unit square.
</p>
<p>
<a href = "../../m_src/fem2d_pack/fem2d_pack.html">
FEM2D_PACK</a>,
a MATLAB library which
is useful for 2D finite element calculations.
</p>
<p>
<a href = "../../m_src/fem2d_poisson/fem2d_poisson.html">
FEM2D_POISSON</a>,
a MATLAB program which
solves the Poisson equation in the unit square.
</p>
<p>
<a href = "../../m_src/fem2d_poisson_rectangle_linear/fem2d_poisson_rectangle_linear.html">
FEM2D_POISSON_RECTANGLE_LINEAR</a>,
a MATLAB program which
solves the 2D Poisson equation on a rectangle, using the finite element method,
and piecewise linear triangular elements.
</p>
<p>
<a href = "../../m_src/fem2d_project/fem2d_project.html">
FEM2D_PROJECT</a>,
a MATLAB program which
projects a function F(X,Y) into a given finite element space
of piecewise linear triangular elements.
</p>
<p>
<a href = "../../m_src/fem2d_sample/fem2d_sample.html">
FEM2D_SAMPLE</a>,
a MATLAB library which
evaluates a finite element function defined on an order 3 or order 6 triangulation.
</p>
<p>
<a href = "../../m_src/fem3d_pack/fem3d_pack.html">
FEM3D_PACK</a>,
a MATLAB library which
contains utilities for 3D finite element calculations.
</p>
<p>
<a href = "../../m_src/oned/oned.html">
ONED</a>,
a MATLAB library which
contains functions useful for 1D finite element calculations.
</p>
<p>
<a href = "../../m_src/threed/threed.html">
THREED</a>,
a MATLAB library which
contains functions useful for 3D finite element calculations.
</p>
<p>
<a href = "../../m_src/twod_plotc/twod_plotc.html">
TWOD_PLOTC</a>,
a MATLAB program which
makes a color contour plot of scalar data defined on a 2D finite element mesh.
</p>
<p>
<a href = "../../m_src/twod_to_vtk/twod_to_vtk.html">
TWOD_TO_VTK</a>,
a MATLAB program which
accepts computational data from a 2D finite element fluid flow program
and writes it to a VTK "legacy" file for postprocessing by PARAVIEW.
</p>
<p>
<a href = "../../m_src/twod_to_vtu/twod_to_vtu.html">
TWOD_TO_VTU</a>,
a MATLAB program which
accepts computational data from a 2D finite element fluid flow program
and writes it to a VTK unstructured grid file for postprocessing by PARAVIEW.
</p>
<h3 align = "center">
Author:
</h3>
<p>
Jeff Borggaard, Virginia Tech.
</p>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "twod_backm2d.m">twod_backm2d.m</a>
calculates a mesh density function and generates
a backm2d file readable by amiral.
</li>
<li>
<a href = "twod_bilinear.m">twod_bilinear.m</a>
integrates kernel(x,y) * basis function(x,y) * test function(x,y).
</li>
<li>
<a href = "twod_f_int.m">twod_f_int.m</a>
computes the integral of f(x,y) times a test function.
</li>
<li>
<a href = "twod_gauss.m">twod_gauss.m</a>
sets Gauss integration points for triangular elements.
</li>
<li>
<a href = "twod_getfaces.m">twod_getfaces.m</a>
finds element faces corresponding to
a set of boundary nodes.
</li>
<li>
<a href = "twod_mesh.m">twod_mesh.m</a>
generates a rectangular mesh with a prescribed density.
This routine returns nodal coordinates, element
connectivity, and the nodal indices of boundary nodes.
</li>
<li>
<a href = "twod_plotc.m">twod_plotc.m</a>
produces a filled contour plot of triangular
finite element data.
</li>
<li>
<a href = "twod_plotm1.m">twod_plotm1.m</a>
plots linear triagular mesh.
Also works for quadratic straight sided elements.
</li>
<li>
<a href = "twod_plotm2.m">twod_plotm2.m</a>
plots linear triagular mesh.
Also works for quadratic straight sided elements.
</li>
<li>
<a href = "twod_projectd.m">twod_projectd.m</a>,
projects the derivative onto the
continuous finite element space (ZZ projection).
</li>
<li>
<a href = "twod_readcad5out.m">twod_readcad5out.m</a>
reads in solution data from a *.cad5out file
generated with cadyf.
This code is quite problem specific, since the
*.cad5out file is setup to solve the Navier-Stokes
equations.
</li>
<li>
<a href = "twod_readcadyf.m">twod_readcadyf.m</a>
reads in mesh, connectivity and boundary node
numbers from a *.cadyf file generated with
amiral (preprocessor for cadyf).
This code is quite problem specific, since the
*.cadyf file is setup to solve the Navier-Stokes
equations.
</li>
<li>
<a href = "twod_readcadyf1.m">twod_readcadyf1.m</a>
reads in mesh, connectivity and boundary node
numbers from a *.cadyf file generated with
amiral (preprocessor for cadyf).
This code is quite problem specific, since the
*.cadyf file is set up to solve the Navier-Stokes
equations.
</li>
<li>
<a href = "twod_shape.m">twod_shape.m</a>
computes test functions and derivatives on an
element given element coordinates and Gauss points.
Optimized for straight-sided elements. Use
"twod_shapeiso" for isoparametric elements.
</li>
<li>
<a href = "twod_shapeiso.m">twod_shapeiso.m</a>
computes test functions and derivatives on an
element given element coordinates and Gauss points.
Specifically set up for isoparametric
elements. Use "twod_shape" for linear elements.
</li>
<li>
<a href = "twod_to_tecplot.m">twod_to_tecplot.m</a>
writes out a 2D finite element solution to a file, in a format
readable by TECPLOT.
</li>
<li>
<a href = "twod_to_vu.m">twod_to_vu.m</a>
writes out a 2D finite element solution to a file, in a format
readable by Vu.
</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 modified on 05 September 2009.
</i>
<!-- John Burkardt -->
</body>
</html>