没有合适的资源?快使用搜索试试~ 我知道了~
parallel-in-time algorithm: MGRIT
需积分: 4 4 下载量 2 浏览量
2019-01-05
11:49:02
上传
评论
收藏 1.82MB PDF 举报
温馨提示
The paper derives and analyses the (semi-)discrete dispersion relation of the Parareal parallel-in-time integration method. It investigates Parareal’s wave propagation characteristics with the aim to better understand what causes the well documented stability problems for hyperbolic equations. The analysis shows that the instability is caused by convergence of the ampli- fication factor to the exact value from above for medium to high wave numbers. Phase errors in the coarse propagator are identified as the culprit, which suggests that specifically tailored coarse level methods could provide a remedy.
资源推荐
资源详情
资源评论
Computing and Visualization in Science (2018) 19:1–17
https://doi.org/10.1007/s00791-018-0296-z
SPECIAL ISSUE PARALLEL-IN-TIME METHODS
Wave propagation characteristics of Parareal
Daniel Ruprecht
1
Received: 10 April 2017 / Accepted: 10 November 2017 / Published online: 29 May 2018
© The Author(s) 2018
Abstract
The paper derives and analyses the (semi-)discrete dispersion relation of the Parareal parallel-in-time integration method. It
investigates Parareal’s wave propagation characteristics with the aim to better understand what causes the well documented
stability problems for hyperbolic equations. The analysis shows that the instability is caused by convergence of the ampli-
fication factor to the exact value from above for medium to high wave numbers. Phase errors in the coarse propagator are
identified as the culprit, which suggests that specifically tailored coarse level methods could provide a remedy.
Keywords Parareal · Convergence · Dispersion relation · Hyperbolic problem · Advection-dominated problem
1 Introduction
Parallel computing has become ubiquitous in science and
engineering, but requires suitable numerical algorithms to
be efficient. Parallel-in-time integration methods have been
identified as a promising direction to increase the level of con-
currency in computer simulations that involve the numerical
solution of time dependent partial differential equations [5].
A variety of methods has been proposed [8,10,12,22,25],
the earliest going back to 1964 [27]. While even complex
diffusive problems can be tackled successfully [11,14,24,
33]—although parallel efficiencies remain low—hyperbolic
or advection-dominated problems have proved to be much
harder to parallelise in time. This currently prevents the use
of parallel-in-time integration for most problems in com-
putational fluid dynamics, even though many applications
struggle with excessive solution times and could benefit
greatly from new parallelisation s trategies.
For the Parareal parallel-in-time algorithm there is some
theory available illustrating its limitations in this respect.
Bal shows that Parareal with a sufficiently damping coarse
method is unconditionally stable for parabolic problems but
not for hyperbolic equations [2]. An early investigation of
Parareal’s stability properties showed instabilities f or imag-
inary eigenvalues [31]. Gander and Vandewalle [17]givea
detailed analysis of Parareal’s convergence and show that
B
Daniel Ruprecht
d.ruprecht@leeds.ac.uk
1
School of Mechanical Engineering, University of Leeds,
Leeds LS2 9JT, UK
even for the simple advection equation u
t
+u
x
= 0, Parareal
is either unstable or inefficient. Numerical experiments reveal
that the instability emerges in the nonlinear case as a
degradation of convergence with increasing Reynolds num-
ber [32]. Approaches exist to stabilise Parareal for hyperbolic
equations [3,4,7,13,15,23,29], but typically with significant
overhead, leading to further degradation of efficiency, or lim-
ited applicability.
Since a key characteristic of hyperbolic problems is
the existence of waves propagating with finite speeds,
understanding Parareal’s wave propagation characteristics is
important to understand and, hopefully, resolve these prob-
lems. However, no such analysis exists that gives insight into
how the instability emerges. A better understanding of the
instability could show the way to novel methods that allow
the efficient and robust parallel-in-time solution of flows gov-
erned by advection. Additionally, just like for “classical”
time stepping methods, detailed knowledge of Parareal’s the-
oretical properties for test cases will help understanding its
performance for complex test problems where mathematical
theory is not available.
To this end, the paper derives a discrete dispersion rela-
tion for Parareal to study how plane wave solutions u(x, t) =
exp(−iωt) exp(iκ x) are propagated in time. It studies the
discrete phase speed and amplification factor and how they
depend on e.g. the number of processors, choice of coarse
propagator and other parameters. The analysis reveals that
the source of the instability is a convergence from above in
the amplification factor in higher wave number modes. In
diffusive problems, where high wave numbers are naturally
123
2 D. Ruprecht
strongly damped, this does not cause any problems, but in
hyperbolic problems with little or no diffusion it causes the
amplification factors to exceed a value of one and thus trig-
gers instability. Furthermore, the paper identifies phase errors
in the coarse propagator as the source of these issues. This
suggests that controlling coarse level phase errors could be
key to devising efficient parallel-in-time methods for hyper-
bolic equations.
All results presented in this paper have been produced
using pyParareal, a simple open-source Python code. It
is freely available [28] to maximise the usefulness of the
here presented analysis, allowing other researchers to test
different equations or to explore sets of parameters which
are not analysed in this paper.
2 Parareal for linear problems
Parareal [ 25] is a parallel-in-time integration method for an
initial value problem
˙u(t) = Au (t), u(0) = u
0
∈ C
n
, 0 ≤ t ≤ T . (1)
For the sake of simplicity we consider only the linear case
where the right hand side is given by a matrix A ∈ C
n,n
.To
parallelise integration of (1) in time, Parareal decomposes
the time interval [0, T ] into P time slices
[0, T ]=[0, T
1
) ∪[T
1
, T
2
) ∪···∪[T
P−1
, T ], (2)
with P indicating the number of processors. Denote as F
δt
and G
t
two “classical” time integration methods with time
steps of length δt and t (e.g. Runge–Kutta methods). For the
sake of simplicity, assume that all slice [T
j−1
, T
j
) have the
same length T and that this length is an integer multiple of
both δt and t so that T = N
c
t and T = N
f
δt.Below,
δt will always denote the time step size of the fine method and
t the time step size of the coarse method, so that we omit
the indices and just write G and F to avoid clutter. Standard
serial time marching using the method denoted as F would
correspond to evaluating
u
p
= F(u
p−1
), p = 1,...,P, (3)
where u
p
≈ u(T
p
). Instead, after an initialisation procedure
to provide values u
0
p
—typically running the coarse method
once—Parareal computes the iteration
u
k
p
= G
u
k
p−1
+ F
u
k−1
p−1
− G
u
k−1
p−1
, p = 1,...,P
(4)
for k = 1,...,K where the computationally expensive
evaluation of the fine method can be parallelised over P pro-
cessors. If the number of iterations K is small enough and
the coarse method much cheaper than the fine, iteration (4)
can run in less wall clock time than serially computing (3).
2.1 The Parareal iteration in matrix form
As a first step toward deriving Parareal’s dispersion relation
we will need to derive its stability function which will require
writing it in matrix form. Consider now the case where both
the coarse and the fine integrator are one-step methods with
stability functions R
f
and R
c
. Then, G and F can be expressed
as matrices
u
p
= F(u
p−1
) = Fu
p−1
, u
p
= G(u
p−1
) = Gu
p−1
(5)
with F :=
R
f
(Aδt)
N
f
and G :=
(
R
c
(At)
)
N
c
. Denote
as u
k
= (u
0
,...,u
P
) ∈ R
(P+1)n
a vector that contains the
approximate solutions at all time points T
j
, j = 1,...,P
and the initial value u
0
. Simple algebra shows that one step
of iteration (4) is equivalent to the block matrix formulation
M
g
u
k
=
M
g
− M
f
u
k−1
+ b (6)
with matrices
M
f
:=
⎡
⎢
⎢
⎢
⎣
I
−FI
.
.
.
.
.
.
−FI
⎤
⎥
⎥
⎥
⎦
∈ R
(P+1)n,(P+1)n
(7)
and
M
g
:=
⎡
⎢
⎢
⎢
⎣
I
−GI
.
.
.
.
.
.
−GI
⎤
⎥
⎥
⎥
⎦
∈ R
(P+1)n,(P+1)n
(8)
and a vector b = (u
0
, 0,...,0) ∈ R
(P+1)n
. Formulation (6)
interpretes Parareal as a preconditioned linear iteration [1].
2.2 Stability function of Parareal
From the matrix formulation of a single Parareal iteration (6),
we can now derive its stability function, that is we can express
the update from the initial value u
0
to an approximation u
P
at
time T = T
P
using Parareal with K iterations as multiplica-
tion by a single matrix. The fine propagator solution satisfies
M
f
u
f
= b (9)
123
Wave propagation characteristics of Parareal 3
and is a fixed point of iteration (6). Therefore, propagation
of the error
e
k
:= u
k
− u
f
(10)
is governed by the matrix
E :=
I − M
−1
g
M
f
(11)
in the s ense that
e
k
= Ee
k−1
. (12)
Using this notation and applying (6) recursively, it is now
easy to show that
u
k
= Eu
0
+
k−1
j=0
E
j
M
−1
g
b. (13)
If, as is typically done, the start value u
0
for the iteration is
produced by a single run of the coarse method, that is if
M
g
u
0
= b, (14)
Equation (13) further simplifies to
u
k
=
⎛
⎝
k
j=0
E
j
⎞
⎠
M
−1
g
b. (15)
The right hand side vector can be generated from t he initial
value u
0
via
b = C
1
u
0
(16)
by defining
C
1
=
[
I;0
]
∈ R
(P+1)n,n
, I ∈ R
n,n
, 0 ∈ R
Pn,n
. (17)
Finally, denote as
C
2
=
[
0, I
]
, 0 ∈ R
n,Pn
, I ∈ R
n,n
, (18)
the matrix that selects the last n entries out of u
k
.Now,a
full Parareal update from some initial value u
0
to an approx-
imation u
P
using K iterations can be written compactly as
u
P
= C
2
⎛
⎝
K
j=0
E
j
⎞
⎠
M
−1
g
C
1
u
0
=: M
Parareal
u
0
. (19)
The stability matrix M
Parareal
∈ R
n,n
depends on K , T ,
T , P, t, δt, F, G and A. Note that Staff and Rønquist
derived the stability function for the scalar case using Pas-
cal’s tree [31].
2.3 Weak scaling versus longer simulation times
There are two different application scenarios for Parareal that
we can study when increasing the number of processors P.
If we fix the final time T , increasing P will lead to better
resolution since the coarse time step t cannot be larger
than the length of a time slice T —the coarse method has to
perform at least one step per time slice. In this scenario, more
processors are used to absorb the cost of higher temporal
resolution (“weak scaling”).
Alternatively, we can use additional processors to compute
until a later final time T and this is the scenario investigated
here. Consequently, we study here the case where T and
P increase together and always assume that T = P, that
is each time slice has length one and increasing P means
parallelising over more time slices covering a longer time
interval. Since dispersion properties of numerical methods
are typically analysed for a unit interval, this causes some
issues that we resolve by “normalising” the Parareal stability
function, see Sect. 3.1.
2.4 Maximum singular value
The matrix E defined in (11) determines how quickly Parareal
converges. Note that E is nil-potent with E
P
= 0, owing to
the fact that after P iterations Parareal will always reproduce
the fine solution exactly. Therefore, all eigenvalues of E are
zero and the spectral radius is not useful to analyse conver-
gence. Below, to investigate convergence, we will therefore
compute the maximum singular value σ of E instead. Since
σ =
E
2
,
it follows from (12) that
e
k
2
≤
E
2
e
k−1
2
= σ
e
k−1
2
≤ σ
k
e
0
2
(20)
so that if σ<1 Parareal will converge monotonically with-
out stalling. In particular, this rules out behaviour as found by
Gander and Vandewalle for hyperbolic problems, where the
error would first increase substantially over the first P/2 iter-
ations before beginning to decrease [16]. However, achieving
fast convergence and good efficiency will typically require
σ 1. Note that if the coarse method is used to generate u
0
,
it follows from (9) and (14) that the initial error is
e
0
= u
0
− u
f
=
M
−1
g
− M
−1
f
b. (21)
The size of σ depends on the accuracy “gap” between the
coarse and fine integrator and the wave number. Figure 1
shows σ for varying values of t when backward Euler is
used for both coarse and fine method. Clearly, as the coarse
123
剩余16页未读,继续阅读
资源评论
wushulincsdn
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功