Presentation is loading. Please wait.

Presentation is loading. Please wait.

Improving Swift Hal Levison (PI), SwRI Martin Duncan (CoI), Queen’s University Mark Lewis (CoI), Trinity University David Kaufmann, SwRI.

Similar presentations


Presentation on theme: "Improving Swift Hal Levison (PI), SwRI Martin Duncan (CoI), Queen’s University Mark Lewis (CoI), Trinity University David Kaufmann, SwRI."— Presentation transcript:

1 Improving Swift Hal Levison (PI), SwRI Martin Duncan (CoI), Queen’s University Mark Lewis (CoI), Trinity University David Kaufmann, SwRI

2 Outline of Talk 1.Project Background and Goals What is Swift, why improve it, and how? 2.Project Status Swifter, the redesigned Swift A new algorithm for SyMBA SWIFTVis, a Java-based analysis tool 3.Future Plans

3 What is Swift? (1 of 2) 1.S/W package (subroutine library + drivers) 2.Integrates a set of gravitationally interacting bodies together with a set of test particles 3.Written in ANSI standard Fortran 77 4.Industry standard for the planetary science community

4 What is Swift? (2 of 2) 1.Wisdom-Holman Mapping (WHM) 2.Regularized Mixed Variable Symplectic method (RMVS) 3.Fourth-order T+U Symplectic method (TU4) 4.Symplectic Massive Body Algorithm (SyMBA) 1.Bulirsch-Stoer method Symplectic IntegratorsNon-symplectic Integrators

5 Why Improve Swift? 1.SyMBA has not yet been released as part of Swift because… a single, stable version has not yet been finalized, the efficiency of the SyMBA code needs to be improved, and SyMBA is very complex and not very user-friendly 2.The Swift I/O can be made more user-friendly 3.Faster methods of calculating interparticle forces can be employed 4.Swift is currently a serial code, not parallelized

6 How to Improve Swift? 1.Reorganize the data for SyMBA and other Swift integrators into arrays of structures to improve efficiency and clarify the code to make it more user-friendly 2.Make these structure arrays dynamically allocated to avoid fixed-size limitations 3.Modify the integration parameter input facility to allow for more user-friendly input files 4.Utilize tree or Fast Multipole methods for interparticle force calculations 5.Write a parallelized version of Swift

7 Swifter Overview 1.Written in ANSI standard Fortran 90 because… it is well-suited for number-crunching applications, it supports dynamic memory allocation it supports data structures it supports pointers it facilitates the transition to Swifter for current Swift users 2.Program data reorganized into dynamically allocated arrays of nested structures 3.Structures are accessed primarily by means of pointers 4.New keyword-driven parameter input file format 5.Widely used RADAU15 integrator has been added

8 Swift Memory Layout BASIC DATA INTEGRATOR-SPECIFIC DATA MAIN PROGRAM STEPPER SUBROUTINE

9 Swifter Memory Layout NEXT PREVIOUS NEXT PREVIOUS BASIC DATA INTEGRATOR-SPECIFIC DATA MASS POSITION VELOCITY etc. BODY 1BODY 2BODY 3 BODY 6BODY 5BODY 4

10 Parameter File Swift vs. Swifter 0.0e0 3.65249999999e9 36.525e0 3.6525e7 F T F T T F -1.0 1000.0 -1.0 -1.0 F bin.dat unknown ! ! start the run at time = 0 ! T0 0.0E0 TSTOP 3.65249999999E9 DT 36.525E0 PL_IN pl.in TP_IN tp.in IN_TYPE ASCII ISTEP_OUT 1000000 BIN_OUT bin.dat OUT_TYPE REAL4 OUT_FORM EL OUT_STAT UNKNOWN ISTEP_DUMP 1000000 CHK_RMIN -1.0 CHK_RMAX 1000.0 CHK_EJECT -1.0 CHK_QMIN -1.0 CHK_QMIN_COORD HELIO CHK_QMIN_RANGE 0.5 100.0 ENC_OUT enc.dat BIG_DISCARD yes

11 What is SyMBA? First symplectic integrator for planet formation and evolution. An example of terrestrial planet formation

12 What is SyMBA? An example of planetary system stability:

13 What is SyMBA? The Hamiltonian for the gravitational N-body problem, expressed in inertial frame coordinates, is where p i is the momentum of particle i and r ij = |q i – q j | is the distance between particles i and j. The equations of motion are derived in the usual way from the Hamiltonian:

14 What is SyMBA? SyMBA makes use of this Hamiltonian expressed in “democratic heliocentric” coordinates (heliocentric positions and barycentric momenta). It can be written where Second-order time step is Unfortunately this scheme fails during close solar encounters.

15 What is SyMBA? The following splitting of the Hamiltonian solved the problem of close encounters with the Sun: where and

16 What is SyMBA? The time rate of change of the momentum due to H ’ Sun is Because the right-hand side of this equation is independent of m i, there is a singularity in the calculation of the acceleration for zero-mass test particles, and bad numerical behavior for bodies of sufficiently low mass, in the transition region where F is changing.

17 New SyMBA Algorithm The solution to this problem may lie in the use of “Yosemite” coordinates, developed by John Chambers. and Using these coordinates the Hamiltonian reads

18 SWIFTVis 1.Java-based graphical data analysis utility 2.Customized for Swift and Swift users 3.Freely available and platform independent 4.Graphical display of analysis session, which can be saved and reused with new input data 5.Raw data source  Filter  Plot 6.Supported filters include: select, thinning, function, sort, merge, binned, and movie

19 SWIFTVis Demo (1 of 21)

20 SWIFTVis Demo (2 of 21)

21 SWIFTVis Demo (3 of 21)

22 SWIFTVis Demo (4 of 21)

23 SWIFTVis Demo (5 of 21)

24 SWIFTVis Demo (6 of 21)

25 SWIFTVis Demo (7 of 21)

26 SWIFTVis Demo (8 of 21)

27 SWIFTVis Demo (9 of 21)

28 SWIFTVis Demo (10 of 21)

29 SWIFTVis Demo (11 of 21)

30 SWIFTVis Demo (12 of 21)

31 SWIFTVis Demo (13 of 21)

32 SWIFTVis Demo (14 of 21)

33 SWIFTVis Demo (15 of 21)

34 SWIFTVis Demo (16 of 21)

35 SWIFTVis Demo (17 of 21)

36 SWIFTVis Demo (18 of 21)

37 SWIFTVis Demo (19 of 21)

38 SWIFTVis Demo (20 of 21)

39 SWIFTVis Demo (21 of 21)

40 Future Plans 1.Complete the rewrite of SyMBA 2.Complete the SWIFTVis utility 3.Package and release the serial version of Swifter 4.Establish a support web site for Swifter 5.Continue development of alternative force calculation methods (symplectic tree algorithm, FMM) 6.Purchase the parallel computer cluster 7.Begin development of the parallel version of Swifter


Download ppt "Improving Swift Hal Levison (PI), SwRI Martin Duncan (CoI), Queen’s University Mark Lewis (CoI), Trinity University David Kaufmann, SwRI."

Similar presentations


Ads by Google