Speeding up the Simulation of Coupling Losses in ITER size CICC joints by using a Multi-Level Fast Multipole Method and GPU technology Ezra van Lanen,

Slides:



Advertisements
Similar presentations
Introductory Circuit Analysis Robert L. Boylestad
Advertisements

Lect.3 Modeling in The Time Domain Basil Hamed
Twisted Pairs Another way to reduce cross-talk is by means of a twisted pair of wires. A twisted pair of wires will be modeled as a cascade of alternating.
Introduction to Molecular Orbitals
Magnetic Circuits and Transformers
Wednesday, Oct. 26, 2005PHYS , Fall 2005 Dr. Jaehoon Yu 1 PHYS 1444 – Section 003 Lecture #16 Wednesday, Oct. 26, 2005 Dr. Jaehoon Yu Charged Particle.
Chapter 7: Vectors and the Geometry of Space
Boundary Element Method (BEM) Zoran Ilievski Wednesday 28 th June, 2006 HG 6.96 (TU/e)
Weiping Shi Department of Computer Science University of North Texas HiCap: A Fast Hierarchical Algorithm for 3D Capacitance Extraction.
1cs533d-term Notes  list Even if you’re just auditing!
Continuum Crowds Adrien Treuille, Siggraph 王上文.
Sampling Distributions
Lecture 8 Transmission Lines, Transformers, Per Unit Professor Tom Overbye Department of Electrical and Computer Engineering ECE 476 POWER SYSTEM ANALYSIS.
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
ECE 2300 Circuit Analysis Dr. Dave Shattuck Associate Professor, ECE Dept. Lecture Set #24 Real and Reactive Power W326-D3.
Chapter 4 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Lecture 12 Current & Resistance (2)
COMPLEXITY SCIENCE WORKSHOP 18, 19 June 2015 Systems & Control Research Centre School of Mathematics, Computer Science and Engineering CITY UNIVERSITY.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Copyright © 2009 Pearson Education, Inc. Chapter 33 Inductance, Electromagnetic Oscillations, and AC Circuits.
Parallel Performance of Hierarchical Multipole Algorithms for Inductance Extraction Ananth Grama, Purdue University Vivek Sarin, Texas A&M University Hemant.
Nov PHYS , Dr. Andrew Brandt PHYS 1444 – Section 003 Lecture #20, Review Part 2 Tues. November Dr. Andrew Brandt HW28 solution.
Power Lines The power transmission line is one of the major components of an electric power system. Its major function is to transport electric energy,
Single Phase Transformer
October 15, 2008 DC Circuits. This is the week that will have been Today Complete Resistance/Current with some problems Friday Examination #2: Potential.
Simpson Rule For Integration.
Fast Low-Frequency Impedance Extraction using a Volumetric 3D Integral Formulation A.MAFFUCCI, A. TAMBURRINO, S. VENTRE, F. VILLONE EURATOM/ENEA/CREATE.
PiCAP: A Parallel and Incremental Capacitance Extraction Considering Stochastic Process Variation Fang Gong 1, Hao Yu 2, and Lei He 1 1 Electrical Engineering.
Monday, Mar. 27, 2006PHYS , Spring 2006 Dr. Jaehoon Yu 1 PHYS 1444 – Section 501 Lecture #16 Monday, Mar. 27, 2006 Dr. Jaehoon Yu Sources of Magnetic.
1 ELEC 3105 Basic EM and Power Engineering Start Solutions to Poisson’s and/or Laplace’s.
Differential Equations 7. Direction Fields and Euler's Method 7.2.
Weds., Jan. 29, 2014PHYS , Dr. Andrew Brandt 1 PHYS 1442 – Section 004 Lecture #5 Wednesday January 29, 2014 Dr. Andrew Brandt CH 17 Electric Potential.
Progress in identification of damping: Energy-based method with incomplete and noisy data Marco Prandina University of Liverpool.
Copyright © 2009 Pearson Education, Inc. Chapter 32: Inductance, Electromagnetic Oscillations, and AC Circuits.
Review 1.
Inductance and AC Circuits. Mutual Inductance Self-Inductance Energy Stored in a Magnetic Field LR Circuits LC Circuits and Electromagnetic Oscillations.
1 Complex Images k’k’ k”k” k0k0 -k0-k0 branch cut   k 0 pole C1C1 C0C0 from the Sommerfeld identity, the complex exponentials must be a function.
A Passive Approach to Sensor Network Localization Rahul Biswas and Sebastian Thrun International Conference on Intelligent Robots and Systems 2004 Presented.
Shielded Wires Let us say that the voltages measured at the terminal of the receptor circuit are beyond the desired level. What can we do? Two common solutions.
DIFFERENTIAL EQUATIONS 10. DIFFERENTIAL EQUATIONS Unfortunately, it’s impossible to solve most differential equations in the sense of obtaining an explicit.
Thermo-hydraulic simulation of the ITER PF coil joints based on their coupling losses calculated with JackPot-AC Ezra van Lanen 1, Wietse Offringa 1, Yuri.
Quantum Mechanical Cross Sections In a practical scattering experiment the observables we have on hand are momenta, spins, masses, etc.. We do not directly.
J-PARC Trace3D Upgrades Christopher K. Allen Los Alamos National Laboratory.
Tuesday April 19, PHYS , Dr. Andrew Brandt PHYS 1444 – Section 02 Lecture #18 Tuesday April 19, 2011 Dr. Andrew Brandt Chapter 29 Lenz Law.
3/17/2014 PHYS , Dr. Andrew Brandt 1 PHYS 1442 – Section 004 Lecture #15 Monday March 17, 2014 Dr. Andrew Brandt Chapter 21 Generator Transformer.
PHYS 1442 – Section 004 Lecture #12 Wednesday February 26, 2014 Dr. Andrew Brandt Chapter 20 -Charged Particle Moving in Magnetic Field -Sources of Magnetic.
Dimensional Analysis.
Intro to Pre-Electrical Engineering The fundamentals of electricity and electrical science 1.
Monday, April 23, PHYS , Spring 2007 Dr. Andrew Brandt PHYS 1444 – Section 004 Lecture #19 Monday, April 23, 2007 Dr. Andrew Brandt Inductance.
A Design Flow for Optimal Circuit Design Using Resource and Timing Estimation Farnaz Gharibian and Kenneth B. Kent {f.gharibian, unb.ca Faculty.
Conductor, insulator and ground. Force between two point charges:
Wednesday, April 11, PHYS , Spring 2007 Dr. Andrew Brandt PHYS 1444 – Section 004 Lecture #18 Wednesday, April Dr. Andrew Brandt.
Wednesday, Apr. 19, 2006PHYS , Spring 2006 Dr. Jaehoon Yu 1 PHYS 1444 – Section 501 Lecture #21 Wednesday, Apr. 19, 2006 Dr. Jaehoon Yu Energy.
Multipole-Based Preconditioners for Sparse Linear Systems. Ananth Grama Purdue University. Supported by the National Science Foundation.
1 15. Magnetic field Historical observations indicated that certain materials attract small pieces of iron. In 1820 H. Oersted discovered that a compass.
1© Manhattan Press (H.K.) Ltd Potentiometer Comparing resistances Measuring the e.m.f. of a cell Measuring the internal resistance of a cell.
FEASIBILITY ANALYS OF AN MHD INDUCTIVE GENERATOR COUPLED WITH A THERMO - ACOUSTIC ENERGY CONVERSION SYSTEM S. Carcangiu 1, R. Forcinetti 1, A. Montisci.
CHAPTER 5 DC AND AC BRIDGES.
1 Research on laser tracker measurement accuracy and data processing Liang Jing IHEP,CHINA
Real and Reactive Power
ECE 2202 Circuit Analysis II
Fundamentals of Applied Electromagnetics
ELEC 3105 Basic EM and Power Engineering
THE METHOD OF LINES ANALYSIS OF ASYMMETRIC OPTICAL WAVEGUIDES Ary Syahriar.
Copyright © Cengage Learning. All rights reserved.
Supported by the National Science Foundation.
Lattice (bounce) diagram
Measurements of Inductance & Capacitance
Differential Equations
N-port Network Port reference Line Impedance Port Voltage & Current.
Presentation transcript:

Speeding up the Simulation of Coupling Losses in ITER size CICC joints by using a Multi-Level Fast Multipole Method and GPU technology Ezra van Lanen, Jeroen van Nugteren and Arend Nijhuis Energy, Materials and Systems CHATS-AS workshop, CERN, October 2011

Outline  Background of the JackPot-AC model  Calculation of the mutual coupling between two strands  The Multi-Level Fast Multipole Method  The Graphics Processing Unit (GPU)  Solving the system  Verification of the coupling loss model  Conclusions

Outline  Background of the JackPot-AC model  Calculation of the mutual coupling between two strands  The Multi-Level Fast Multipole Method  The Graphics Processing Unit (GPU)  Solving the system  Verification of the coupling loss model  Conclusions

Overview of JackPot-AC network model Cable cross section from JackPot simulation Simplified electrical network  Cable model that accurately describes all strand trajectories in CICC;  Simulated strand trajectories are used to:  Calculate interstrand contact resistance distribution;  Strand-to-joint’s copper sleeve contact resistance distribution;  Mutual inductances  Coupling with background field

Outline  Background of the JackPot-AC model  Calculation of the mutual coupling between two strands  The Multi-Level Fast Multipole Method  The Graphics Processing Unit (GPU)  Solving the system  Verification of the coupling loss model  Conclusions

Calculation of the mutual coupling  Strand currents are considered to be line currents flowing along their axis.  The mutual coupling between two strand elements can then be written as  When A is multiplied by the current flowing in line j, it gives the magnetic vector potential of this line at position r.

Simplification of the mutual coupling  Solving the double integral for the mutual coupling requires considerable effort: simplification is desirable;  When the change of A j along L i is small, the first equation can be simplified to:  where r i,c is the centre location of line i.  If, in addition, A j does not change much along r j either, another simplification is allowed:  The latter simplification takes away all integrals.

Effect of approximations on the mutual inductance  The mutual inductance is calculated between two strand sections located in parallel to each other;  The error due to the approximation reduces rapidly with the distance between the strands;  Both simplifications are used in JackPot-AC;  Single integrals for Blue: double integral Green: single integral Red: no integral

Limitation due to the calculation of mutual inductances  Problem: calculation effort is still O(N 2 ) dependence. For a simulated cable with 1000 strands in 100 cross sections, this means interactions.  This makes direct solution of the system undesirable because of  Storage of the system matrix (computer memory required);  Time required to solve (which has also an O(N 2 ) dependence);  The Multi-Level Fast Multipole Method (MLFMM) has the potential to relieve this computation 1. 1 L.F. Greengard, “The rapid evaluation of potential fields in particle systems”, Cambridge, MA, USA, 1988

Outline  Background of the JackPot-AC model  Calculation of the mutual coupling between two strands  The Multi-Level Fast Multipole Method  The Graphics Processing Unit (GPU)  Solving the system  Verification of the coupling loss model  Conclusions

The interaction between two groups of sources  Consider the line current elements as point sources for simplicity  Calculate the potential of the N particles at the M locations  The total number of direct interactions is MxN  The objective is to facilitate this calculation with mathematical tricks

Multipole expansion of the group of sources  The potential at one target point due to the N sources can be written as a series expansion  (the red circle) is called a Multipole, which can be used to calculate the effect of all N sources on any of the M targets;  Under given constraints about the distance between the sources and targets, the maximum error is a known function of p.  The computational effort for to compute the potential in all other sources in this configuration is now O( p 2 *(M + N) )

Distributing the sources among boxes  First step in the implementation of the FMM is to distribute the sources among a grid of uniformly shaped boxes;  The illustration shows the interactions between the particles in the yellow box and all other boxes  Near field interactions are calculated directly between particles inside this box (yellow), and all neighbouring boxes (blue)

2D illustration: Multipole expansions  Far field interactions can then be calculated with multipoles around the centre of each box (red circles);  The potential at the targets can then be calculated by expanding the multipoles to the target locations;  Expanding the multipoles on each individual target particle is still computational intense…

Conversion of Multipole expansions to Local expansions  A multipole expansion can be converted into a local expansion by  Where location of the multipole expansion  Since expansions can be added, this treatment eventually reduces the number of required operations

2D illustration: Multipole-to-Local (M2L) expansions  The local expansions are now calculated at the centre of the yellow box, from where the potential at target locations can be calculated;  However, for larger systems that need more boxes, the number of M2L computations can still be high (only a few are illustrated in the right figure);  This is where the “multi-level” concept is introduced…

2D illustration: Multi-Level Fast Multipole Method  The fast multipole methods also provides ways to translate multipole expansions and local expansions to different coordinates;  Since these expansions can be added when calculated on the same coordinates, expansions from different locations can be grouped into bigger boxes;  The further away from the target locations, the bigger the area that can be grouped without loss of accuracy;

2D illustration: Multi-Level Fast Multipole Method  This illustration shows two translations of multipole and local expansions (red and blue lines, respectively) and one M2L conversion (green line)  There are three levels on which the multipole method is carried out.  If N L is the number of levels, there are always 4 N L boxes in a 2D simulation, and 8 N L in a 3D simulation.

 This chart illustrates the MLFMM concept with a hierarchical tree:  P2M: Particle to Multipole expansion  M2M: Multipole to Multipole translation  M2L: Multipole to Local expansion conversion  L2L: Local to Local translation  L2P: Local to Particle conversion Hierarchical tree concept Courtesy: L.A. Barba, Boston University

Considerations for the implementation  The MLFMM is developed for calculating the scalar field of moving particles, from fluid dynamics to stellar systems;  Its algorithm is suitable for parallel computation;  Our system has to calculate the vector field of fixed objects (strand segments);  Advantage: The distribution of objects has to be done only once, prior to a simulation;  Drawback: The evaluation of the multipole method has to be done three times, one for each dimension.

Verification of the MLFMM model  Verification of the MLFMM is done by comparing the results with direct calculations;  This example shows the simulation of a 20 cm long ITER PF1 cable, which has 1440 superconducting strands;  The induced electric field due to a 1 A/s current ramp in 10 strands is shown;  The error is less than 0.5 % everywhere.

Outline  Background of the JackPot-AC model  Calculation of the mutual coupling between two strands  The Multi-Level Fast Multipole Method  The Graphics Processing Unit (GPU)  Solving the system  Verification of the coupling loss model  Conclusions

Implementation of the method on a GPU  The mutually induced voltages can be calculated in parallel, but a CPU usually has only up to eight cores;  In the recent years, Graphics Processing Units (GPUs) have been developed, which consist of many hundreds of cores;  Their main advantage is that they can carry out many computations in parallel on low-cost hardware;  For this reason, they are now also widely used for scientific calculations;  In JackPot-AC, both the MLFMM and the direct computation for the mutual coupling are implemented for use on a GPU.

Speedup acquired with the MLFMM method  The time is measured for the calculation of the coupling in an ITER PF1 cable with different length (and thus number of variables);  Implementation of the direct method on the GPU lead to a more than 100 times faster solution;  The overhead for the MLFMM (FMM init.) is required only once for every simulation;  The x in the legend refers to the relationship:  time = (length) x ;  A fast, and O(N) solution is obtained with the MLFMM on the GPU.

Outline  Background of the JackPot-AC model  Calculation of the mutual coupling between two strands  The Multi-Level Fast Multipole Method  The Graphics Processing Unit (GPU)  Solving the system  Verification of the coupling loss model  Conclusions

Considerations for solving the system  The system can generally be described as  Which, after discretisation becomes  This makes it impossible to solve the system directly, since the MLFMM produces matrix-vector products (M*x n ) instead of a matrix;  As such, the system is solved iteratively, which takes away the need to construct the system matrix explicitly;

Iterative solution of the system matrix  A strongly simplified explanation of the iterative solution of the system is as follows:  Start with an initial guess x n,0 for x n, and repeat the following until x n is accurate enough (or the residual vector r n is small enough):  This requires a preconditioner matrix B, which resembles, but is not equal to the system matrix:  For JackPot-AC, incomplete LU factorisation is used, where matrix M contains the self-inductances and the mutual inductances of only the closest strands;  At present, calculating the preconditioner matrix is the bottleneck in the computation time for JackPot-AC.

Outline  Background of the JackPot-AC model  Calculation of the mutual coupling between two strands  The Multi-Level Fast Multipole Method  The Graphics Processing Unit (GPU)  Solving the system  Verification of the coupling loss model  Conclusions

Results: obtaining the interstrand contact resistivity  A contact resistivity parameter is required for the calculation of the interstrand resistances;  Interstrand resistances are measured on CICCs in the Twente press by connecting sets of two strands to a power source;  By simulating this experiment, the parameter is found by adjusting it until the simulation results match the measurements;  For cables with sub-cable wraps, two parameters are used to account for the higher contact resistivity between strands from different sub-cables… Intra-petal R Inter-petal R

Results: obtaining the interstrand contact resistivity  The TFJA-5 was used to find the parameters below;  Intra-petal R: resistance between strands from the same petal;  Inter-petal R: resistance between strands from different petals;  Since the offset phase of the sub-cables are unknown, different simulations are carried out with different sets of random phase angles (three in the simulation below) Intra-petal R Inter-petal R

Results: Frequency response  The power dissipation in a CICC is measured in a uniform, harmonic background field at different frequencies;  This is also simulated, with the contact resistivity parameters obtained before;  This leads to good agreement with the measurements.

Outline  Background of the JackPot-AC model  Calculation of the mutual coupling between two strands  The Multi-Level Fast Multipole Method  The Graphics Processing Unit (GPU)  Solving the system  Verification of the coupling loss model  Conclusions

Conclusions  We have implemented the MLFMM on a GPU for calculating the mutual inductance between N strand segments;  This has lead to a considerable speedup in the calculations, and it has been demonstrated that the time dependence approaches O(N) for the O(N 2 ) mutual couplings;  A small number of expansions (p) is needed to satisfy the accuracy demands of the cable model;  The model has been validated with one measured ITER TF conductor sample;  It has been demonstrated that the model can analyse the coupling loss of an ITER size conductor in any type of background field within a reasonable simulation time.