Dmitry Sorokin (GSoC 2016), John Apostolakis (CERN)

Slides:



Advertisements
Similar presentations
Example Project and Numerical Integration Computational Neuroscience 03 Lecture 11.
Advertisements

Formal Computational Skills
Chapter 6 Differential Equations
Arc-length computation and arc-length parameterization
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L8&9 KFUPM.
ORDINARY DIFFERENTIAL EQUATIONS (ODE)
Interpolation to Data Points Lizheng Lu Oct. 24, 2007.
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
Sci Fi Simulation Status Malcolm Ellis MICE Meeting Osaka, 2 nd August 2004.
Initial-Value Problems
Chris Rogers, Analysis Parallel, MICE CM17 Progress in Cooling Channel Simulation.
Differential Equations and Boundary Value Problems
Chapter 3 Root Finding.
Ch 8.3: The Runge-Kutta Method
The LiC Detector Toy M. Valentan, M. Regler, R. Frühwirth Austrian Academy of Sciences Institute of High Energy Physics, Vienna InputSimulation ReconstructionOutput.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
22 July 2008 John Hart Toroid Field Parameterisation 1 Toroid Field Parameterisation An informal report to the RAL ATLAS meeting John Hart 22 July 2008.
Tracking at LHCb Introduction: Tracking Performance at LHCb Kalman Filter Technique Speed Optimization Status & Plans.
Geometry and Field: New features and Developments T. Nikitina For Geometry Working Group Geant4 workshop, Hebden Bridge september 2007 G4Paraboloid.
Efficient Integration of Large Stiff Systems of ODEs Using Exponential Integrators M. Tokman, M. Tokman, University of California, Merced 2 hrs 1.5 hrs.
Hank Childs, University of Oregon Lecture #6 CIS 410/510: Advection (Part 1)
Field propagation in Geant4 John Apostolakis 25 th May 2005 Ver. 
Field propagation in Geant4 John Apostolakis, CERN Ecole Geant June 2007, Paris 25 th May 2005 Ver. 
Detector Description: Sensitive Detector & Field
Stress constrained optimization using X-FEM and Level Set Description
Magnetic Field Issues for Simulation and Reconstruction N. Amapane, N. Neumeister Workshop on LHC Physics with High-p T Muons in CMS Bologna, April 9-12,
Scientific Computing Multi-Step and Predictor-Corrector Methods.
Integration for physically based animation CSE 3541 Matt Boggus.
Detector Description – Part III Ivana Hrivnacova, IPN Orsay Tatiana Nikitina, CERN Aknowledgement: Slides by: J.Apostolakis, G.Cosmo, A. Lechner.
Please remember: When you me, do it to Please type “numerical-15” at the beginning of the subject line Do not reply to my gmail,
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Rendering Bezier Curves (1) Evaluate the curve at a fixed set of parameter values and join the points with straight lines Advantage: Very simple Disadvantages:
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
G. Penn UC Berkeley / LBNL CBP July, 2002 NuFact 02 Imperial College, London Boris Push with Spatial Stepping.
1 Simulation, Formatter & Analysis Kyo Tsukada Tohoku Univ.
3 Copyright © Cengage Learning. All rights reserved. Applications of Differentiation.
Object-Oriented Track Reconstruction in the PHENIX Detector at RHIC Outline The PHENIX Detector Tracking in PHENIX Overview Algorithms Object-Oriented.
Quadrature – Concepts (numerical integration) Don Allen.
Geometry & Persistency Recent & ongoing developments
Numerical Methods Some example applications in C++
A Kalman Filter for HADES
Numerical Methods for Partial Differential Equations
Part 7 - Chapter 25.
Some input to the discussion for the design requirements of the GridPixel Tracker and L1thack trigger. Here are some thoughts about possible detector layout.
What is the differentiation.
Measurement of track length and time-of-flight hypothesis
Use of interpolation and FSAL property for integration in field
Ordinary Differential Equations
ECE 576 – Power System Dynamics and Stability
Class Notes 18: Numerical Methods (1/2)
Numerical Solutions of Ordinary Differential Equations
Field propagation in Geant4
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L4&5.
Class Notes 19: Numerical Methods (2/2)
Chapter 23.
Ordinary differential equaltions:
Part 7 - Chapter 25.
Field propagation in Geant4
Field propagation in Geant4
Copyright © Cengage Learning. All rights reserved.
Study of non-uniformity of magnetic field
Numerical Integration of Functions
Numerical solution of first-order ordinary differential equations
Field propagation in Geant4
MATH 175: NUMERICAL ANALYSIS II
GEANT4 performance studies
CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L7 KFUPM.
Numerical solution of first-order ordinary differential equations 1. First order Runge-Kutta method (Euler’s method) Let’s start with the Taylor series.
Modeling and Simulation: Exploring Dynamic System Behaviour
Presentation transcript:

Alternative integration methods and utilization of dense output for field propagation Dmitry Sorokin (GSoC 2016), John Apostolakis (CERN) Somnath Banerjee (GSoC 2015) & Jason Suagee (GSoC 2015),

Outline Overview of field propagation in Geant4 New methods in 10.3-beta Integrated several 2015 developments New developments The Bulirsch-Stoer method Using interpolation to speed up intersection with volume boundary Verification

Field propagation in Geant4 Uses Runge-Kutta integration with adaptive step size control 1. d < deltaChord 2. ΔB < deltaOneStep Locates boundary intersection using iterative intersections of chords Until |F – E| < deltaIntersection

Integrating efficiently Text p s (curve length) Given a detector’s field B(x,y,z) [or B+E ] we need to integrate the trajectory of each track, taking care to stay within a relative accuracy ε to be fast - using as few calls as possible to the field method Typically choose Runge-Kutta methods No history. Ability to adjust step size |Δx| < ε s |Δp| < ε p Δ|p| ~ 0 Estimate x5, Estimate x4 Correct Estimate p4 Estimate p5

Embedded Runge- Kutta methods Text f1 = F(x0 , y0 ) f2 = F( x0 + a2 h , y0 + h b21 fj ) f3 = F( x0 + a3 h , y0 + h b31 f1 + h b32 f2) ai bij cj “Integrate” dy/dx = F(x, y) from x0 to x0+h Uses evaluations of F(x, y): fi = F( x0 + ai h , y0 + h Σj<i bij fj ) yestim(x0 + h) = Σi ci fi Each method has its ‘tableau’ of ai, bij, ci Key Parameters of an RK method: Number of ‘stages’ = number of evaluations of f() ‘Order’ = the expected scaling of the error ~ hN Embedded method = 2nd ‘line’ to estimate error yRBS3=2f1/9 + f2/3 + 4f3/9 c’j y’(x0 +h) = Σi c’i fi Δy = Σi (c’i-ci) fi

Geant4 steppers ‘Classical RK4’ = original 4th order method, 4 stages Text Geant4 steppers ‘Classical RK4’ = original 4th order method, 4 stages Error estimate from breaking step in two => 11 eval. Embedded methods provides built-in error estimate Cash-Karp (1990) - uses difference of 5th & 4th order method, six stages = 6 evaluations of derivative AtlasRK4/NystromRK4: 3 field evaluations + evaluation of error using numerical estimate of 4th derivative - restricted to B-fields Helix - for constant field Lower order RK methods for short steps, and/or lower accuracy

Somanth Banerjee (GSoC 2015) (low) (high)

Integration of new steppers Now integrated in Geant4 10.3 beta: BogackiShampine 2/3 and 4/5 DormandPrince 4/5 (7 stages = evaluations) A few RK tableaus not integrated Expect ‘very high’ (>6) order Verner methods FSAL & Interpolation available – but not used Full ‘move’ to using FSAL ‘simple’ (simpler) Issue with interpolation of DormandPrince 4/5 Fixed recently

Alternative integration methods and utilisation of dense output for field propagation by Dmitry Sorokin (MIPT, Moscow Russia) Mentored by: John Apostolakis

GSoC 2016 Project Outline Goals The Bulirsch-Stoer method Alternative integration strategy for dense output methods Verification Propagation in uniform magnetic field NTST test

Project goals Implement the Bulisrch-Stoer method Extrapolation methods are more efficient than the Runge-Kutta methods for smooth functions and large steps One of thea most efficient is the Bulirsch-Stoer method Use interpolation to improve integration & volume intersection Using dense output (interpolation) the solution can be evaluated for any point within the integration interval. For a fixed number of extra field/function evaluations and provides an estimate of the ‘solution’ for any number of intermediate points versus a new set of ‘N’ evaluations for each intermediate point – the existing alternative (e.g. N=4 for classical RK4, N=6 for)

The Bulirsh-Stoer method Idea: Use midpoint method to estimate integral Vary number of intermediate points Approximate the integral using rational functions Extrapolate to n = ∞ Advantages: Step size and order control Very good for smooth problems and large steps Can provide interpolation / dense output n = 2i+2, for i = 0,1,2…. n = 4i+2, for i = 0,1,2….

Alternative integration strategy for methods with dense output Old strategy Make series of steps without error control to predict the step size (satisfying d < δchord) Make a step with error control to improve the accuracy (Δ Endpoint < δOneStep) If the chord intersects: make a series of substeps with error control to locate the intersection point New strategy Make one step with error control Use dense output to divide the step to substeps (satisfying d < deltaChord) For each substep: if the chord intersects: Use dense output to locate the intersection point Pros: A lot fewer field evaluations required for large steps Cons: Dense output is less accurate than the solution

Propagation in uniform magnetic field 1 MeV proton in the uniform 1 tesla magnetic field. Radius of the circle in xz plane is 102.20 mm Momentum is 43.33 MeV/c. deltaOneStep = 1e-4 mm, deltaIntersection = 1e-5 mm

Propagation in uniform magnetic field

NTST test Geant4 benchmark test. Simulates the BaBar silicon vertex tracker and 40-layer drift chamber. File range cut looper cut min Ecat run2a.mac 1 mm 200 MeV 1 MeV run2b.mac Not applied run2c.mac

Thank you