2,953 research outputs found
Accelerating moderately stiff chemical kinetics in reactive-flow simulations using GPUs
The chemical kinetics ODEs arising from operator-split reactive-flow
simulations were solved on GPUs using explicit integration algorithms. Nonstiff
chemical kinetics of a hydrogen oxidation mechanism (9 species and 38
irreversible reactions) were computed using the explicit fifth-order
Runge-Kutta-Cash-Karp method, and the GPU-accelerated version performed faster
than single- and six-core CPU versions by factors of 126 and 25, respectively,
for 524,288 ODEs. Moderately stiff kinetics, represented with mechanisms for
hydrogen/carbon-monoxide (13 species and 54 irreversible reactions) and methane
(53 species and 634 irreversible reactions) oxidation, were computed using the
stabilized explicit second-order Runge-Kutta-Chebyshev (RKC) algorithm. The
GPU-based RKC implementation demonstrated an increase in performance of nearly
59 and 10 times, for problem sizes consisting of 262,144 ODEs and larger, than
the single- and six-core CPU-based RKC algorithms using the
hydrogen/carbon-monoxide mechanism. With the methane mechanism, RKC-GPU
performed more than 65 and 11 times faster, for problem sizes consisting of
131,072 ODEs and larger, than the single- and six-core RKC-CPU versions, and up
to 57 times faster than the six-core CPU-based implicit VODE algorithm on
65,536 ODEs. In the presence of more severe stiffness, such as ethylene
oxidation (111 species and 1566 irreversible reactions), RKC-GPU performed more
than 17 times faster than RKC-CPU on six cores for 32,768 ODEs and larger, and
at best 4.5 times faster than VODE on six CPU cores for 65,536 ODEs. With a
larger time step size, RKC-GPU performed at best 2.5 times slower than six-core
VODE for 8192 ODEs and larger. Therefore, the need for developing new
strategies for integrating stiff chemistry on GPUs was discussed.Comment: 27 pages, LaTeX; corrected typos in Appendix equations A.10 and A.1
A parallel nearly implicit time-stepping scheme
Across-the-space parallelism still remains the most mature, convenient and natural way to parallelize large scale problems. One of the major problems here is that implicit time stepping is often difficult to parallelize due to the structure of the system. Approximate implicit schemes have been suggested to circumvent the problem. These schemes have attractive stability properties and they are also very well parallelizable.\ud
The purpose of this article is to give an overall assessment of the parallelism of the method
A Two-moment Radiation Hydrodynamics Module in Athena Using a Time-explicit Godunov Method
We describe a module for the Athena code that solves the gray equations of
radiation hydrodynamics (RHD), based on the first two moments of the radiative
transfer equation. We use a combination of explicit Godunov methods to advance
the gas and radiation variables including the non-stiff source terms, and a
local implicit method to integrate the stiff source terms. We adopt the M1
closure relation and include all leading source terms. We employ the reduced
speed of light approximation (RSLA) with subcycling of the radiation variables
in order to reduce computational costs. Our code is dimensionally unsplit in
one, two, and three space dimensions and is parallelized using MPI. The
streaming and diffusion limits are well-described by the M1 closure model, and
our implementation shows excellent behavior for a problem with a concentrated
radiation source containing both regimes simultaneously. Our operator-split
method is ideally suited for problems with a slowly varying radiation field and
dynamical gas flows, in which the effect of the RSLA is minimal. We present an
analysis of the dispersion relation of RHD linear waves highlighting the
conditions of applicability for the RSLA. To demonstrate the accuracy of our
method, we utilize a suite of radiation and RHD tests covering a broad range of
regimes, including RHD waves, shocks, and equilibria, which show second-order
convergence in most cases. As an application, we investigate radiation-driven
ejection of a dusty, optically thick shell in the interstellar medium (ISM).
Finally, we compare the timing of our method with other well-known iterative
schemes for the RHD equations. Our code implementation, Hyperion, is suitable
for a wide variety of astrophysical applications and will be made freely
available on the Web.Comment: 30 pages, 29 figures, accepted for publication in ApJ
Efficient solution of parabolic equations by Krylov approximation methods
Numerical techniques for solving parabolic equations by the method of lines is addressed. The main motivation for the proposed approach is the possibility of exploiting a high degree of parallelism in a simple manner. The basic idea of the method is to approximate the action of the evolution operator on a given state vector by means of a projection process onto a Krylov subspace. Thus, the resulting approximation consists of applying an evolution operator of a very small dimension to a known vector which is, in turn, computed accurately by exploiting well-known rational approximations to the exponential. Because the rational approximation is only applied to a small matrix, the only operations required with the original large matrix are matrix-by-vector multiplications, and as a result the algorithm can easily be parallelized and vectorized. Some relevant approximation and stability issues are discussed. We present some numerical experiments with the method and compare its performance with a few explicit and implicit algorithms
- âŚ