-
Notifications
You must be signed in to change notification settings - Fork 57
/
fem2d_scalar_display_brief.html
218 lines (187 loc) · 5.77 KB
/
fem2d_scalar_display_brief.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
<html>
<head>
<title>
FEM2D_SCALAR_DISPLAY_BRIEF - Surface Plot of Scalar FEM2D Data
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055">
<h1 align = "center">
FEM2D_SCALAR_DISPLAY_BRIEF <br> Surface Plot of Scalar FEM2D Data
</h1>
<hr>
<p>
<b>FEM2D_SCALAR_DISPLAY_BRIEF</b>
is a MATLAB program which
reads datafiles describing a set of nodes, their triangulation, and the
value of a scalar quantity at each node, and creates a graphics file
of the corresponding surface plot, which is then displayed using
the MATLAB graphics system, using just 5 lines of code.
</p>
<p>
The program reads three data files:
<ul>
<li>
<i>prefix</i>_nodes.txt, a node file, containing
X, Y coordinates of points;
</li>
<li>
<i>prefix</i>_elements.txt, an element file,
containing a list of sets of three points making up each
triangular element.
</li>
<li>
<i>prefix</i>_values.txt, a values file,
containing the values of a scalar function U(X,Y) evaluated
at each node.
</li>
</ul>
</p>
<h3 align = "center">
Usage:
</h3>
<p>
<blockquote>
<b>fem2d_scalar_display_brief</b> ( <i>'prefix'</i> )
</blockquote>
where <i>'prefix'</i> is the common prefix for the node, element and value files:
</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>FEM2D_SCALAR_DISPLAY</b> is available in
<a href = "../../m_src/fem2d_scalar_display/fem2d_scalar_display.html">a MATLAB version</a>.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../m_src/dist_plot/dist_plot.html">
DIST_PLOT</a>,
a MATLAB program which
makes contour plots of the distance function,
as defined and used in Persson and Strang's distmesh code;
</p>
<p>
<a href = "../../m_src/fem2d_mesh_display/fem2d_mesh_display.html">
FEM2D_MESH_DISPLAY</a>,
a MATLAB program which
reads the FEM model of a 2D mesh, consisting of polygonal elements of
any uniform order, and displays an image of the elements and nodes,
with optional numbering.
</p>
<p>
<a href = "../../m_src/fem2d_scalar_display/fem2d_scalar_display.html">
FEM2D_SCALAR_DISPLAY</a>,
a MATLAB program which
reads information about nodes, elements and nodal values for a
2D finite element method (FEM) and creates a surface plot of U(X,Y),
using the MATLAB graphics system.
</p>
<p>
<a href = "../../m_src/fem2d_scalar_display_gpl/fem2d_scalar_display_gpl.html">
FEM2D_SCALAR_DISPLAY_GPL</a>,
a MATLAB program which
reads information about nodes, elements and nodal values for a
2D finite element method (FEM) and creates a GPL file describing
a surface plot of U(X,Y), which can be displayed by gnuplot.
</p>
<p>
<a href = "../../examples/fenics_to_fem/fenics_to_fem.html">
FENICS_TO_FEM</a>,
examples which
illustrate how a mesh or scalar function computed by the FENICS program
can be written to FEM files, which can then be used to create
images, or as input to meshing programs or other analysis tools.
</p>
<p>
<a href = "../../m_src/triangulation_order3_contour/triangulation_order3_contour.html">
TRIANGULATION_ORDER3_CONTOUR</a>,
a MATLAB program which
can display a contour plot
of scalar data defined on a triangulation of order 3.
</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>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "fem2d_scalar_display_brief.m">
fem2d_scalar_display_brief.m</a>,
the routine for creating the surface plot;
</li>
</ul>
</p>
<h3 align = "center">
Examples and Tests:
</h3>
<p>
<b>ELL</b> is an L-shaped region on which the function U=X^2+Y^2
is defined.
<ul>
<li>
<a href = "ell_nodes.txt">ell_nodes.txt</a>,
a node file;
</li>
<li>
<a href = "ell_elements.txt">ell_elements.txt</a>,
an element file;
</li>
<li>
<a href = "ell_values.txt">ell_values.txt</a>,
a value file;
</li>
<li>
<a href = "ell.png">ell.png</a>,
a PNG image;
</li>
</ul>
</p>
<p>
<b>SPIKE</b> is a circular region on which a solution of the
Poisson equation forms an off-centered spike.
<ul>
<li>
<a href = "spike_nodes.txt">spike_nodes.txt</a>,
a node file;
</li>
<li>
<a href = "spike_elements.txt">spike_elements.txt</a>,
an element file;
</li>
<li>
<a href = "spike_values.txt">spike_values.txt</a>,
a value file;
</li>
<li>
<a href = "spike.png">spike.png</a>,
a PNG image;
</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 02 November 2014.
</i>
<!-- John Burkardt -->
</body>
</html>