?? cfd recipes chapter 20.mht
字號:
From: <由 Microsoft Internet Explorer 5 保存>
Subject: CFD Recipes: Chapter 20
Date: Fri, 18 Jul 2003 17:29:08 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="----=_NextPart_000_0048_01C34D52.18642860";
type="text/html"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
This is a multi-part message in MIME format.
------=_NextPart_000_0048_01C34D52.18642860
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://capella.colorado.edu/~laney/ch20code.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>CFD Recipes: Chapter 20</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dgb2312">
<META content=3D"Free CFD Software" name=3DDESCRIPTION>
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
<BODY text=3D#ffffff vLink=3D#cc9999 aLink=3D#ffcccc link=3D#999999 =
bgColor=3D#006666>
<DIV align=3Dcenter><IMG height=3D42 alt=3D"Cambridge University Press"=20
src=3D"http://capella.colorado.edu/~laney/graphics/cup.gif" width=3D189> =
<BR><IMG=20
height=3D79 alt=3D"Computational Gasdynamics"=20
src=3D"http://capella.colorado.edu/~laney/graphics/title.gif" =
width=3D537>=20
<BR></DIV>
<TABLE cellSpacing=3D0 cellPadding=3D10 width=3D"100%" border=3D0>
<TBODY>
<TR>
<TD vAlign=3Dtop align=3Dright><FONT size=3D+0><A=20
href=3D"http://capella.colorado.edu/~laney/home.htm">Home</A>=20
<P><A=20
=
href=3D"http://capella.colorado.edu/~laney/description.htm">Description</=
A>=20
<P><A href=3D"http://capella.colorado.edu/~laney/faq.htm">FAQ</A>=20
<P><A href=3D"http://capella.colorado.edu/~laney/toc.htm">Table of =
Contents</A>=20
<P><A =
href=3D"http://capella.colorado.edu/~laney/index.htm">Index</A>=20
<P><A =
href=3D"http://capella.colorado.edu/~laney/reviews.htm">Reviews</A>=20
<P><A =
href=3D"http://capella.colorado.edu/~laney/software.htm">Software</A>=20
<P><A =
href=3D"http://capella.colorado.edu/~laney/hwsolns.htm">Solutions to=20
Problems</A>=20
<P><A =
href=3D"http://capella.colorado.edu/~laney/additional.htm">Additional=20
Material</A>=20
<P><A =
href=3D"http://capella.colorado.edu/~laney/errata.htm">Errata </A>
<P><A =
href=3D"http://capella.colorado.edu/~laney/cover.htm">Cover</A>=20
<P><A =
href=3D"http://capella.colorado.edu/~laney/otherbooks.htm">Other Books=20
of Interest</A>=20
<P><A href=3D"http://capella.colorado.edu/~laney/links.htm">Other =
Sites of=20
Interest</A>=20
<P><A href=3D"http://capella.colorado.edu/~laney/author.htm">About =
the=20
Author</A>=20
<P><A =
href=3D"http://capella.colorado.edu/~laney/purchase.htm">Purchase the=20
Book</A> </FONT></P></TD>
<TD vAlign=3Dtop>
<BLOCKQUOTE>
<H1>Software for <I>Computational Gasdynamics</I></H1><BR><IMG=20
=
src=3D"http://capella.colorado.edu/~laney/graphics/cfdrecipes.jpg"=20
border=3D0> <BR><BR>
<HR>
<H2>Chapter 20. Flux Averaging Methods I: Flux Limited =
Methods</H2>
<HR>
<BR>
<TABLE cellSpacing=3D0 cellPadding=3D5 border=3D0>
<TBODY>
<TR>
<TD><A=20
=
href=3D"http://capella.colorado.edu/~laney/ch20soft/vl2.f">Van=20
Leer's Flux Limited Method</A></TD></TR>
<TR>
<TD><A=20
=
href=3D"http://capella.colorado.edu/~laney/ch20soft/sweby.f">Sweby's=20
Flux Limited Method (TVD)</A></TD></TR>
<TR>
<TD><A=20
=
href=3D"http://capella.colorado.edu/~laney/ch20soft/davis.f">Davis-Roe=20
Flux Limited Method (TVD)</A></TD></TR>
<TR>
<TD><A=20
=
href=3D"http://capella.colorado.edu/~laney/ch20soft/yee.f">Yee-Roe=20
Flux Limited Method (TVD)</A></TD></TR>
<TR>
<TD><A=20
=
href=3D"http://capella.colorado.edu/~laney/ch11soft/testf.f">Generator=20
for Initial Conditions</A></TD></TR>
<TR>
<TD><A=20
=
href=3D"http://capella.colorado.edu/~laney/ch17soft/nb.dat">Sample=20
Input File</A></TD></TR></TBODY></TABLE>
<P>These codes approximate the solution to the linear advection =
equation=20
on a periodic domain. By changing the statement functions f and =
df, all=20
of these codes except the first can also approximate other =
scalar=20
conservation laws. The Sweby and Yee-Roe codes will ask you to =
choose a=20
flux limiter at run time. The Yee-Roe code will also ask you to =
choose=20
an implicit coefficient between 0 and 1 at run time (0 is fully=20
explicit, 1 is fully implicit). For the fully-explicit Yee-Roe =
method,=20
the upper bound on the CFL number is 2/3, somewhat less than the =
0.8=20
specified in the sample input file. The choice of flux limiter =
may also=20
effect the stability of this method.=20
<P>These codes require an ASCII input file nb.dat of the =
following form:=20
<BLOCKQUOTE><I>N: Number of Points, lambda: delta_t/delta_x, =
tfinal:=20
final time </I>
<P><I>Initial Conditions at 1st point (x1,y1)</I>
<P><I>Initial Conditions at 2nd point (x2,y2)</I>
<P>...
<P><I>Initial Conditions at Nth point (xN,yN)</I>
<P><I>Initial Conditions at N+1th point (xN+1,yN+1)<BR>(should =
repeat=20
the 1st Point)</I>
<P></P></BLOCKQUOTE>These codes will produce two ASCII output =
files:=20
<UL>
<LI>vl2.out, sweby.out, davis.out, or yee.out. Lists delta_t, =
delta_x,=20
and lambda. Also lists the final time requested vs. actual =
final time=20
(these may differ if delta_t is not an even divisor of =
tfinal).=20
Finally, lists the intial vs. final conditions at each point.=20
<LI>vl2.plt, sweby.plt, davis.plt, or yee.plt. Approximate vs. =
real=20
solution at each point. </LI></UL>Using the sample input file, =
these=20
codes will generate figures 20.5, 20.11, 20.12, and 20.14 in the =
book.=20
You can generate a variety of other input files using the =
initial=20
condition generator. The generator expects an ASCII input file =
called=20
nb.dat with the first line as defined above. The file can =
contain=20
additional lines or not. The generator produces an ASCII output =
file,=20
also called nb.dat, in the form defined above. The user selects =
from a=20
menu to determine the intial conditions found in nb.dat after =
running=20
the generator. With the initial condition generator and the =
other=20
routines found here, you can generate most of the figures in =
Chapter 20=20
of the book.
<P></P></BLOCKQUOTE></TD></TR></TBODY></TABLE><BR>
<DIV align=3Dcenter>[ <A=20
href=3D"http://capella.colorado.edu/~laney/booksoft.htm">Book Software =
Home</A> |=20
<A href=3D"http://capella.colorado.edu/~laney/ch4scode.htm">Chapter =
4</A> | <A=20
href=3D"http://capella.colorado.edu/~laney/ch5code.htm">Chapter 5</A> | =
<BR><A=20
href=3D"http://capella.colorado.edu/~laney/ch8code.htm">Chapter 8</A> | =
<A=20
href=3D"http://capella.colorado.edu/~laney/ch9code.htm">Chapter 9</A> | =
<A=20
href=3D"http://capella.colorado.edu/~laney/ch11code.htm">Chapter 11</A> =
| <A=20
href=3D"http://capella.colorado.edu/~laney/ch17code.htm">Chapter 17</A> =
| <BR><A=20
href=3D"http://capella.colorado.edu/~laney/ch18code.htm">Chapter 18</A> =
| <A=20
href=3D"http://capella.colorado.edu/~laney/ch21code.htm">Chapter 21</A> =
| <A=20
href=3D"http://capella.colorado.edu/~laney/ch22code.htm">Chapter 22</A> =
| <A=20
href=3D"http://capella.colorado.edu/~laney/ch23code.htm">Chapter 23</A>] =
</DIV><BR><BR>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -