• Aucun résultat trouvé

Finite elements and absorbing boundary conditions for scattering problems on a parallel distributed memory computer

N/A
N/A
Protected

Academic year: 2022

Partager "Finite elements and absorbing boundary conditions for scattering problems on a parallel distributed memory computer"

Copied!
5
0
0

Texte intégral

(1)

HAL Id: hal-00141613

https://hal.archives-ouvertes.fr/hal-00141613

Submitted on 23 Apr 2007

HAL

is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire

HAL, est

destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

Finite elements and absorbing boundary conditions for scattering problems on a parallel distributed memory

computer

Christian Vollaire, Laurent Nicolas, Alain Nicolas

To cite this version:

Christian Vollaire, Laurent Nicolas, Alain Nicolas. Finite elements and absorbing boundary conditions

for scattering problems on a parallel distributed memory computer. IEEE Transactions on Magnetics,

Institute of Electrical and Electronics Engineers, 1997, 33 (2 Part 2), pp.1448-1451. �hal-00141613�

(2)

inite Elements and Absorbing Boundary Conditions

Problems on a Parallel Distributed Memory Computer

C. Vollaire, L. Nicolas, A. Nicolas

Ecole Centrale de Lyon - CECELY - U.P.R.E.S.A C.N.R.S. 5005, B.P. I63 - 691 3 I Ecully cedex - France

Abstruct-An efficient finite element method is presented to compute time harmonic microwave field in three dimensional configurations. Nodal-based finite elements have been coupled with an absorbing boundary condition to solve open boundary problems. Modeling real devices is made possible using parallel computation. This paper describes first the time harmonic formulation with the absorbing boundary condition and the sequential code. A new algorithm is then proposed to implement this formulation on a cluster of workstations (10 DEC ALPHA 300x1. Analysis of efficiency is performed using simple problems. The electromagnetic scattering of a plane wave by a perfect electric conductor cylinder is finally given as example.

I. INTRODUCTION

Nodal-based Finite Element (FE) method has been previously used to inodelize microwave problems [ I ] . Absorbing Boundary Conditions (ABC) have been introduced to simulate open boundary domains. The time harmonic formulation is written in terms of vector fields.

Because nodal-based finite elements are used. a penalty term is added to the formulation i n order to avoid spurious reflex i ons ,

This code operaies on scalar workstation: only simple problems can be modelized. For instance, a 3 wavelengths side cubic geometry, meshed with 10 nodes by wavelength, leads to 8 1000 complex unknows. Actually, only parallel computation enables 10 model real devices because it reduces the computation time and inainly ai-ranges enough memory.

For test considerations, we use a cluster of ten DEC ALPHA workstations (80 Mflops liiipack, 64 Mo of RAM, I Go of swap per processor) linked by a FDDI ring. This distributed memory computer is a Multi Instruction - Multi Data streams (MIMD) type. Parallel Virtual Machine (PVM) software is used to pass messages between workstations.

The ob.jective of this paper is to describe how the existing code has been modified in order to implement i t on such a computer. Algol-ithms designed to operate on scalar calculators d o not fit to parallel distributed memory computers because data al-e intel-dependanL, It is no1 suff-icient to add directives of' iiie ing i n a program to allow good performances and algoi-ithms have to be deeply modified. To implement this formulation on such a computer, we use an algorithm which distributes data over the different workstations. The developed code is a Single Program Multi Data type (SPMDj. This allows to minimize messages passing which slep is CPU consuming. Performances are tlien analyzed foi- siinple problciiis. Speed-up, Amdahl's law and

data volume switched are presented Poi the different steps of the program The answer of a 6 h -length cylindei, inodeli~ecl as a perfect electric conducting (p.e c.), enlighted with an electromagnetic plane wave, IS finally piesented.

I1 FE FORMULATION CouPLEri WITH ABC

We are dealing with frequency doinain open bound'ii y electromagnetic field problems. According to M'txwell equations, the magnetic field H and the electric field E jatisfy the vectoi wave equations Following developement\

are made only for the H tield formujatioii All the steps cdn be applied to the E field formulation '1s well

Galerkin formulation of the vector wave equat given by

A penalty term is added to the fo~inulation to 'i~oid spuiious reflexions [ I ] It make\ the field diveigence tree ABC ale used to truncate the 3D finite clement legion The open boundaiy is modeled using <I second oidei 3D vectoi Enqulst-Majda ABC

[Z].

Outer. wrface 'ire [hen I ectmgle<

which is le\\ me\h-consuming for I laige number ol gcometries

Finally, the formulation for scattering pi-oblems in terin of total field is given by (3). Two types of surface are considered: external surface ( S e x t ) and pec surface ( S p e c ).

r 7

1

( V W x - v x H ) + W k ; p , 1 H d v

li

€ 1

- j [ ( V W ) ( V H)]clv+ j W n V H A (3)

I k \ l + Y / X (

- j W g A B c ( H ) d 5 = J W [ g A B c ( N , ) - n x V x H , I d a

Where H is the total field and H , the incident iield

SP\f Se\,

0018-9464/97$10.00 0 1997 IEEE

(3)

1449

111 SEQUENTIAL C O D E C. BC on syiinzetri~ plunos and conductors

Main steps ol'the existing code are:

1 j Crrutp thr .str~uctriro of the gkobd niutrix: symbolic asseni bl i n g .

2) A.s.sc,urhlc tlic g l o h o l iuatrix: each elementary matrix (related to a volume finite element) is computed and results are then put in the global matrix.

3) Introduce ARC o ~ i the externul baundu-ies und B O L U ~ ~ C W J Conditions (HC) on conductors: only surface elements are seekcd.

4 ) Inrrotlrlcr BC 0 1 1 rhr .syl~ll7lrrl~y pk1ne.s.

5 ) S~nunc~trization of' the murrix: the ABC step (#3) results in an non-symmetric global matrix. The FE matrix is symmetrized hy adding it to its transposed matrix. This approximative method has been shown to give good results

6 ) Solvc~ tlzc .systeiii of' e y ~ ~ u t i o n s : because the matrix system is sparse. itcrativc solvers have been implemented.

1V. PARALLEL FE ALGORITHM A . Distrihrrting the dcrtci

We have chosen to duplicate the entire data file on each processor. Indeed, the program is a SPMD type performing a parallel reading. An other strategy would consist in storing no more than what is required for one processor at a time and i n reading and updating data files during the processing. But this method would result in unacceptable 110 overhead. A compromise is available i n the case of distributed memory arch i Lectures 1 3 1-1 S

1.

Messages passing are necessary to introduce the BC on conductors (E field solving only) and on the symmetry planes because a global modification of the matrix system is required (due to the method used to introduce BC) (Fig. I ) . On a symmetry plane the H field vel-ifies (6a) or (6h):

On a symmetry plane: n.H=O On an antisymmetry plane: n x H=O

The speedup related to this step is very bad due t o the

large amout of message passing (Fig. 4). However. i t s effect on the global performances of the code is negligible: the length of this step is less than one percent (H field solving) 01' the total computation duration (Fig. 2).

Fig. I , Message passing for the symmetry planes (left) and for syininctrizntion (right) - Exainple with 2 ~ ~ r i x e s s o r s

D. Svnini e tri7 iri g tlw g lobu 1 n u t rid\

The introduction of ABC and penalty function results in a non-symmetric systlein matrix. This one is approximatly symmetrized by adding it to its transposed matrix. This operation needs a large amout of messages passing (Fig. 1 ).

The speedup related to this operation is also poor (Fig. 4).

But, once more, the time needed t o perform this step is small compared to the total computation time (Fig. 2).

The assembling step of the global matrix is perfortned by degree o l lrecdom (61. instead of by element as in the sequential code. It allows to assemble at once the three lines (three coordinates) corrcsponding to a node. Each element including the consideratcd node are seeked and contributions with the related nodcs are computed. These three lines are then compressed by storing only non-zero values. Space is

left i n the compressed storage if the volume element includes E. Solving in pmmllel a surface elcmcnt. Same mcthod is used to introduce ABC

and BC on conductors but only surface elements are seeked.

This method does not require the creation of the structure of the matrix. To solve a problem meshed with N nodes, if W workstations of the cluster are available, cach workstation assembles a part o f the system including N/W nodes. The load balancing is nearly perfect because of the constant bandwidth of the global matrix. The program is a SPMD type: no message passing is required. Hence,the speedup of the assembling stage is optimal (Fig. 4)

Quasi Minimum Rcsidu (QMR) and Conjuguate Gradient (CG) with diagonal or incomplete Choleski preconditioner have been implemented 171. [8]. Because these methods are iterative, small-scale parallelism is used. Parallel matrix multiplication allows t o compute the residual vector of each iteration: each processor computes a partial residual vector and k r 0 ~ t l C ~ ~ t S it to all the others (only non-zero values are sent). Then, each processor adds these partial residual vectors to obtain the final residu (SPMD). An other way to calculate the residual vector is to send each partial residual vector to one processor. This one computes the final residu and

(4)

broadcasts it. This Master / Slave (M/S) method minimizes the number of coinmLinications.

The cost of communications in this step is penalizing, because small-scale parallelisin is not adapted to distributed memory computer. Some others methods can be found in [9]

but they are more memory space consuming.

v

PAR ALLEIL PEIIFOIIM ANCES

PARAGRAPH is used t o analyse the performances of the code. For such a p ~ ~ r p o s e , 2 sinall problems (scattering by a pec cylinder) have been modelized: the first one is meshed with 4000 nodes, leading to I2000 degrees of freedom, and the sccond one is meshed with I0000 nodes, leading to 30000 degrees of lreedom.

A. CPU tiriic distribiutioii

CPU times to solve both of these problems on 8 processors were, respectively. 236 s and 688 s. Fig. 2 shows the CPU time distribution for the main steps of the code (8 CPU's). The solving step is the most CPU consuming because its speedup is very pooi- (Fig. 4).

Note that in a sequenlial computing, the assembling step wo~ild spend 6 0 % of the CPU time and the solver only 35%.

TABLE I

DATA SW1TCHF.S (4000 N0DI;S)

processoi- nuinber of M b received Mb sent

i i ii i n ber messnges

M/S SPMD M/S SPMD M/S SPMI)

I 3171 3171 9 9 2 9 9 2 641 X I

2 471 1171 9 1 2 9 5 7 I6 I06

3 471 1171 91 1 9 6 2 1 5 8 107

4 471 1171 9 1 2 8 9 5 8 I63 105

5 471 1171 9 1 1 1 97 I 1 5 8 96

6 471 1171 932 9 7 1 1 4 7 9 4 6

7 471 1171 9 1 2 4 97 15 9 5

8 471 1171 9 3 4 6 9 7 7 1 1 7 9 4 7

m 6

:-. ^ ^

" 1 2 3 4 5 6 7 8

Pro cess0 r Numb e r

Fig. 3. Processors states Ioi- a 4000 nodes problem.

U

C

Siwxliip VC'~SIL.\ numho- of procc. ~ \ \ O / . \

.

2

80'

14000 Nodes For a given pioblem, the scquential rcitio ot thc ode remains constant but the cost of coinmunic,itions inci crisc\

with the number of processois. Paiallel i a t i o given by the Amdahl's law inLicLises slightly wifh the numbei 01 6 1 0 0 0 0 Nodes

ci e 60)

2 40

3 L

*

Assembly B C Synimeiization Solver processors (Table I1 and Fig. 4).

Fig. 2. CPU l i m e distribution (8 CPU's)

For the problem meshed with 4000 nodes, Fig. 3 shows the state of the eight processors (busy, overhead or idle) and Table I shows the data cluaiility switches. This analysis has been done'for both of the programming types of the solver.

The M/S method is perf-'orined with the pi-ocessor # 1 as Master. The idle lime corresponds t o synchronisation phases.

The overhead time is introduced by the messages passing.

FI-oin Fig. 3. the SPMD type appears more efficient.

However. for large pi.obiems, it can imply a saturation of the coiniiiLiiiicatioii network ('rable I). In fact. SPMD type seems t o be more adaptcd to a 'crossbar' network. The data quantity switches remain approximatively the same for both types of programming, but the number of messages decreases for the MIS type. The load balancing is good for both programming types.

- -._- ~- - - - ~

*

Assembly A- A

9 Boundary Conditions

SPMD Solvp (CG with Diagonal /

, M'

3

6 1 Precond 1

g 5 A Total ,"

2.ad ,V'

e - 0-

-.-

0

m--

-*--- -.

0 1 2 3 4 5 6 7 8 9

0

Number of CPU's Fig 4 Speedup\ foi a 10000 node\ piobleiii

TABLE I1

PR013LbM MESCH61) WII H IO(H)O NOlX-5

CPU's 2 1 4 5 6 7 8 9

Speedup 1 5 I 9 2 2 2 5 2 8 1 1 1 7 1 21 A[11dcrhl'Ylaw 6 6 4 71% 7 2 4 7 5 6 IO'/ 77% 7 8 % 7 7 %

(5)

1451

D. Speedup V ~ Y . S L I S number- of nodes

From Table 111, i t is obvious that the efficiency of the method increases with the size of the computed problem: this is due to the communication times witch become negligible compared to computation times.

When computing largc problems, it becomes difficult to measure the code perlormances because these problems cannot be computed on o n l y one processor (the speedup can not be calculated !). A theoretical variation of the CPU time on 1 processor depending on the number of mesh nodes (n) is then used. This theoretical variation is calculated from the actual variation obtained lor problems meshed with 10000 nodes at most. together with the knowledge that solving time varies a s n2 (Table IV).

TABLE 111 RCSUI,1.\ FOR x CPU'S

numhei- of total spccdup solving speedup Amdahl law

nodes (total speedup)

iooo 2.35 I .2 65 %

4000 2.02 1.56 70 %

I0000 3.17 I .76 78 %,

I5000 3.61 1.81 82.6%

TABLE IV RESULTS FOR X CPU'S

(CPU TIME O N I PROCESSOR HAS BEEN ESTIMATED) number of nodes total speedup Aindahl law

22000 3.9 84.9%

3x000 4.2 X7%>

52000 4.5 8X.X'X

6.5000 4.9 90%

VI. MODELING THE SCATTERING BY A 6h CYLINDER In this section, we present the example of a cylinder cnli,nhtcd with an electromagnetic plane wave (Fig. S ) . The length of the cylinder is 6 h , and the radius is 0.Sh. The frequency of the incident wave is 3 GHz. Problem has been modelized with I symmetry. To obtain accurate results, I O nodes per wavelenght are used [ I ] , leading to a mesh made of 50000 nodes. Note that the space ineinory available on the cluster of stations allows l o solve problems meshed a[ most with 100000 nodes.

VII. CONCLUSION

We have prcsentcd in this paper the implementation o f an electromagnetic scattering code on a parallel memory computer. Parallel performances obtained when building the FE matrix are satisfying. On an other hand, the cost of communications in the solvcr is penalizing, because small-

scale parallelism is not adapted to distributed memory computer.

The modeling of realistic problem is not possible on such a cluster because of the memory available. As example. thc study of an 15 m-length airplane, even simplified as a perfect electric conducting body, enlighted by a 3 CHz plane wave, would lead immediately to a problem meshed with more than

I O6 nodes.

On an other hand, this code is immediately implementable on a computer such as the CRAY T3D. This parallel distributed memory computer is a MIMD type. Given its characteristics (1218 processors and 8 Go o i memory). i t should allow to arrange enough memory to modelize realistic devices.

Fig. 5 . P.E.C. cylinder nicshed with 50000 node\

Magnitude of the niagnetic field.

VIII. REFERENCES

[ I 1 L. Nicolas, K. A. Connor. S . J . Salon, B . G Ruth. and L. F Libelo.

"Three dimensional FE onalysis of high power microwave device\."

IEEE 7rz~ris. Mrrfi.. no. 2, pp. 1642-1645. March 1993.

[21 J . L. Yaohi, L. Nicolas. and A . Nicolas, "Vector ahsorhing hountlary conditions for nodal or mixed based finite eleinents." to be published i n [31 G. J . Hendzsak. and T. W Ma, "Parallel compilation of 3-[I elecri-ic and magnetic fields," IEEE T r ~ i i , ~ . Mo,q., vol. 27. no. 5. pp. 4205-4200, Seprernber 109 I

[41 S . liatnaicevan. and H. H o o k . "Finite eleincnt clcctroinagnctic licld computation on the sequcni symmetry X I pafirllel compuicr." I Trt/rr.v. Mofi., vol. 26. no. 2. pp. 837-840, March 1990.

[SI M.L.Barton. "Three-diinentiiial magnetic field computation on a distributed ineinory parallel processor," IEEE ~ I Y I J I . P . on M q . , vol. 20.

[ 6 ] 1). Zois "Parallel processing tecliniques for FE analysis: stiflnew\.

loads and stresses evaluation," C(JJJI/I. X St., vol. 34. no. 3. pp 35.5-174.

1990.

171 R . W. Freund, "Conjugate gradient type inethods for linear sysLeni\

with complex syrninetric coefficient matrices." SIAM .I Sttrt. ~ ' f J l J l ~ 7 l l / . vol. 13, no. I. January 1992.

[XI R . W. Freund, M . H. Gutknecht. and N. M. Nachtignl. "An implementation of a look-ahead Lanczos alpritliin for non-hrrinitian Purr I." 7i.d~. Rep 90.45. RIACS. NASA. .hires Kr.rc.circ./i

~ P I I I P ~ , Noveinher I 9 0 0

[SI I<, F. Lucas, T. Blank. and J . J . iatin. " A par:illrl s o l u t i o n foi- Iargrc sparce systems of equations," I TlYlrl,Y. C ' ( J I i I / ) . / l l t / t t / k Y . , V O I . 6.

no. 6, pp. 98 I -9Y I , Noveinher 19x7.

IEEE ?-ro,i,s. M q . , May 1096.

no. 2, pp. 834.836. March 1990.

Références

Documents relatifs

The strength and extent of the bond between masonry units and mortar depends on several factors, two of the most important being the rate of water absorption or suction of

• Trace le carré EBFG à l'extérieur du premier carré.. • Trace le

The excitation is at point (0, 0) and the analytical solution in infinite space is given by formula (84). Good agreements between the two types of absorbing boundary conditions and

We focus on three simplified but characteristic examples of increasing complexity to highlight the strengths and weaknesses of the proposed ABCs: the propagation in a duct with

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des

We present high order absorbing boundary con- ditions (ABC) for the 2D Helmholtz equation that can adapt to any regular shaped surface.. The new ABCs are derived by using the

Our approach can be applied in three dimensions. When using the HABC on all the faces of a cuboidal domain to represent wave propagation in the free space R 3 , additional

In this paper an adaptive /z-version of the Galerkin discretization for the symmetrie coupling of the finite element method and the boundary element method is presented for linear