• No results found

Parallel preconditioners for large scale partial difference equation systems

N/A
N/A
Protected

Academic year: 2021

Share "Parallel preconditioners for large scale partial difference equation systems"

Copied!
11
0
0

Loading.... (view fulltext now)

Full text

(1)

Contents lists available atScienceDirect

Journal of Computational and Applied

Mathematics

journal homepage:www.elsevier.com/locate/cam

Parallel preconditioners for large scale partial difference

equation systems

Jia-Chang Sun

, Jian-Wen Cao, Chao Yang

Institute of Software, Chinese Academy of Sciences, Beijing 100080, China

a r t i c l e i n f o Article history:

Received 29 June 2007

Received in revised form 28 March 2008

MSC:

65F10 65N22

Keywords:

PDE-based parallel preconditioner Partial difference equations DASP

a b s t r a c t

We propose a new preconditioner DASP (discrete approximate spectral preconditioner), based on the existing well-known preconditioners and our computational experience. Parallel preconditioning strategies for large scale partial difference equation systems arising from partial differential equations are investigated. Numerical results are given to show the efficiency and effectiveness of the new preconditioners for both model problems and real applications in petroleum reservoir simulation.

© 2009 Published by Elsevier B.V.

1. Introduction

Solving large scale partial difference equation systems arising from discretization of partial differential equations (PDEs) plays an important role in many applications. We have been involved in petroleum reservoir simulation, global atmosphere prediction simulation and high energy physics molecular dynamics since the early 1990’s. The number of unknowns in real data application has been approaching 107–109.

This kind of large scale partial difference equation systems has been traditionally dealt with as a general algebraic system, either linear or nonlinear. However, we have a different approach. From our point of views, this is a special partial difference equation system; they essentially have different behavior from a general algebraic system. They are a discrete form of a PDE’s. A well-posed difference scheme should preserve some basic properties of the original PDE’s, including conservation law, inverse operator, eigen-decomposition etc. These properties are not only important for constructing the difference system itself, but also useful for designing a solver with good preconditioners.

The basic equations for three-phase black-oil reservoir simulation consist of conservation equations and momentum equations for water, oil and gas phases, denoted by subscripts

w

, o and g, respectively. A more thorough description of the model can be found in [15,16]. The mass conservation equation of each phase in porous media is given by

∇[

ρ

wUw

] +

qw

=

∂(φρ

wSw

)

t

∇[

ρ

oUo

] +

qo

=

∂(φρ

oSo

)

t

∇[

ρ

gUg

+

Rs

ρ

oUo

] +

qg

+

Rsqo

=

∂[φ(ρ

gSg

+

Rs

ρ

oSo

)]

t

,

(1)

Corresponding author. Tel.: +86 10 62661634; fax: +86 10 62661632.

E-mail addresses:[email protected](J.-C. Sun),[email protected](J.-W. Cao),[email protected](C. Yang). 0377-0427/$ – see front matter©2009 Published by Elsevier B.V.

(2)

with constraint So

+

Sw

+

Sg

=

1, where for phase l (l

=

w,

o

,

g),

ρ

lis the density,

φ

is the porosity, Slis the saturation, t is time, qlis the source term which denotes the production or injection rates at reservoir conditions, Rsis the gas solubility which is expressed as a function of oil pressure Rs

:=

Rs

(

Po

)

, and Ul is the fluid velocity. In our simulator, the density is allowed for slight compressibility, and can be given by

ρ

l

:=

AleclPl, where Alis a given constant, and clis a given physical constant-compressibility of phase-l fluid. The porosity is a function of oil pressure, i.e.

φ := φ

(0)

[

1

+

C

(

Po

Po(0)

)]

, where C is a given physical constant-compressibility of porous media, the values of both

φ

(0)and P(0)

o are known. The source term is given by

ql

:=

CW Kl

µ

l

(

Po

Pwf

)

where CWis a function of position related to wells, Pwfis the bottom hole pressure of the production/injection well. Pwfis regarded as unknowns and the values of qlare given.

Another application area we have been involved in is the numerical meteorological models for a long range climate simulation. The dynamical core, which governs the evolution of resolved fluid dynamical processes, is critical for any numerical weather prediction or climate simulation model. Essential to its performance is the form of the continuous governing equations and the related numerical discretization schemes.

The most complete equation set is the so-called deep nonhydrostatic primitive equations. To describe the atmosphere flow on the rotating earth, the fully elastic Euler equations is solved by an efficient semi-implicit semi-lagrangian marching scheme. These equations, when expressed in a conformal projection, take the following form [4,21]:

(

1

κ)

dq dt

= −

"



1

+

sin

φ

0 1

+

sin

φ



2



U

x

+

V

y



+

W

z

#

+

RHSSource term of heat

T (2)

dT dt

=

T

)

dq

dt

+

RHSSource term of heat (3)

dU dt

=

f V

U2

+

V2 2



1+sinφ0 1+sinφ



2

x

RT

q

x

+

Fx (4) dV dt

= −f U

U2

+

V2 2



1+sinφ0 1+sinφ



2

y

RT

q

y

+

Fy (5) dW dt

= −g

RT

q

z

+

Fz (6)

where U, V and W are the velocity components along the x, y and z coordinates, respectively; T means temperature; q

:=

ln p

ln p0

with p for pressure and p0a constant; Fx, Fyand Fzcorrespond to the source term of momentum equations for their respective wind components; f is the Coriolis parameter, g is the gravitational acceleration parameter,

φ

is the latitude,

φ

0is the reference latitude for conformal transformation, R is the gas constant for air, and

κ :=

CR

p with Cpthe heat capacity at

constant pressure.

In the discrete formula of(2), if we substitute the variables U(t+∆t), V(t+∆t) and W(t+∆t) with the formulae from momentum PDEs, we will get a three-dimensional Helmholtz equation for p(t+∆t). How to solve this Helmholtz equation effectively and efficiently is critical for numerical meteorological models. The choice of a good preconditioner is essential. We aim to construct a powerful preconditioner by combining several categories of preconditioning technique such as physical preconditioning, algebraic preconditioning, analysis preconditioning, geometry preconditioning, etc.

Krylov subspace methods are often used for solving large scale linear systems. A linear system Ax

=

f satisfies the condition f

Ax(m)

L

mwhereLmis a subspace of dimension m, has a projection method which generates aproximate solutions x(m)in the affine shifted Krylov subspace

x(0)

+

Km

(

A

,

r(0)

) =

x(0)

+

span

{r

(0)

,

Ar(0)

, . . . ,

Am −1

r(0)

}

of dimension m where r(0)

=

f

Ax(0)and x(0)is an initial approximation.

There are three primary choices of the subspace Lm, each of which generates a different class of Krylov subspace projection methods. First,Lm

=

Km

(

A

,

r(0)

)

which leads to many popular methods such as CG, Lanczos method and FOM, etc. Second,Lm

=

AKm

(

A

,

r(0)

)

which leads to methods like GMRES and Orthomin. Third,Lm

=

Km

(

AT

,

r(0)

)

which leads to several bi-orthogonal algorithms such as BiCG, BiCGSTAB, CGS and TFQMR, etc. [17].

The convergence rate of Krylov subspace methods depends mainly on the distribution of eigenvalues of the matrices. If these eigenvalues are clustered (e.g. around 1), the L2norm of residual vector r(m)from any of the above Krylov subspace methods may converge to zero in a fast and steady fashion. One method to produce clustered eigenvalues is to use good preconditioners.

Finding a good preconditioner to solve a given sparse linear system is often regarded as a combination of art and science. The chosen preconditioning algorithm is often required to have the merits of low computation overheads, good acceleration

(3)

effects and high parallel efficiency. For linear system discretized from a single PDE, there are a lot of effective preconditioning techniques provided by numerical software packages such as PETSc [2], Aztec [30], and Sparsekit [18] etc. For linear system discretized from a coupled PDE system, however, the above preconditioning techniques are usually not enough.

In application, some methods of constructing preconditioning for a coupled linear system have been proved to be effective. For example, when solving the coupled linear systems from petroleum reservoir simulation, the combinative preconditioning technique [3], the two-stage preconditioning technique [12] and the nested factorization preconditioning technique [1] are adopted and have proved to be effective in the related literatures. These preconditioners consist of several preconditioning components. Those components are integrated by means of a multi-step method.

We described in [23] a method to construct such a preconditioner for petroleum reservoir simulation. From physical and mathematical point of view, the PDEs with respect to pressure, are intrinsically near-elliptic; the PDE with respect to oil or water saturation term is usually near-hyperbolic; while the PDE with respect to gas saturation term typically shows nonlinear diffusion-convection behavior. The features of the numerical PDEs require well-designed preconditioned solvers so as to solve application problems efficiently and effectively. The preconditioner system includes several preconditioning components: row scaling component deals with a decoupling process and do works of row scale equilibration; additive Schwarz component handles grid partition of the solving region; Watts correction component deals with anisotropic phenomenon of the permeability; constraint residual preconditioning component adopts Schur complement to increase the effect of the pressure term (i.e. elliptic effect) within the whole coefficient matrix; the sub matrices with respect to pressure variables may adopt general-purposed preconditioning components such as ILU, AMG and DASP etc.

Based on the above preconditioning strategy and combining with our computational experiences, we propose a new preconditioning component named DASP, which will be introduced in Section2. Numerical tests on both model problems and real applications are presented in Section3.

2. DASP (Discrete Approximate Spectral Preconditioner)

2.1. Continuous and discrete spectral decompositions

To begin, let us consider a model eigen-problem in one dimension.

2u

x2

=

λ

u

,

x

(

0

,

1

),

(7)

subject to typical boundary conditions, such as, e.g., u

(

0

) =

ux

(

1

) =

0. It is well-known that the solution of Eq.(7)is uj

(

x

) =

sin

(

j

1

/

2

x

,

λ

j

=

(

j

1

/

2

)

2

π

2

,

j

=

1

,

2

, . . . .

The discrete spectral decomposition of the linear system resulted from(7)with a centered difference discretization on the uniform grid is closely connected with the discrete Sine or Cosine transforms (of type-1 till type, see, e.g., [22]). This result can be easily extended to the ‘‘box’’ domain in higher dimensions via matrix tensor-product due to variable separation.

For example, study the following eigen-problem in two dimensions



2u

x2

+

2u

y2



=

λ

u

, (

x

,

y

) ∈ (

0

,

1

),

u

(

0

,

y

) =

u

(

1

,

y

) =

0

,

u

y

(

x

,

0

) =

u

y

(

x

,

1

) =

0

.

(8)

Through variable separation, one can easily obtain the eigen-functions uj1,j2

(

x

,

y

) =

sin

(

j1

π

x

)

cos

(

j2

π

y

),

which is the multiplication of the two eigen-function systems of the corresponding one-dimensional sub-problems. And the eigen-values

λ

j1,j2

=

(

j 2 1

+

j 2 2

2

are exactly the summation of that of the two sub-problems. A five-point centered finite difference of Eq.(8)on a uniform grid, such as, e.g.,

{

(

xk

,

yj

) |

xk

=

k

/

m

,

yj

=

j

/

n}m

−1,n

k=1,j=0results in a difference matrix in the form of

A

=

A1

In+1

+

Im−1

A2

,

where

A1

=

W1Λ1W1>

,

D2A2D−21

=

W2Λ2W

>

(4)

with W1

=

SmI−1

:=

r

2 msin kj

π

m

!

m−1 k,j=1

,

Λ1

=

diag



2

2 cosj

π

m



m−1 j=1

,

W2

=

CnI+1

:=

r

2 n

α

k

α

jcos kj

π

n

!

n k,j=0

,

Λ2

=

diag



2

2 cosj

π

n



n j=0

,

D2

=

diag

{

α

0

, α

1

, . . . , α

n

} :=

diag



1

2

,

1

, . . . ,

1

,

1

2



n+1

.

The spectral decomposition of A can be obtained via matrix tensor-product.

A

=

(

W1Λ1W1>

) ⊗

In+1

+

Im−1

(

D−21W2Λ2W > 2 D2

)

=

(

W1Λ1W1>

) ⊗ (

D21W2In+1W2>D2

) + (

W1Im−1W1>

) ⊗ (

D −1 2 W2Λ2W > 2 D2

)

=



W1

(

D −1 2 W2

) (

Λ1

In+1

) 

W1>

(

W > 2D2

) + 

W1

(

D −1 2 W2

) (

Im−1

Λ2

) 

W1>

(

W > 2 D2

)

=



W1

(

D −1 2 W2

) (

Λ1

In+1

+

Im−1

Λ2

) 

W > 1

(

W > 2D2

) .

For non-‘‘box’’ domains, such as the triangles or the hexagons, spectral-decomposition [24] as well as the corresponding fast transforms [29,31] can also established, where the homogenous coordinates-system [24] are utilized. For any point P in the plane, its homogenous coordinates are defined as

(

t1

,

t2

,

t3

)

where tj

=

ej

(

j

=

1

,

2

,

3

)

and e1

=

(

1

,

0

)

, e2

=

(−

1

2

,

√ 3 2

)

, e1

=

(−

12

, −

√ 3

2

)

. Sine e1

+

e2

+

e3

=

0, we have t1

+

t2

+

t3

=

0 for any point in the plane. In terms of the homogenous coordinates, the Laplacian operator can be written as

L

:= −

(



t1

t2



2

+



t2

t3



2

+



t3

t1



2

)

= −

3 8∆

.

(9)

And a regular hexagon can be defined as

H

= {

(

t1

,

t2

,

t3

) |

t1

+

t2

+

t3

=

0

, −

1

t1

,

t2

,

t3

1

}

.

Analogously, an equilateral triangle can be defined as

T

= {

(

t1

,

t2

,

t3

) |

t1

+

t2

+

t3

=

0

,

0

≤ −t

1

,

t2

,

t3

1

}

.

We have the following spectral decomposition result for H and T respectively. Theorem 2.1 ([24]). For all integer triple j

=

(

j1

,

j2

,

j3

)

, with j1

+

j2

+

j3

=

0,

gj

(

t1

,

t2

,

t3

) :=

ei 2π

3(j1t1+j2t2+j3t3)

forms an eigen-function system of Lon the regular hexagon H with periodic boundary conditions, where t1

+

t2

+

t3

=

0. The

corresponding eigenvalues equal to

λ

j

=



2

π

3



2

{

(

j1

j2

)

2

+

(

j2

j3

)

2

+

(

j3

j1

)

2

}

.

Theorem 2.2 ([24]). Denote gj+

:=

1 3

{g

j1,j2,j3

+

gj2,j3,j1

+

gj3,j1,j2

}

,

gj

:=

1 3

{g

j1,−j3,−j2

+

gj2,−j1,−j3

+

gj3,−j2,−j1

}

.

The generalized sine functions TSinj

:=

2i1

{g

j+

g

j

}

or the generalized cosine functions TCosj

:=

12

{g

j+

+

g

j

}, form an

eigen-function system of Lon the equilateral triangle domain T with homogeneous Dirichlet or Neumann boundary conditions, respectively. The corresponding eigenvalues equal to

λ

j

=



2

π

3



2

{

(

j1

j2

)

2

+

(

j2

j3

)

2

+

(

j3

j1

)

2

}

,

for j1

>

0

,

j2

,

j3

<

0 or j1

0

,

j2

,

j3

0, respectively.

The results inTheorems 2.1and2.2can be generalized to higher dimensions. A natural generalization of the regular hexagon is the rhombic-dodecahedron in 3-D (seeFig. 1) and the so-called super-simplex domains in higher dimensions, see [27].Fig. 2represents the nonzero structure of the discrete Helmholtz system over the rhombic-dodecahedron domain with periodic conditions and the reordered matrix towards the original.

(5)

Fig. 1. Rhombic-dodecahedron.

Fig. 2. Non-zero structure of the difference matrix on the rhombic-dodecahedron domain with periodic conditions (left) and the reordered matrix towards

the original (right), where ‘‘nz’’ means the number of non-zero entries.

2.2. Concepts of DASP

For a model problem listed in Section2.1, the continuous as well as the discrete spectral decompositions are known exactly. In real applications, however, exact spectral decompositions are difficult to find. Spectral decompositions of some model problems can be utilized as preconditioners in many situations. It is remarkable that direct usage of the discrete spectral decompositions (DSP) of model problems will not lead to good results in general, for model problems are far more different from the real ones in most cases. Based on DSP, our DASP (discrete approximate spectral preconditioner) includes extra approximating and preprocessing.

For many real application problems, the corresponding PDE system is mixed-type from the mathematical point of view, and contains different physical components. For example, as mentioned in Section1, each component in the three-phase black-oil reservoir equations(1)should be treated separately. The main goal of our preprocessing before using DASP is to further enhance the elliptic feature of the discretized equations. The preprocessing may include decoupling, Schur complement, diagonal scaling and rank-correction, among others. Some of the preprocessings have already been described in Section1.

The main purpose of diagonal scaling is to stretch the difference systems, named A, in real application ‘‘nearer’’ to that of the model problem, namedA. For example, scaling A to D

˜

−1/2AD−1/2, where diagonal matrix D can be diag

(

A

)

. However, in many application cases, the diagonal entries of D are more complicated (dependent with problems), or D could even be a non-diagonal matrix. Another preprocessing is rank-correction, which is based on the fact that the inverse of any (invertible) low rank modification of a matrix whose inverse is already known can be explicit computed (cf. Sherman–Morrison-Woodbury formula and its generalizations, see, e.g., [9,11,7]).

Implementations of DASP efficiently and effectively on parallel platforms are important. We employ well-developed libraries such as PETSc [2] and FFTW [8] to achieve high efficiency. For DASP, FFT of same size is performed at least twice per

(6)

Fig. 3. Transformed grid in Test-1 (ε =0.14).

iteration. In many situations the iteration counts are large and initialization of FFT outside of the iteration loop will reduce the extra working load greatly. Since a preconditioner is just an approximation, one can use single-precision FFTs instead of double-precision to speed up the calculation, and typically about 20% (for 3-D) to 40% (for 2-D) reduction in calculation time can be made.

The original ideas of DASP can be found in our early papers such as [24–28]. In this paper we develop the basic idea and name the method as DASP. In comparison with some other well-known preconditioners such as SPAI (sparse approximate inverse, see, e.g., [13]), there are still a lot of work to be done on DASP both in theory and in practice.

3. Numerical results

Some numerical tests are performed for model problems and real applications. The computational platform for model problem tests is equipped with PIII-1 GHz CPU, 2048M local SDRAM and PETSc 2.1.3 package with relative tolerance of CG as 1

×

10−6.

Real data numerical tests are performed on a Beowulf cluster LSSC-II installed at the State Key Laboratory of Scientific and Engineering Computing. Each computational node is equipped with two Intel 2 GHz Xeon CPUs, 1 GB physical memory, and connected by a Myrinet 2000 network with 4Gflops peak performance. Intel Fortran 6.0 and MPICH-GM 1.2.5.10 are used as the compilers and the parallel communication library [32], respectively.

3.1. Model problem tests Test-1



−∇ ·

(

p∇u

) =

f

,

inΩ

= [

0

,

1

]

2

u

=

0

,

on

.

Assume the exact solution is u

=

x

(

1

x

)

sin

(

sin

(

2

π

y

))

. Let

{

i

, η

j

)}

n

i,j=1be the uniform grid with grid size 1

/

n, then the calculation grid is given by1



xj

=

ξ

j

+

ε

sin 2

πξ

jsin 2

πη

j

,

yj

=

η

j

+

ε

sin 2

πξ

jsin 2

πη

j

,

j

=

1

, . . . ,

n

,

(10)

where

ε ∈ [

0

,

0

.

14

]

is the grid transform factor. Here we restrict

ε ∈ [

0

,

0

.

14

]

or grid intersection will occur when

ε >

0

.

14. InFig. 3, we give an illustration of the transformed grid with

ε =

0

.

14. If

ε >

0, traditional five-point difference scheme does not work well and the nine-point support operator scheme (cf. [19]) is utilized. The following four different variable coefficients p is considered.

p

=

p0

:=

1

,

p

=

p1

:=

(

x

+

2

)(

y

+

2

),

p

=

p2

:=

(

1

x2

)(

1

y2

),

p

=

p3

:=

x

(

1

x

)

y

(

1

y

).

Table 1lists the iteration counts for

ε =

0

,

0

.

10

,

0

.

14 by using CG with DASP, which indicates that DASP is nearly optimal. And inTable 2, we give the test results of iteration counts and solution time (in brackets, units: seconds) among different

(7)

Table 1

Iteration counts for Test-1 with CG+DASP

n ε =0 ε =0.10 ε =0.14 p=p0 p=p1 p=p2 p=p3 p=p0 p=p1 p=p2 p=p3 p=p0 p=p1 p=p2 p=p3 32 1 2 6 8 8 8 9 11 17 17 18 19 64 1 2 7 9 8 9 10 13 16 16 17 21 128 1 2 8 9 9 9 11 13 16 16 17 20 256 1 2 8 10 9 9 11 15 16 16 17 21 512 1 2 8 11 9 9 12 16 16 16 17 21 1024 1 2 9 12 9 9 13 17 17 17 17 22 Table 2

Iteration counts and solution time (in brackets, units: seconds) for Test-1,ε =0.14 and p=p2

1/h 32 64 128 256 512 1024 None 378(0.05) 859(1.95) 1826(19.7) 3933(194) >8000 N/A DSP 119(0.05) 188(0.67) 262(4.5) 344(28.0) >500 N/A Scaling 93(0.01) 177(1.40) 363(3.9) 744(36.7) >1000 N/A DASP 18(0.01) 17(0.06) 17(0.30) 17(1.43) 17(6.10) 17(24.2) ILU 20(0.01) 19(0.15) 17(1.01) 28(6.60) 46(44.6) 86(316.7) -Level 0 2 7 8 10 11 Table 3

Iteration counts and solution time (in brackets, units: seconds) for Test-2

nx×ny×nz 4×32×128 8×64×256 16×128×512 None 1008(2.4) 2824(95.0) N/A DSP 154(1.4) 346(36.4) N/A Scaling 282(0.7) 558(19.1) N/A DASP 7(0.1) 7(1.2) 8(12.2) ILU 30(0.1) 59(3.7) 119(68.0) -Level 0 0 0 Table 4

Iteration counts for Test-3 by CG+DASP

1/h 16 32 64 128

ρ =0.1 6 7 7 7

ρ =0.2 8 9 10 11

ρ =0.3 11 12 13 14

preconditioners with case p

=

p2and

ε =

0

.

14. Here DSP means directly using spectral decomposition as preconditioner without pre-processing and Scaling means diagonal scaling preconditioners. And for ILU, we give the best testable results in solution time with different fill-in levels. We can see that for this case, when 1

/

h

=

1024 DASP is about 90% faster than the ILU provided in PETSc.

Test-2

We solve the 3-D Poisson equation

−∇ ·

(

p∇u

) =

f in a cubic domain

[

0

,

1

]

3with homogeneous Dirichlet boundary conditions. Assume the exact solution is u

=

x

(

1

−x

)

y

(

1

−y

)

z

(

1

−z

)

and the variable coefficient is p

=

(

1

−x

2

)(

1

−y

2

)(

1

−z

2

)

.

Table 3gives the results for the ‘‘long and narrow’’ grid.

Test-3

We solve the 2-D Poisson equation

u

=

f in the regular hexagon domain with periodic boundary conditions. Assume the exact solution is u

=

sin 2

π

t1

+

sin 2

π

t2

+

sin 2

π

t3where t1

,

t2

,

t3are the homogenous coordinates [24]. The computation grid is random disturbed from the uniform triangular with factor

ρ ∈ (

0

,

1

)

, seeFig. 4(N

=

8

, ρ =

0

.

3), where we also give the Voronoi grid by which a control volume finite difference scheme can be constructed.Table 4lists the iteration counts by using DASP, all of the results are averaged over five tests.

3.2. Results in real applications

The industrial application is a three-dimensional and three-phase oil-water-gas black oil problem from DaQing Oilfield in China, with a 199

×

87

×

67 grid system (i.e. 1.16M grid cells), 6 rock types and 291 wells. And the simulation time is 31.5 years.

(8)

Fig. 4. A random disturbed grid (left) for Test-3 with N=8, ρ =0.3 and the corresponding Voronoi grid (right).

Fig. 5. The spectral distributions of all the nine sub-matrices of the original matrix A in(11).

The partial difference equation system derived from the three phase black oil model can be presented as the following linear system in the 3

×

3 block form [14]

A11 A12 A13 A21 A22 A23 A31 A32 A33

!

·

x1 x2 x3

!

=

f1 f2 f3

!

(11) where xi

:=

(

xi,1

,

xi,2

, . . . ,

xi,N

)

>(i

=

1

,

2

,

3) and x1, x2and x3are oil phase pressure, oil phase saturation, and gas phase saturation, respectively; A

:=

(

Aij

)

3×3is the coefficient matrix, each Aijis a hepta diagonal matrix; f

:=

(

fi

)

3×1is the vector representing the right-hand side. This coupled linear system is significantly non-symmetric and highly indefinite; it can be traced back to the distinguished PDE behaviors of three types of physical variables. A11shows its elliptic feature in some

(9)

Fig. 6. The spectral distributions of all the nine sub-matrices of the preconditioned matrixA of A in¯ Fig. 5.

degree which is derived from the pressure equation, A22shows its first-order nonlinear hyperbolic feature, and A33shows its diffusion-convection feature according to the effects of capillary pressures and fluid velocities.

A total simulation of 31.5 years for this case takes 126 time steps. Each time step consists of 3.58 inexact Newton steps on average for solving nonlinear system of equations; each Newton step consists of 5.92 FGMRES(12) iterations on average; the preconditioning process in each FGMRES iteration needs 7.77 ILU-GMRES(12) iterations on average to solve the small system

(

RTAR

)

z

=

r; each ILU-GMRES iteration step needs 11.44 iterations on average.

Now we consider the effects of our preconditioing system.Figs. 5and6demonstrates the spectral distributions of all the nine sub-matrices of the original matrix A in(11)and the preconditioned matrixA respectively. From the two figures,

¯

we observe that, before preconditioning process, all the nine sub-matrices have obvious effects to the whole system for their spectral distribution shows that their effect can not be neglected. However, after preconditioning process, the effects of some off-diagonal sub-matrices such as A12, A13and A23are so small that they can even be considered as zero matrices without too much loss of accuracy.

Fig. 7illustrates the spectral distribution of the whole original matrix A and the preconditioned matrixA. The figure

¯

shows the significant effect of the preconditioning, it clusters the complex eigenvalue distribution from

(−

36 000

,

28 000

(−

32 000

,

32 000

)

to

(

0

,

2

) × (−

0

.

02

,

0

.

02

)

.

Fig. 8gives the elapsed wall-clock times with CPU numbers ranging from 4 to 128. The relative parallel efficiencies on 16, 32, 64, and 128 processors with respect to 8 processors are 78%, 73%, 75%, and 63%, respectively. The communication costs are 0.24 (8CPU), 0.71 (16CPU), 0.45 (32CPU), 0.41 (64CPU), and 0.45 (128CPU) hour, respectively.

The communication time is relatively small compared to the computation time. The parallel efficiencies are quite satisfactory considering the communication complexity of the parallel nonlinear solver. The communication-to-computation ratio is almost 1:1 in the case of 128 processors, indicating that 8 to 128 processors are suitable for one million-grid cell problems of black oil model on this kind of machines.

4. Conclusion

There are many general-purpose preconditioning algorithms used to precondition an algebraic sparse linear system, such as incomplete factorization [5,6], algebraic multi-level method [20] and matrix row scaling [10] etc. These algorithms can

(10)

Fig. 7. The spectral distribution of the original matrix A in(11)and the preconditioned matrixA.¯

Fig. 8. Elapsed times with variable CPUs ranging from 4 to 128.

be used for the coupled PDE problems and can have distinct improvements in linear iterations. From the knowledge of the original physical problems, one can also construct very effective preconditioners which are closely related to the original PDEs. This kind of preconditioning methods is usually called physics-based or PDE-based preconditioners, see, e.g., [23]. This type of preconditioners is getting more attractive as the computational needs increase rapidly. From this point of view, a new preconditioning method, DASP, is introduced in this paper. The efficiency and effectiveness of DASP are shown by numerical tests for both model problems and real applications. A further thorough analysis of DASP will be given in our future papers.

Acknowledgments

This research was supported by the National Natural Science Foundation of China (NSF No. 10431050 and 60573023, NSAF No. 10776035), the National Basic Research Program of China (No. 2005CB321702) and the National High Technology Research and Development Program (863 Program) of China (No. 2006AA01A125).

References

[1] J.R. Appleyard, et al., Special techniques for fully implicit simulators, in: Proceedings of the European Symposium on Enhanced Oil Recovery, Bournemouth, England, 1981, pp. 395–408.

[2] B.F. Smith, et al., PETSc Web page.http://www.mcs.anl.gov/petsc.

[3] G. Behie, P. Vinsome, Block iterative methods for fully implicit reservoir simulation, in: SPE 9303, Society of Petroleum Engineers J. (1982) 658C668. [4] D. Caya, R. Laprise, A semi-implicit semi-Lagrangian regional climate model: The Canadian RCM, Mon. Weather Rev. 127 (3) (1999) 341–362. [5] T.F. Chan, H.A. Van der Vorst, Approximate and incomplete factorizations, in: Parallel Numerical Algorithms, 4, ICASE, LaRc, Kluwer Academic, 1997,

pp. 167–202.

[6] I.S. Duff, H.A. Van der Vorst, Preconditioning and parallel preconditioning, Technical Report TR/PA/98/23, 1998.

[7] N. Egidi, P. Maponi, A Sherman–Morrison approach to the solution of linear systems, J. Comput. Appl. Math. 189 (1) (2006) 703–718. [8] M. Frigo, S.G. Johnson, FFTW Web page.http://www.fftw.org.

[9] D. Fischer, G. Golub, O. Hald, C. Leiva, O. Widlund, On Fourier–Toeplitz methods for separable elliptic problems, Math. Comput. 28 (126) (1974) 349–368.

[10] G.H. Golub, C.F. Van Loan, Matrix Computations, third ed., John Hopkins University Press, 1996. [11] H.V. Henderson, S.R. Searle, On deriving the inverse of a sum of matrices, SIAM Rev. 23 (1) (1981) 53–60. [12] H. Klie, M.F. Wheeler, Advanced Solver Methods for Subsurface Environmental Problems, ICES Report 05-36, 2005.

(11)

[13] L. Kolotilina, A. Yeremin, Factorized sparse approximate inverse preconditionings I: Theory, SIAM J. Matrix Anal. Appl. 14 (:1) (1993) 45–58. [14] W. Liu, et al., Parallel Reservoir Simulation on Shared and Distributed Memory System, 2000, SPE 64797.

[15] C.C. Mattax, R.L. Dalton, Reservoir Simulation, Doherty Memorial Fund of AIME, 1990, TX: SPE.

[16] D.W. Peaceman, Fundamentals of Numerical Reservoir Simulation, Elsevier Scientific Publishing Company, 1977. [17] Y. Saad, Iterative Methods for Sparse Linear Systems, PWS Publishing Company, 1996.

[18] Y. Saad, A basic tool-kit for sparse matrix computations (V.2).http://www-users.cs.umn.edu/~saad/software/SPARSKIT/sparskit.html, 2005. [19] Mikhail Shashkov, Conservative Finite-Difference Methods on General Grids, CRC Press, 1996.

[20] B.F. Smith, et al., Domain Decomposition: Parallel Multilevel Methods for Elliptic Partial Differential Equations, Cambridge University Press, 1996. [21] A. Staniforth, N. Wood, Aspects of the dynamical core of a nonhydrostatic, deep-atmosphere, unified weather and climate-prediction model, J. Comp.

Phys. (2006).

[22] G. Strang, The discrete cosine transform, SIAM Rev. 41 (1) (1999) 135–147.

[23] J.C. Sun, J.W. Cao, Large scale petroleum reservoir simulation and parallel preconditioning algorithms research, Sci. China Ser. A 47 (2004) 32–40. [24] J.C. Sun, Multivariate Fourier series over a class of non tensor-product partition domains, J. Comput. Math. 12 (1) (2003) 53–62.

[25] J.C. Sun, On approximation of Laplacian eigenproblem over a regular hexagon with zero boundary conditions, J. Comput. Math. 22 (2) (2004) 275–286. [26] J.C. Sun, Approximate eigen-decomposition preconditioners for solving numerical PDE problems, Appl. Math. Comp. 172 (2006) 772–787. [27] J.C. Sun, Multivariate fourier transform methods over simplex and super-simplex domains, J. Comput. Math. 24 (3) (2006) 305C322. [28] J.C. Sun, H.Y. Li, Generalized Fourier transform on an arbitrary triangular domain, Adv. Comput. Math. 22 (2005) 223–248.

[29] J.C. Sun, J.F. Yao, A fast algorithm of discrete generalized Fourier transforms on hexagon domains, Math. Numer. Sin. 26 (3) (2004) 351–366 (in Chinese). [30] R.S. Tuminaro, et al. Inside Aztec.http://www.cs.sandia.gov/CRF/aztec1.html, 1998.

[31] J.F. Yao, J.C. Sun, HFFT on parallel dodecahedron domains and its parallel implementation, J. Numer. Methods Comput. Appl. 25 (4) (2004) 303–314 (in Chinese).

[32] L.B. Zhang, et al., Teracluster LSSC-II: It’s designing principles and applications in large scale numerical simulations, Sci. China Ser. A 47 (2004) 53–68.

Further reading

[1] P. Amestoy, et al., MUMPS: A multifrontal massively parallel sparse direct solver.http://graal.ens-lyon.fr/MUMPS/index.html, 2005.

[2] O. Axelsson, I. Kaporin, Optimizing two-level preconditionings for the conjugate gradient method, Report No. 0116, Department of Mathematics, University of Nijmegen, 2001.

[3] J.W. Cao, C.H. Lai, Numerical experiments of some Krylov subspace methods for black oil model, Comp. Math. Appl. 44 (2002) 125–141.

[4] R. Freund, M. Malhotra, A block-QMR algorithm for non-Hermitian linear systems with multiple right-hand sides, Numerical Analysis Manuscript No. 95-09, AT&T Bell Laboratories, Murray Hill, NJ, 1995.

[5] S. Lacroix, Y.V. Vassilevski, M.F. Wheeler, Decoupling preconditioners in the implicit parallel accurate reservoir simulator (IPARS), Numer. Linear Algebra Appl. 8 (2001) 537–549.

[6] M. Sala, Schur complement based preconditioners for compressible flow computations, in: N. Debit, et al. (Eds.), Thirteenth International Conference on Domain Decomposition Methods, 2001, pp. 501–509.

[7] H.A. Van der Vorst, Bi-CGSTAB: A fast and smoothly converging variant of Bi-CG for the solution of nonsymmetric linear systems, SIAM J. Sci. Stat. Comput. 12 (1992) 631–644.

References

Related documents

Biljeţene su sljedeće varijable: dob, spol, pripadnost ispitanika odreĎenoj podskupini (elektivni i hitni kirurški, nekirurški), dijagnoza osnovne bolesti, mjesto

The standard propositional account of necessary and sufficient conditions in many in- troductory logic textbooks is based on the material conditional.. In the appendix,

The Science of Global Atmospheric Change’s integrated components help students understand important science, health and environmental concepts related to changes in

Figure 2 shows the process of which our improved TF model works by recalling a trading strategy that used to perform well in the past by matching the current shape of

Eclipx’s most established business, operating under the name “FleetPartners”, was founded in 1987 as the vehicle fleet leasing and management business of Esanda Finance

We have investigated the hyperon-nucleon two-body interaction in the framework of the bound state approach to the SU(3) Skyrme model. We would like to stress the fact that the

To the original owner, our Infinity® System gas furnaces are covered by a 10-year parts and lifetime heat exchanger limited warranty upon timely registration.. The parts