Use of interpolation and FSAL property for integration in field

Slides:



Advertisements
Similar presentations
Crack Shape Evolution William T. Riddell Civil and Environmental Engineering.
Advertisements

Steady-state heat conduction on triangulated planar domain May, 2002
Example Project and Numerical Integration Computational Neuroscience 03 Lecture 11.
4 th order Embedded Boundary FDTD algorithm for Maxwell Equations Lingling Wu, Stony Brook University Roman Samulyak, BNL Tianshi Lu, BNL Application collaborators:
Arc-length computation and arc-length parameterization
On Map-Matching Vehicle Tracking Data
Numeriska beräkningar i Naturvetenskap och Teknik 1. Numerical differentiation and quadrature Discrete differentiation and integration Trapezoidal and.
Interpolation to Data Points Lizheng Lu Oct. 24, 2007.
Error Estimation in Digital Image Correlation Caused by Rigid Particles By Xiaodan (Danna) Ke.
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
11 September 2007 KKKQ 3013 PENGIRAAN BERANGKA Week 10 – Ordinary Differential Equations 11 September am – 9.00 am.
Initial-Value Problems
Second Term 05/061 Part 3 Truncation Errors (Supplement)
Chris Rogers, Analysis Parallel, MICE CM17 Progress in Cooling Channel Simulation.
HLab meeting 10/14/08 K. Shirotori. Contents SksMinus status –SKS magnet trouble –Magnetic field study.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
Mathematical Models and Numerical Investigation for the Eigenmodes of the Modern Gyrotron Resonators Oleksiy KONONENKO RF Structure Development Meeting,
Chapter Surface Area and Volume of Spheres.
Geometry and Field: New features and Developments T. Nikitina For Geometry Working Group Geant4 workshop, Hebden Bridge september 2007 G4Paraboloid.
Optimising Cuts for HLT George Talbot Supervisor: Stewart Martin-Haugh.
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
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.
Geant4 Tracking Test (D. Lunesu)1 Daniela Lunesu, Stefano Magni Dario Menasce INFN Milano GEANT4 TRACING TESTs.
Introduction to Integration Methods. Types of Methods causal method employs values at prior computation instants. non-causal method if in addition to.
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
Tau31 Tracking Efficiency at BaBar Ian Nugent UNIVERSITY OF VICTORIA Sept 2005 Outline Introduction  Decays Efficiency Charge Asymmetry Pt Dependence.
Introduction to emulators Tony O’Hagan University of Sheffield.
Section 2.8 Distance and Midpoint Formulas; Circles.
Track Reconstruction in MUCH and TRD Andrey Lebedev 1,2 Gennady Ososkov 2 1 Gesellschaft für Schwerionenforschung, Darmstadt, Germany 2 Laboratory of Information.
Quadrature – Concepts (numerical integration) Don Allen.
Interpolation - Introduction
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 21 Numerical Differentiation.
GenFit and RAVE in sPHENIX under Fun4All
Chapter 10 Conic Sections
A Kalman Filter for HADES
Dmitry Sorokin (GSoC 2016), John Apostolakis (CERN)
Circles Objectives: Write the Standard Form and General Form of the Equation of a Circle Find the Center and Radius of a Circle in Standard Form and General.
Neutrino factory near detector simulation
Chapter 10-2: Curves.
M. Kuhn, P. Hopchev, M. Ferro-Luzzi
Circles.
Vector Electromagnetic Physics Models & Field Propagation
Introduction Goal: Can we reconstruct the energy depositions of the proton in the brain if we are able to reconstruct the photons produced during this.
Section 2.8 Distance and Midpoint Formulas; Circles
Lesson 9-4 Spheres Lesson 9-4: Spheres.
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.
Functions, Graphs, and Limits
Circles 4.1 (Chapter 10). Circles 4.1 (Chapter 10)
Geometry Unit 12 Distance and Circles.
Section 1.9 Distance and Midpoint Formulas; Circles
Field propagation in Geant4
Circles Objectives: Write the Standard Form and General Form of the Equation of a Circle Find the Center and Radius of a Circle in Standard Form and General.
Field propagation in Geant4
Study of non-uniformity of magnetic field
Numerical solution of first-order ordinary differential equations
Field propagation in Geant4
Lesson 9-4 Spheres.
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L3 KFUPM.
GEANT4 performance studies
Warmup Find the distance between the point (x, y) and the point (h, k).
Warmup Find the distance between the point (x, y) and the point (h, k).
Circles Objectives: Write the Standard Form and General Form of the Equation of a Circle Find the Center and Radius of a Circle in Standard Form and General.
Numerical solution of first-order ordinary differential equations 1. First order Runge-Kutta method (Euler’s method) Let’s start with the Taylor series.
Presentation transcript:

Use of interpolation and FSAL property for integration in field Dmitry Sorokin, MIPT John Apostolakis, CERN

Content Introduction Part 1: New design of the propagation classes Part 2: The Bulirsch-Stoer method Part 3: Using FSAL in integration Results Future work: Using interpolation in integration Sample tracks from Geant4 b2a example

Introduction Large number of track segments (steps) in each simulation Robust integration of a variety of equations (with a user provided field) High cost of field evaluation Need to find the intersection point between a curved trajectory and the surfaces of the experiment

Part 1: New design of the propagation classes

Part 2: The Bulirsch-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 dense output n = 2i+2, for i = 0,1,2…. n = 4i+2, for i = 0,1,2….

Part 3: Using FSAL in integration Derivative at endpoint (for successful step) The decrease in the number of field evaluations when its FSAL property is used (the estimate of the final derivative is reused if valid), in comparison with its use when it’s FSAL property is not used.

Test: 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. delta1step = 1e-4 mm, deltaIntersection = 1e-5

Test: NTST Main integral test to check the overall performance of the simulation which is used is test NTST. It simulates the inner detector of the Babar experiment, with the realistic interpolated Babar field. Sample events are sample Babar events using the Pythia 6 event generator. File range cut looper cut min Ecat run2a.mac 1 mm 200 MeV 1 MeV run2b.mac Not applied run2c.mac

Next step: Using interpolation in integration Old strategy Make series of steps without error control to predict the step size (satisfy sagitta distance d < δchord) Make a step with error control to improve the accuracy (ΔB < δ1step) 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

Other new integration methods

New methods for step size control (Runge Kutta) How to calculate the size of the next step after a successful step ? New method – more stable (vs oscillations) Old method Standard driver Gustafsson driver Decrease, % run2a.mac 178’346 178’340 .003 run2b.mac 635’086 627’125 1.25 run2c.mac 2’068’425 2’016’590 2.50 Number of calls to field per event in the NTST test. Stepper is g4dormandprince745

Summary Introduced FSAL method to reuse endpoint derivative Alternative Estimation of Next Step size for RK steppers – small benefit New methods (Bulirsch-Stoer) for Integration Provided Prepared for use of Interpolation – a revolution in integration

Thank you

RK method adapted for oscillatory problems Proof of principle: use method adapted for oscillatory solutions based on classical RK4 method G4ClassicalRK4 ARK4 Decrease, % run2a.mac 259’111 237’066 8.5% run2b.mac 1’251’644 1’047’696 16.3% run2c.mac 4’283’088 3’565’924 16.7% Test NTST, number of field evaluations per event for G4ClassicalRK4 stepper and ARK4 stepper (adapted for oscillatory solutions classical RK4 stepper)