This is a description of code GalGel submitted to SPEC CPU2000 Benchmark
Search Program
__________________________________________________________________________
1. Description of the problem
This problem is a particular case of the GAMM (German Association for
Mathematics and Mechanics) benchmark devoted to numerical analysis of
oscillatory instability of convection in low-Prandtl-number fluids [1].
This benchmark became rather popular between CFD (Computational Fluid
Dynamics) people.
The physical problem is the following. There is a rectangular box filled
by a liquid whose Prandtl number is Pr=0.015. The aspect ratio of the
cavity length/height is 4. The left and right vertical walls are
maintained at at higher and lower temperatures respectively. This causes
a convective motion in the liquid. When the temperature difference is
relatively small the convective flow is steady. The flow looses its
stability and become oscillatory when the temperature difference exceeds
a certain value.
The buoyancy force, which causes the convective flow, is characterized by
a parameter called Grashof number. Besides all, the Grashof number (Gr)
is proportional to the characteristic temperature difference (difference
of the temperatures at the vertical walls in this case).
The task of the GAMM benchmark is to calculate the critical value of the
Grashof number which corresponds to a bifurcation from steady to
oscillatory state of the flow. Together with the critical Gr it is
necessary to calculate the critical frequency (the frequency of the
resulting oscillations when Gr is equal to its critical value).
The critical values (critical Grashof number and critical frequency)
depend on all parameters of the problem and the boundary conditions. The
GAMM benchmark considers fixed values of the Prandtl number and the
aspect raio (0.015 and 4 respectively), and offer to vary the boundary
conditions. In this code we choose the following set of the boundary
conditions: vertical walls are no-slip and isothermal; horizontal walls
are perfectly thermally insulated; lower horizontal wall is no-slip, and
the upper one is stress-free. These boundary conditions correspond to
Ra-Fa ( Rigid/adiabatic - Free/adiabatic ) case defined in [1].
2. Description of numerical method
The numerical method used here is not very common for CFD. This is the
spectral Galerkin method with the basis functions defined globally in the
whole region of the flow. Detail description of the method may be found
in [2]. There are two main advantages of this method. First is the
absence of the problem for pressure. The global Galerkin method allows
one to use the mathematical fact of orthogonality of the gradient of any
scalar function (including pressure) to the subspace of divergent-free
functions satisfying no-throughflow boundary conditions at the boundaries
(velocity of the considered flow belongs to this subspace). The second
advantage is relatively low number of unknown scalars (number of degrees
of freedom) which are necessary to obtain the accurate enough solution.
Some test calculations illustrating this fact may be found in [2,3].
The main disadvantage of the global Galerkin method is huge computer
memory required to keep all coefficients of the resulting dynamic system.
To avoid this some coefficients are recalculated each time when a
calculation of r.h.s. of the dynamic system is necessary. Keeping a
part of the coefficients, and recalculating of another part lead to a
rapid increase of the required computer memory and CPU time when the
number of the Galerkin basis functions is increased. In the case of
benchmarking this apparent disadvantage gives a desirable possibility to
vary computer memory and CPU time from very small to very large (see
Table below).
A relatively small amount of degrees of freedom gives us a possibility to
study linear stability of steady solutions. The analysis of linear
stability requires solution of an eigenvalue problem, which is usually
impossible for an arbitrary CFD code. It becomes possible with the use
of the global Galerkin method, and it was successfully done for
convective flows described here [2,5] and for swirling flow in a closed
cylindrical container [3,4]. Usual way to study onset of instability in
CFD is straight-forward integration in time of the full system of
equations. As a rule, this is much more CPU-time consuming and meets a
lot of numerical difficulties.
After linear stability analysis is completed and the bifurcation point is
calculated, we make one more step forward and calculate an asymptotic
approximation of the supercritical flow. For the problem considered
here, the instability sets in due to supercritical Hopf bifurcation. We
use the asymptotic approach described in [6]. The details on its
numerical application may be found in [3].
3. Description of the numerical process.
The numerical process is divided in 3 stages.
3.1. The first stage
The first stage is necessary to calculate a steady flow at an initial
value of the Grashof number, from which the linear stability analysis
will start. The initial Grashof number should be close to the critical
value such that iterations of the second step could converge, and
converge rather quickly. Usually, the initial value should be chosen on
the basis of some physical considerations. Here it is chosen to be
Gr(initial)=1.E5.
Steady states are calculated using Newton iterations. This also
requires some initial guess which should be rather close to a
solution. To do this we calculate steady states sequentially for
Gr=1.E1, 1.E2, 1.E3, 1.E4, and 1.E5 such that the steady state at the
former value of Gr is used as a guess for the next value. Zero
initial guess is used for Gr=1.E1.
3.2. The second stage
The second stage is devoted to the linear stability analysis of steady
state. For each steady state we consider the linearized eigenvalue
problem and calculate the eigenvalue with the largest real part (dominant
eigenvalue). Negative real parts of all the eigenvalues mean that the
flow is stable. If there is one eigenvalue with a positive real part,
the flow is unstable.
The goal is to find the critical value of the Grashof number for which
we have an eigenvalue whose real part is zero. To reach this goal we
calculate dominant eigenvalues for the initial Grashof number and the
Grashof number slightly above it. Then we approach the critical value
of the Grashof number using the secant method.
In the end of this stage we obtain the critical Grashof number. The
non-zero imaginary part of the dominant eigenvalue (whose real part is
zero) is the critical circular frequency of oscillations. Zero imaginary
part indicates steady bifurcation (bifurcation from one steady state to
another one).
Calculation of the critical Grashof number and the critical frequency
means that the task of the GAMM benchmark is completed.
3.3. The third stage
At the third stage we calculate an asymptotic approximation of the
oscillatory state of the flow. Without going into details (see [3,6]),
we should mention that the first term of this asymptotic expansion
is defined by two scalar numbers which are called here "Mu" and "Tau".
Stability of the asymptotic oscillatory state is defined by the
non-zero Floquet exponent, which is also calculated. Negative
Floquet exponent means stability, and the positive means instability.
After all three stages of calculations are completed, the code
reports the following five numbers:
- critical Grashof number
- critical circular frequency
- parameter Mu
- parameter Tau
- Floquet exponent
4. How to run the code.
All modules are written in the standard Fortran-90 . The only
exception is module 'lapak.f' which contains public domain LAPACK
routines written in Fortran-7
没有合适的资源?快使用搜索试试~ 我知道了~
spec-2000-all
共14122个文件
pm:2459个
pl:1876个
t:1335个
需积分: 11 1 下载量 91 浏览量
2022-09-28
21:02:47
上传
评论
收藏 254.85MB ZIP 举报
温馨提示
计算机cpu性能测试
资源详情
资源评论
资源推荐
收起资源包目录
spec-2000-all (14122个子文件)
ug2-1_medium.eps.%1 4KB
ug2-1_medium.eps.%2 4KB
Changes5.000 8KB
Changes5.001 47KB
Changes5.002 119KB
Changes5.003 4KB
Changes5.004 501KB
Changes5.005 1013KB
020_corefonts 5KB
020_textrise 3KB
020_textunderline 3KB
021_synfonts 5KB
022_truefonts 7KB
023_cjkfonts 5KB
024_bmpfonts 4KB
025_unifonts 56KB
026_unifont2 3KB
027_winfont 3KB
030_colorspecs 5KB
031_color_hsv 3KB
032_separation 4KB
init_cond.run.1 1.41MB
Changes5.8.1 729KB
ChangeLog.1 202KB
words.n.1 91KB
words.adj.1 58KB
words.v.4.1 23KB
words.adv.1 17KB
bzip2.1 16KB
bzip2.1 16KB
enc2xs.1 12KB
changes_in_V1.1 10KB
words.v.1.1 8KB
make.1 7KB
make.1 7KB
words.v.2.1 7KB
piconv.1 7KB
bzmore.1 4KB
words.v.6.1 2KB
dbe.1 1KB
bzgrep.1 1KB
bzdiff.1 897B
words.v.10.1 865B
words.v.8.1 858B
words.v.5.1 826B
words.n.c.1 204B
fort.16 1.78MB
1global 3KB
1global 3KB
persons.1k 62KB
persons.1k 62KB
init_cond.run.2 1.41MB
fort.2 178KB
Changes5.8.2 60KB
words.v.4.2 25KB
words.v.1.2 8KB
words.v.2.2 8KB
changes_in_V1.2 5KB
words.adj.2 3KB
words.v.6.2 3KB
words.v.8.2 993B
words.v.10.2 960B
words.v.5.2 948B
words.adv.2 791B
words.n.c.2 193B
x86_64.O3.cfg.20160830 35KB
persons.250 15KB
2use 6KB
2use 6KB
init_cond.run.3 1.41MB
Changes5.8.3 100KB
HTML__Parser.3 49KB
HTML__Parser.3 49KB
GD.3 41KB
GD.3 41KB
words.n.3 37KB
URI.3 34KB
URI.3 34KB
lwptut.3 31KB
lwptut.3 31KB
Compress__Zlib.3 30KB
Compress__Zlib.3 30KB
LWP__UserAgent.3 30KB
LWP__UserAgent.3 30KB
LWP.3 27KB
LWP.3 27KB
words.v.4.3 26KB
fort.3 26KB
fort.3 26KB
fort.3 26KB
HTML__Form.3 22KB
HTML__Form.3 22KB
Unicode__Normalize.3 19KB
HTTP__Headers.3 19KB
HTTP__Headers.3 19KB
IO__Stringy.3 17KB
IO__Stringy.3 17KB
HTTP__Daemon.3 17KB
HTTP__Daemon.3 17KB
IO__WrapTie.3 15KB
共 14122 条
- 1
- 2
- 3
- 4
- 5
- 6
- 142
wen_y_x
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0