forked from xiaolongma/jburkardt-f
-
Notifications
You must be signed in to change notification settings - Fork 1
/
flow5.html
289 lines (256 loc) · 7.53 KB
/
flow5.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
<html>
<head>
<title>
FLOW5 - A Finite Element Code for Fluid Flow
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055">
<h1 align = "center">
FLOW5 <br> A Finite Element Code for Fluid Flow
</h1>
<hr>
<p>
<b>FLOW5</b>
is a FORTRAN90 program which
uses the finite element method to solve for the steady state
velocity and pressure in a fluid flow region.
</p>
<p>
The fluid is presumed to be incompressible.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../f_src/bump/bump.html">
BUMP</a>,
a FORTRAN90 program which
solves a fluid flow problem
in a channel including a bump which obstructs and redirects the flow.
</p>
<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/fem_to_tec/fem_to_tec.html">
FEM_TO_TEC</a>,
a MATLAB program which
can convert an FEM model into a TEC graphics file.
</p>
<p>
<a href = "../../f_src/fem2d_pack/fem2d_pack.html">
FEM2D_PACK</a>,
a FORTRAN90 library which
contains utilities for 2D finite element calculations.
</p>
<p>
<a href = "../../f_src/fem2d_poisson/fem2d_poisson.html">
FEM2D_POISSON</a>,
a FORTRAN90 program which
solves Poisson's equation
on a square, using the finite element method.
</p>
<p>
<a href = "../../f_src/flow3/flow3.html">
FLOW3</a>,
a FORTRAN90 program which
uses the finite element method to solve for the steady state
velocity and pressure in a fluid flow region.
</p>
<p>
<a href = "../../f77_src/inout/inout.html">
INOUT</a>,
a FORTRAN77 program which
computes the pressure
and velocity for a Navier Stokes flow in a square region with
an inlet and an outlet.
</p>
<p>
<a href = "../../f_src/mhd_control/mhd_control.html">
MHD_CONTROL</a>,
a FORTRAN90 program which
tries to control the evolution of an MHD system so that a particular
state is achieved.
</p>
<p>
<a href = "../../f_src/mhd_flow/mhd_flow.html">
MHD_FLOW</a>,
a FORTRAN90 program for the
evolution of an MHD system.
</p>
<p>
<a href = "../../f_src/nast2d_f90/nast2d_f90.html">
NAST2D_F90</a>,
a FORTRAN90 program which
uses the finite volume method to set up and solve
the 2D incompressible Navier Stokes equations with heat.
</p>
<p>
<a href = "../../f77_src/tcell/tcell.html">
TCELL</a>,
a FORTRAN77 program which
computes the pressure
and velocity for a Navier Stokes flow in a "T"-shaped region.
</p>
<p>
<a href = "../../m_src/toms866/toms866.html">
TOMS866</a>,
a MATLAB library which
is the Incompressible Flow Iterative Solution Software;<br>
this library is commonly called <b>IFISS</b>;<br>
this is ACM TOMS algorithm 866.
</p>
<h3 align = "center">
Reference:
</h3>
<p>
<ol>
<li>
Max Gunzburger,<br>
Finite Element Methods for Viscous Incompressible Flows,<br>
A Guide to Theory, Practice, and Algorithms,<br>
Academic Press, 1989,<br>
ISBN: 0-12-307350-2,<br>
LC: TA357.G86.
</li>
</ol>
</p>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "flow5.f90">flow5.f90</a>, the source code;
</li>
<li>
<a href = "flow5.sh">flow5.sh</a>,
commands to compile and load the source code;
</li>
</ul>
</p>
<h3 align = "center">
Examples and Tests:
</h3>
<p>
<ul>
<li>
<a href = "cavity_output.txt">cavity_output.txt</a>,
the output file;
</li>
<li>
<a href = "cavity_elements.txt">cavity_elements.txt</a>,
the element file,
suitable for input to the DISPLAY4 graphics program;
</li>
<li>
<a href = "cavity_uvp.txt">cavity_uvp.txt</a>,
the node file, suitable for
input to the DISPLAY4 graphics program;
</li>
<li>
<a href = "cavity.tec">cavity.tec</a>,
a graphics file suitable for
input to the TECPLOT graphics program;
</li>
</ul>
</p>
<h3 align = "center">
List of Routines:
</h3>
<p>
<ul>
<li>
<b>MAIN</b> is the main program for FLOW5.
</li>
<li>
<b>BSP</b> evaluates the linear basis functions for pressure.
</li>
<li>
<b>DGB_FA</b> factors a matrix stored in LINPACK general band storage.
</li>
<li>
<b>DGB_SL</b> solves a system factored by DGB_FA.
</li>
<li>
<b>FP</b> computes the jacobian matrix A of the Navier Stokes residual.
</li>
<li>
<b>FX</b> computes the residual RES of the Navier Stokes equations.
</li>
<li>
<b>INTPRS</b> interpolates the pressure at the midside nodes.
</li>
<li>
<b>NEWTON</b> applies Newton iteration, seeking a solution of FX(G) = 0.
</li>
<li>
<b>QBF</b> evaluates a nonisoparametric quadratic basis function.
</li>
<li>
<b>R8VEC_AMAX</b> returns the maximum absolute value in a real vector.
</li>
<li>
<b>REFBSP</b> evaluates a reference element linear basis function.
</li>
<li>
<b>REFQBF</b> evaluates a reference element quadratic basis function.
</li>
<li>
<b>SETBAN</b> computes the lower band width of the Jacobian matrix.
</li>
<li>
<b>SETBAS</b> evaluates the basis functions at each quadrature point.
</li>
<li>
<b>SETQUAD</b> sets the abscissas and weights for quadrature in a triangle.
</li>
<li>
<b>SETNOD</b> assigns numbers to the nodes and elements.
</li>
<li>
<b>SETXY</b> sets the X and Y coordinates of the nodes.
</li>
<li>
<b>TIMESTAMP</b> prints the current YMDHMS date as a time stamp.
</li>
<li>
<b>TRANS</b> calculates the biquadratic reference element transformation.
</li>
<li>
<b>UVPNORM</b> returns the "norm" of the computed finite element solution.
</li>
<li>
<b>UVALQ</b> evaluates velocities and pressure at a quadrature point in an element.
</li>
<li>
<b>WRITE_DISPLAY_FILE</b> writes solution information to two files.
</li>
<li>
<b>WRITE_TECPLOT_FILE</b> writes out solution information for use with TECPLOT.
</li>
<li>
<b>XOFXSI</b> computes X and Y given XSI and ETA coordinates.
</li>
</ul>
</p>
<p>
You can go up one level to <a href = "../f_src.html">
the FORTRAN90 source codes</a>.
</p>
<hr>
<i>
Last revised on 12 November 2006.
</i>
</body>
</html>