Parallel Processing Methods Applied to Two and Three Dimensional Geo-Electromagnetic Induction Modelling

Parallel Processing Methods Applied to Two and Three Dimensional Geo-Electromagnetic Induction Modelling

Parallel Processing Methods Applied to Two and Three Dimensional Geo-electromagnetic Induction Modelling Kenneth J MacDonald A thesis submitted in fulfilment of the requirements for the degree of Doctor of Philosophy to the University of Edinburgh 1996 Abstract Two existing finite difference algorithms for solving the forward modelling prob- lem of geo electromagnetic induction have been recoded to take advantage of high performance massively parallel SIMD (single instruction multiple data) computer architectures. Poll's[48] solves the two scalar polarised fields in the two dimen- sional (2D) problem, and the other from Pu[51] solves for all three components of the magnetic field in three dimensional (3D) structures. Both models apply integral boundary conditions at the top and bottom of the grid to limit total mesh size. The 3D model introduces a thin sheet at the top of the model to describe near surface features. An efficient data parallel algorithm ensures the evaluation of the integrals maintains a high ratio of processor utilisation on the parallel hardware. Data parallel versions of the point Jacobian, Gauss-Seidel and successive overrelaxation iterative solvers have been developed. The latter two require two level black-white ordering, which to equalise the processor load bal- ance, has been implemented it both a horizontally banded and chequer boarded remapping of grid nodes. The 2D model was also developed to form a task farm, whereby the solution for each period is performed on one of a cluster of workstations. These solutions are independent of each other, so are executed simultaneously on however many workstations are available at the time. Modern workstations, coupled with the original 2D Gauss-Jordan solver, are faster than the SIMD computers for all but the largest grid sizes. However, the 3D code certainly benefited from the parallel processing for any but the smallest models. A new automatic meshing algorithm, which stretches a predefined number of grid points over the conductivity structure, has also been developed. In part, this was to control the mesh sizes and hence load balancing on the SIMD computers, but investigations into grid spacing for 2D models show that severely restricting the number of grid points results in a much faster estimated solution. 11 Acknowledgements I would like to thank my supervisor Dr. Bruce Hobbs for his unfailing patience and encouragement over the duration of my studies, as an undergraduate and postgraduate. His enthusiasm for life as well as science has helped enormously in shaping my own approach to this study. Thanks must also go to my secondary supervisors Dr. Roger Banks and Mr Graham Dawes for their help and advice. This work was carried out with the financial support of N.E.R.C. under stu- dentship number GT4/91/GS/41, for which I am grateful. A would also like to extend a special thank you to Dr Rosemary Hutton, lately of The University of Edinburgh, for introducing me to the subject of magneto- tellurics and for her faith in and support of me as an undergraduate. The geo-electromagnetic modelling group at the University of Victoria, Canada led by Dr. John Weaver are to be graciously thanked for inviting me to join their team for three months Ashok Agarwal, Xinghua Pu and Helena Poll were not only excellent academic hosts, but they also made my stay away from home most enjoyable. Credit should undoubtably go to my friends and family, who in combination, kicked me into completing this thesis and supported me through the difficult as well as good times. Finally, I would like to thank my fiancée, Helena Taborda, whose faith in me and support has been, and always will be, a source of strength and encourage- ment. iv Contents Abstract i Acknowledgements iv Constants, Symbols and Nomenclature xi 1 Introduction 1 1.1 Historical Review ...........................1 1.2 Basic Electromagnetic Theory ....................3 1.2.1 Dimensionality ........................6 1.2.2 The Magnetotelluric Method ................ ... 7 1.3 Review of Geo-electromagnetic Modelling ..............8 1.4 Review of work in this thesis .....................11 2 Parallel Processing 13 2.1 History of Parallel Processing ....................13 2.2 Differing Computer Architectures ...................15 2.2.1 The SISD Computing Model .................16 2.2.2 The SIMD Computing Model ................16 2.2.3 The MIMD Computing Model .................19 2.3 Load Balancing and Granularity ....................22 2.4 Parallel Processing Algorithms ....................24 2.5 Development Software ............................26 2.5.1 Data Parallel Languages ....................26 2.5.2 Message Passing Libraries ..................30 V 2.5.3 Task Farms 30 2.6 Available Hardware ..........................31 2.6.1 The DEC mpp/12000SX . 31 2.6.2 The Connection Machine 200 ................33 2.6.3 The Workstation Cluster ...................34 2.6.4 Other Serial Machines ....................34 3 Model Algorithms 35 3.1 Two Dimensional Model Formulation ................35 3.1.1 Interior Grid Points ......................38 3.1.2 Boundary Conditions .....................39 3.2 Three Dimensional Model Formulation ...............42 3.2.1 Vertical Edge Boundary Conditions .............42 3.2.2 Internal Grid Points ......................44 3.2.3 Top and Bottom Boundary Conditions ............46 4 Parallel Implementations 48 4.1 Matrix Inversion ............................48 4.1.1 Form of the coefficient matrix .................48 4.1.2 Gauss-Jordan Direct Method ................49 4.1.3 Iterative Solvers .........................50 4.1.4 Simultaneous Relaxation ...................53 4.1.5 Successive Relaxation .....................58 4.1.6 Successive Over-relaxation ...................63 4.1.7 Iterative Starting Values ....................64 4.1.8 Parallel Integral Evaluation .................64 4.1.9 Three Dimensional Array Storage ..............66 4.2 Two Dimensional Task Farm .....................67 4.3 Model Performance ............................67 4.3.1 Two Dimensional Model ......................67 4.3.2 Three Dimensional Model ..................• 72 4.3.3 Task Farm ..............................74 vi 5 Two Dimensional Gridding Strategies 75 5.1 What Makes a Good Grid? ......................75 5.2 Automatic Grid Generation .....................77 5.2.1 Review .............................77 5.3 Elastic Membrane Grid ........................79 5.3.1 Why another algorithm? ...................79 5.3.2 Grid Generation ........................80 5.3.3 Grid Verification .......................85 5.4 The COMMEMI 2-D Project ....................86 5.5 Comparing Grids ...........................86 6 Conclusions and Further Work A Two Dimensional Code Excerpts 105 A.1 Matrix-Iter.FCM ...........................105 A.2 Store-Iter.FCM ............................109 A.3 Jacobian.FCM .............................112 B Three Dimensional Code Excerpts 115 B.1 Iter3D.FCM ..............................115 B.2 Bottom.FCM ...............................125 B.3 Top. FCM .................................129 B.4 Interior. FCM .............................133 C Task Farm Code Excerpts 136 C.1 Taskfarm.F ..............................136 C.2 auto2d-main.FCM .............................140 vii List of Tables 1.1 Time scales of natural geomagnetic variations ..... ... .....2 2.1 Flynn's classification ..........................16 2.2 Comparison of FORTRAN 77 and FORTRAN 90 ...........27 4.1 2D Arrays stored on processor elements ...............58 4.2 Performance for two dimensional (23 x 9) model ..........71 4.3 Performance for two dimensional (123 x 66) model ..........72 4.4 Performance for three dimensional models .............73 4.5 Profile of three dimensional iteration step ...............74 4.6 Performance of the two dimensional task farm . 74 viii List of Figures 1.1 One, Two and Three Dimensional Structures .............7 2.1 Richardson's scheme for numerical weather prediction by human parallel computers ..........................14 2.2 Classical Von Neumann Computer Architecture ..........15 2.3 The SISD computer architecture ...................16 2.4 The SIMD computing model .....................17 2.5 Lattice Topologies ...........................19 2.6 Hypercube Topologies ..........................20 2.7 The MIMD computing model .................... 20 2.8 Quantised Execution Time ......................23 2.9 Domain partition processing .....................25 2.10 Pipeline processing ..........................26 2.11 The High Performance FORTRANCSHIFT intrinsic function. 29 2.12 Classic Task Farm ...........................31 3.1 Two Dimensional Model Configuration ...............37 3.2 General 3D model configuration ...................43 3.3 3D internal points ............................45 4.1 Form of the 21) coefficient matrix ....................49 4.2 U versus z in a one dimensional stratified Earth ..........56 4.3 Five point High Performance FORTRANJacobian Iteration Step 59 4.4 Gauss-Seidel Iteration Front ......................60 4.5 2D Ordering Schemes .........................60 4.6 2D Ordering Schemes ..........................63 lx 4.7 Evaluating the two dimensional surface integral in parallel . 65 4.8 Three dimensional field component storage scheme .........66 4.9 Effect of one dimensional solutions as initial values for the parallel Point Jacobian .............................68 4.10 Point Jacobian versus Gauss-Seidel parallel iterative schemes . 69 4.11 Chequer Board Gauss-Seidel versus Successive

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    152 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us