SlideShare a Scribd company logo
1 of 20
Download to read offline
A block-step version 
of KS regularization 
Keigo Nitadori 
KS regularization 
Hermite integrator 
KS block-step 
Summary 
A block-step version of KS regularization 
at Steller N-body Dynamics, Sexten 
Keigo Nitadori 
Co-Design Team, Exascale Computing Project 
RIKEN Advanced Institute for Computational Sciencd 
September 10, 2014
A block-step version 
of KS regularization 
Keigo Nitadori 
KS regularization 
Hermite integrator 
KS block-step 
Summary 
Acknowledgement 
My sincerest thanks go to Sverre Aarseth and IoA for inviting 
me 7 times, 07, 08, 09, 10, 11, 12, and 13, in which the most 
important and creative collaboration on the development of 
NBODY6/GPU was done.
A block-step version 
of KS regularization 
Keigo Nitadori 
KS regularization 
Hermite integrator 
KS block-step 
Summary 
Abstract 
I talk about a new future implemented in NBODY6/GPU: 
A block-step version of KS regularized binary. 
I To eliminate serial bottleneck 
I Very accurate with fully conservational Hermite integrator 
Amazingly, it is already working! 
Public code is available as nbody6b and nbody7b
A block-step version 
of KS regularization 
Keigo Nitadori 
KS regularization 
Hermite integrator 
KS block-step 
Summary 
Topics 
1. Brief introduction of Kustaanheimo–Stiefel (KS) 
regularization (with Hamilton’s quaternion numbers) 
2. A very accurate variant of Hermite integrator for harmonic 
oscillators (and regularized binaries) 
3. Block stepping in real time t
A block-step version 
of KS regularization 
Keigo Nitadori 
KS regularization 
Hermite integrator 
KS block-step 
Summary 
3 steps of regularization 
1. Time transformation. dt = krkd, (hereafter, [˙] = d 
dt [ ], 
d [ ] = krk[˙]) 
and [ ]0 = d 
I r() is already a harmonic oscillator (+bias ). 
I But equation of motion r00 = f (r; r0) is numerically 
dangerous. 
2. Write the equation of motion in conserved quantities. 
ex. r00 = f (E;e; r) in Sparing–Burdeet–Heggie 
regularization. 
I Perturbation to E and e are integrated independently. 
3. Coordinate transformation from r to u. Finally, it becomes 
a harmonic oscillator, u00 = 12 
hu. 
I h is an energy integral and available as h(u;u0), but should 
be integrated independently.
A block-step version 
of KS regularization 
Keigo Nitadori 
KS regularization 
Hermite integrator 
KS block-step 
Summary 
Levi-Civita transformation in a complex plane 
1.5 
1 
0.5 
0 
-0.5 
-1 
-1.5 
harmonic 
Kepler 
F1 
F2 
-1.5 -1 -0.5 0 0.5 1 1.5 
Ellipse of harmonic oscillator: 
u = A cos  + iB sin  (1) 
Ellipse of Kepler motion: 
r =u2 
= 
A2  B2 
2 + 
A2 + B2 
2 
cos 2 + i2AB sin 2 
=a(e + cos ) + ia 
p 
1  e2 sin  
with 
 = 2; a = 
A2 + B2 
2 
; e = 
A2  B2 
A2 + B2 
(2)
A block-step version 
of KS regularization 
Keigo Nitadori 
KS regularization 
Hermite integrator 
KS block-step 
Summary 
Hamilton’s quaternion 
I The complex numbers algebra can be applied to the 
two-dimensional geometry 
I We can add, subtract, multiply, and divide 2D vectors 
I What about on 3D vectors? 
I According to a letter Hamilton wrote later to his son 
Archibald: 
Every morning in the early part of October 1843, on my coming 
down to breakfast, your brother William Edward and yourself 
used to ask me: Well, Papa, can you multiply triples? Whereto 
I was always obliged to reply, with a sad shake of the head, No, 
I can only add and subtract them. 
I Finally, he discovered that quadruple numbers can be applied to 
the arithmetics of 3D vectors
A block-step version 
of KS regularization 
Keigo Nitadori 
KS regularization 
Hermite integrator 
KS block-step 
Summary 
cont. 
Introduce a new imaginary unit j that anti-commutes with i, 
e.g. ij = ji, and let k = ij. Then, 
i2 = j2 = k2 = ijk = 1 
or 
ij = ji = k; jk = kj = i; ki = ik = j 
defines the (non-commutative) quaternion algebra. 
A quaternion is 
H 3 q = s + ix + jy + kz (s;x;y; z 2 R) 
s is referred to as scalar and ix + jy + kz vector.
Broom Bridge
A block-step version 
of KS regularization 
Keigo Nitadori 
KS regularization 
Hermite integrator 
KS block-step 
Summary 
Usage of quaternion 
A unit quaternion rotates a vector. 
rrot = r ¯; (3) 
with a unit quaternion  and a vector r = ix + jy + kz. 
Example: 
ek=2(ix + jy + kz)ek=2 =ek (ix + jy) + kz 
=ek (x + ky)i + kz (4) 
 
iek=2 = ek=2i; jek=2 = ek=2j; kek=2 = ek=2k 
 
 = ek=2 
 
= cos  
2 + k sin  
2 
 
rotated a vector about the z-axis 
by an angle .
A block-step version 
of KS regularization 
Keigo Nitadori 
KS regularization 
Hermite integrator 
KS block-step 
Summary 
Let’s rotate the orbit 
Let Kepler orbit on the xy-plane 
x + iy = u2; (5) 
with LC coordinate u = u0 + iu1. By multiplying j from right, 
we move the orbit on the yz-plane, 
(x + iy)j = jx + ky = u2j = uj¯u: (6) 
With arbitrary rotational quaternions  and
, 
(jx + ky)¯ = (uju¯ )¯ = (u
¯)(
j
¯)(
u¯¯ ) (7) 
Now we can write 
r = q ¯q; (8) 
with a three-dimensional orbit r, a quaternion q = u
¯, and 
a unit vector  =
j
¯ (is either i, j, or k).
A block-step version 
of KS regularization 
Keigo Nitadori 
KS regularization 
Hermite integrator 
KS block-step 
Summary 
Comparison of LC and KS 
LC KS 
12 
12 
algebra complex, C quaternion, 12 
12H 
phys. coord. r = x + iy r = ix + jy + kz 
reg. coord. u = u0 + iu1 u = u0 + iu1 + ju2 + ku3 
transformation r = u2 r = u u 
¯eq. of motion u00 = hu + juj2fu u00 = hu  kuk2fu 
I f is a perturbation vector 
I Original 2  2 real matrix formulation is possible for LC 
I Original 4  4 real matrix or 2  2 complex matrix (Pauli 
matrices) formulation is possible for KS

More Related Content

What's hot

On maximal and variational Fourier restriction
On maximal and variational Fourier restrictionOn maximal and variational Fourier restriction
On maximal and variational Fourier restrictionVjekoslavKovac1
 
Minimum spanning tree algorithms by ibrahim_alfayoumi
Minimum spanning tree algorithms by ibrahim_alfayoumiMinimum spanning tree algorithms by ibrahim_alfayoumi
Minimum spanning tree algorithms by ibrahim_alfayoumiIbrahim Alfayoumi
 
Toward an Improved Computational Strategy for Vibration-Proof Structures Equi...
Toward an Improved Computational Strategy for Vibration-Proof Structures Equi...Toward an Improved Computational Strategy for Vibration-Proof Structures Equi...
Toward an Improved Computational Strategy for Vibration-Proof Structures Equi...Alessandro Palmeri
 
A Note on the Derivation of the Variational Inference Updates for DILN
A Note on the Derivation of the Variational Inference Updates for DILNA Note on the Derivation of the Variational Inference Updates for DILN
A Note on the Derivation of the Variational Inference Updates for DILNTomonari Masada
 
MLP輪読スパース8章 トレースノルム正則化
MLP輪読スパース8章 トレースノルム正則化MLP輪読スパース8章 トレースノルム正則化
MLP輪読スパース8章 トレースノルム正則化Akira Tanimoto
 
Norm-variation of bilinear averages
Norm-variation of bilinear averagesNorm-variation of bilinear averages
Norm-variation of bilinear averagesVjekoslavKovac1
 
Phase diagram at finite T & Mu in strong coupling limit of lattice QCD
Phase diagram at finite T & Mu in strong coupling limit of lattice QCDPhase diagram at finite T & Mu in strong coupling limit of lattice QCD
Phase diagram at finite T & Mu in strong coupling limit of lattice QCDBenjamin Jaedon Choi
 
dhirota_hone_corrected
dhirota_hone_correcteddhirota_hone_corrected
dhirota_hone_correctedAndy Hone
 
Johnson's algorithm
Johnson's algorithmJohnson's algorithm
Johnson's algorithmKiran K
 
Solving TD-DFT/BSE equations with Lanczos-Haydock approach
Solving TD-DFT/BSE equations with Lanczos-Haydock approachSolving TD-DFT/BSE equations with Lanczos-Haydock approach
Solving TD-DFT/BSE equations with Lanczos-Haydock approachClaudio Attaccalite
 
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra Sahil Kumar
 
Prims & kruskal algorithms
Prims & kruskal algorithmsPrims & kruskal algorithms
Prims & kruskal algorithmsAyesha Tahir
 
Response Surface in Tensor Train format for Uncertainty Quantification
Response Surface in Tensor Train format for Uncertainty QuantificationResponse Surface in Tensor Train format for Uncertainty Quantification
Response Surface in Tensor Train format for Uncertainty QuantificationAlexander Litvinenko
 
(Neamen)solution manual for semiconductor physics and devices 3ed
(Neamen)solution manual for semiconductor physics and devices 3ed(Neamen)solution manual for semiconductor physics and devices 3ed
(Neamen)solution manual for semiconductor physics and devices 3edKadu Brito
 
Bellman ford
Bellman fordBellman ford
Bellman fordKiran K
 

What's hot (20)

On maximal and variational Fourier restriction
On maximal and variational Fourier restrictionOn maximal and variational Fourier restriction
On maximal and variational Fourier restriction
 
Minimum spanning tree algorithms by ibrahim_alfayoumi
Minimum spanning tree algorithms by ibrahim_alfayoumiMinimum spanning tree algorithms by ibrahim_alfayoumi
Minimum spanning tree algorithms by ibrahim_alfayoumi
 
Toward an Improved Computational Strategy for Vibration-Proof Structures Equi...
Toward an Improved Computational Strategy for Vibration-Proof Structures Equi...Toward an Improved Computational Strategy for Vibration-Proof Structures Equi...
Toward an Improved Computational Strategy for Vibration-Proof Structures Equi...
 
Minimum spanning tree
Minimum spanning treeMinimum spanning tree
Minimum spanning tree
 
A Note on the Derivation of the Variational Inference Updates for DILN
A Note on the Derivation of the Variational Inference Updates for DILNA Note on the Derivation of the Variational Inference Updates for DILN
A Note on the Derivation of the Variational Inference Updates for DILN
 
MLP輪読スパース8章 トレースノルム正則化
MLP輪読スパース8章 トレースノルム正則化MLP輪読スパース8章 トレースノルム正則化
MLP輪読スパース8章 トレースノルム正則化
 
Norm-variation of bilinear averages
Norm-variation of bilinear averagesNorm-variation of bilinear averages
Norm-variation of bilinear averages
 
Phase diagram at finite T & Mu in strong coupling limit of lattice QCD
Phase diagram at finite T & Mu in strong coupling limit of lattice QCDPhase diagram at finite T & Mu in strong coupling limit of lattice QCD
Phase diagram at finite T & Mu in strong coupling limit of lattice QCD
 
dhirota_hone_corrected
dhirota_hone_correcteddhirota_hone_corrected
dhirota_hone_corrected
 
Monopole zurich
Monopole zurichMonopole zurich
Monopole zurich
 
Johnson's algorithm
Johnson's algorithmJohnson's algorithm
Johnson's algorithm
 
Solving TD-DFT/BSE equations with Lanczos-Haydock approach
Solving TD-DFT/BSE equations with Lanczos-Haydock approachSolving TD-DFT/BSE equations with Lanczos-Haydock approach
Solving TD-DFT/BSE equations with Lanczos-Haydock approach
 
Gamma function
Gamma functionGamma function
Gamma function
 
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
 
Matrices ii
Matrices iiMatrices ii
Matrices ii
 
Prims & kruskal algorithms
Prims & kruskal algorithmsPrims & kruskal algorithms
Prims & kruskal algorithms
 
Response Surface in Tensor Train format for Uncertainty Quantification
Response Surface in Tensor Train format for Uncertainty QuantificationResponse Surface in Tensor Train format for Uncertainty Quantification
Response Surface in Tensor Train format for Uncertainty Quantification
 
Fdtd ppt for mine
Fdtd ppt   for mineFdtd ppt   for mine
Fdtd ppt for mine
 
(Neamen)solution manual for semiconductor physics and devices 3ed
(Neamen)solution manual for semiconductor physics and devices 3ed(Neamen)solution manual for semiconductor physics and devices 3ed
(Neamen)solution manual for semiconductor physics and devices 3ed
 
Bellman ford
Bellman fordBellman ford
Bellman ford
 

Similar to A block-step version of KS regularization

Kittel c. introduction to solid state physics 8 th edition - solution manual
Kittel c.  introduction to solid state physics 8 th edition - solution manualKittel c.  introduction to solid state physics 8 th edition - solution manual
Kittel c. introduction to solid state physics 8 th edition - solution manualamnahnura
 
Direct method for soliton solution
Direct method for soliton solutionDirect method for soliton solution
Direct method for soliton solutionMOHANRAJ PHYSICS
 
25 johnarry tonye ngoji 250-263
25 johnarry tonye ngoji 250-26325 johnarry tonye ngoji 250-263
25 johnarry tonye ngoji 250-263Alexander Decker
 
Dcs lec02 - z-transform
Dcs   lec02 - z-transformDcs   lec02 - z-transform
Dcs lec02 - z-transformAmr E. Mohamed
 
SolutionsPlease see answer in bold letters.Note pi = 3.14.docx
SolutionsPlease see answer in bold letters.Note pi = 3.14.docxSolutionsPlease see answer in bold letters.Note pi = 3.14.docx
SolutionsPlease see answer in bold letters.Note pi = 3.14.docxrafbolet0
 
Fast parallelizable scenario-based stochastic optimization
Fast parallelizable scenario-based stochastic optimizationFast parallelizable scenario-based stochastic optimization
Fast parallelizable scenario-based stochastic optimizationPantelis Sopasakis
 
2d beam element with combined loading bending axial and torsion
2d beam element with combined loading bending axial and torsion2d beam element with combined loading bending axial and torsion
2d beam element with combined loading bending axial and torsionrro7560
 
Metodo Monte Carlo -Wang Landau
Metodo Monte Carlo -Wang LandauMetodo Monte Carlo -Wang Landau
Metodo Monte Carlo -Wang Landauangely alcendra
 
Is ellipse really a section of cone
Is ellipse really a section of coneIs ellipse really a section of cone
Is ellipse really a section of conenarayana dash
 

Similar to A block-step version of KS regularization (20)

Kittel c. introduction to solid state physics 8 th edition - solution manual
Kittel c.  introduction to solid state physics 8 th edition - solution manualKittel c.  introduction to solid state physics 8 th edition - solution manual
Kittel c. introduction to solid state physics 8 th edition - solution manual
 
1.3428190.pdf
1.3428190.pdf1.3428190.pdf
1.3428190.pdf
 
Stability
StabilityStability
Stability
 
Direct method for soliton solution
Direct method for soliton solutionDirect method for soliton solution
Direct method for soliton solution
 
25 johnarry tonye ngoji 250-263
25 johnarry tonye ngoji 250-26325 johnarry tonye ngoji 250-263
25 johnarry tonye ngoji 250-263
 
kactl.pdf
kactl.pdfkactl.pdf
kactl.pdf
 
A05330107
A05330107A05330107
A05330107
 
Ch13
Ch13Ch13
Ch13
 
Column lessons
Column lessonsColumn lessons
Column lessons
 
Dcs lec02 - z-transform
Dcs   lec02 - z-transformDcs   lec02 - z-transform
Dcs lec02 - z-transform
 
Cse41
Cse41Cse41
Cse41
 
SolutionsPlease see answer in bold letters.Note pi = 3.14.docx
SolutionsPlease see answer in bold letters.Note pi = 3.14.docxSolutionsPlease see answer in bold letters.Note pi = 3.14.docx
SolutionsPlease see answer in bold letters.Note pi = 3.14.docx
 
1st and 2nd Semester M Tech: Structural Engineering (Dec-2015; Jan-2016) Ques...
1st and 2nd Semester M Tech: Structural Engineering (Dec-2015; Jan-2016) Ques...1st and 2nd Semester M Tech: Structural Engineering (Dec-2015; Jan-2016) Ques...
1st and 2nd Semester M Tech: Structural Engineering (Dec-2015; Jan-2016) Ques...
 
Fast parallelizable scenario-based stochastic optimization
Fast parallelizable scenario-based stochastic optimizationFast parallelizable scenario-based stochastic optimization
Fast parallelizable scenario-based stochastic optimization
 
2d beam element with combined loading bending axial and torsion
2d beam element with combined loading bending axial and torsion2d beam element with combined loading bending axial and torsion
2d beam element with combined loading bending axial and torsion
 
Metodo Monte Carlo -Wang Landau
Metodo Monte Carlo -Wang LandauMetodo Monte Carlo -Wang Landau
Metodo Monte Carlo -Wang Landau
 
Stability of piles
Stability of pilesStability of piles
Stability of piles
 
Beam.pdf
Beam.pdfBeam.pdf
Beam.pdf
 
Is ellipse really a section of cone
Is ellipse really a section of coneIs ellipse really a section of cone
Is ellipse really a section of cone
 
Solution baupc 2003
Solution baupc 2003Solution baupc 2003
Solution baupc 2003
 

More from Keigo Nitadori

Hermite integrators and 2-parameter subgroup of Riordan group
Hermite integrators and 2-parameter subgroup of Riordan groupHermite integrators and 2-parameter subgroup of Riordan group
Hermite integrators and 2-parameter subgroup of Riordan groupKeigo Nitadori
 
上三角 Pascal 行列による多項式のシフト
上三角 Pascal 行列による多項式のシフト上三角 Pascal 行列による多項式のシフト
上三角 Pascal 行列による多項式のシフトKeigo Nitadori
 
Higher order derivatives for N -body simulations
Higher order derivatives for N -body simulationsHigher order derivatives for N -body simulations
Higher order derivatives for N -body simulationsKeigo Nitadori
 
Snake eats leapfrog (in Japanese)
Snake eats leapfrog (in Japanese)Snake eats leapfrog (in Japanese)
Snake eats leapfrog (in Japanese)Keigo Nitadori
 

More from Keigo Nitadori (6)

Hermite integrators and 2-parameter subgroup of Riordan group
Hermite integrators and 2-parameter subgroup of Riordan groupHermite integrators and 2-parameter subgroup of Riordan group
Hermite integrators and 2-parameter subgroup of Riordan group
 
上三角 Pascal 行列による多項式のシフト
上三角 Pascal 行列による多項式のシフト上三角 Pascal 行列による多項式のシフト
上三角 Pascal 行列による多項式のシフト
 
Higher order derivatives for N -body simulations
Higher order derivatives for N -body simulationsHigher order derivatives for N -body simulations
Higher order derivatives for N -body simulations
 
FMMの実装と導出
FMMの実装と導出FMMの実装と導出
FMMの実装と導出
 
Snake eats leapfrog (in Japanese)
Snake eats leapfrog (in Japanese)Snake eats leapfrog (in Japanese)
Snake eats leapfrog (in Japanese)
 
Rh typing
Rh typingRh typing
Rh typing
 

Recently uploaded

Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfSumit Kumar yadav
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfrohankumarsinghrore1
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfSumit Kumar yadav
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxgindu3009
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)PraveenaKalaiselvan1
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...RohitNehra6
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...Sérgio Sacani
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfSumit Kumar yadav
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bSérgio Sacani
 
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡anilsa9823
 
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencySheetal Arora
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisDiwakar Mishra
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptxanandsmhk
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptxRajatChauhan518211
 
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.Nitya salvi
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsSérgio Sacani
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRDelhi Call girls
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfmuntazimhurra
 
Chromatin Structure | EUCHROMATIN | HETEROCHROMATIN
Chromatin Structure | EUCHROMATIN | HETEROCHROMATINChromatin Structure | EUCHROMATIN | HETEROCHROMATIN
Chromatin Structure | EUCHROMATIN | HETEROCHROMATINsankalpkumarsahoo174
 
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...Sérgio Sacani
 

Recently uploaded (20)

Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdf
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdf
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdf
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
 
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
 
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptx
 
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdf
 
Chromatin Structure | EUCHROMATIN | HETEROCHROMATIN
Chromatin Structure | EUCHROMATIN | HETEROCHROMATINChromatin Structure | EUCHROMATIN | HETEROCHROMATIN
Chromatin Structure | EUCHROMATIN | HETEROCHROMATIN
 
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
 

A block-step version of KS regularization

  • 1. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary A block-step version of KS regularization at Steller N-body Dynamics, Sexten Keigo Nitadori Co-Design Team, Exascale Computing Project RIKEN Advanced Institute for Computational Sciencd September 10, 2014
  • 2. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary Acknowledgement My sincerest thanks go to Sverre Aarseth and IoA for inviting me 7 times, 07, 08, 09, 10, 11, 12, and 13, in which the most important and creative collaboration on the development of NBODY6/GPU was done.
  • 3. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary Abstract I talk about a new future implemented in NBODY6/GPU: A block-step version of KS regularized binary. I To eliminate serial bottleneck I Very accurate with fully conservational Hermite integrator Amazingly, it is already working! Public code is available as nbody6b and nbody7b
  • 4. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary Topics 1. Brief introduction of Kustaanheimo–Stiefel (KS) regularization (with Hamilton’s quaternion numbers) 2. A very accurate variant of Hermite integrator for harmonic oscillators (and regularized binaries) 3. Block stepping in real time t
  • 5. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary 3 steps of regularization 1. Time transformation. dt = krkd, (hereafter, [˙] = d dt [ ], d [ ] = krk[˙]) and [ ]0 = d I r() is already a harmonic oscillator (+bias ). I But equation of motion r00 = f (r; r0) is numerically dangerous. 2. Write the equation of motion in conserved quantities. ex. r00 = f (E;e; r) in Sparing–Burdeet–Heggie regularization. I Perturbation to E and e are integrated independently. 3. Coordinate transformation from r to u. Finally, it becomes a harmonic oscillator, u00 = 12 hu. I h is an energy integral and available as h(u;u0), but should be integrated independently.
  • 6. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary Levi-Civita transformation in a complex plane 1.5 1 0.5 0 -0.5 -1 -1.5 harmonic Kepler F1 F2 -1.5 -1 -0.5 0 0.5 1 1.5 Ellipse of harmonic oscillator: u = A cos + iB sin (1) Ellipse of Kepler motion: r =u2 = A2 B2 2 + A2 + B2 2 cos 2 + i2AB sin 2 =a(e + cos ) + ia p 1 e2 sin with = 2; a = A2 + B2 2 ; e = A2 B2 A2 + B2 (2)
  • 7. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary Hamilton’s quaternion I The complex numbers algebra can be applied to the two-dimensional geometry I We can add, subtract, multiply, and divide 2D vectors I What about on 3D vectors? I According to a letter Hamilton wrote later to his son Archibald: Every morning in the early part of October 1843, on my coming down to breakfast, your brother William Edward and yourself used to ask me: Well, Papa, can you multiply triples? Whereto I was always obliged to reply, with a sad shake of the head, No, I can only add and subtract them. I Finally, he discovered that quadruple numbers can be applied to the arithmetics of 3D vectors
  • 8. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary cont. Introduce a new imaginary unit j that anti-commutes with i, e.g. ij = ji, and let k = ij. Then, i2 = j2 = k2 = ijk = 1 or ij = ji = k; jk = kj = i; ki = ik = j defines the (non-commutative) quaternion algebra. A quaternion is H 3 q = s + ix + jy + kz (s;x;y; z 2 R) s is referred to as scalar and ix + jy + kz vector.
  • 10. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary Usage of quaternion A unit quaternion rotates a vector. rrot = r ¯; (3) with a unit quaternion and a vector r = ix + jy + kz. Example: ek=2(ix + jy + kz)ek=2 =ek (ix + jy) + kz =ek (x + ky)i + kz (4) iek=2 = ek=2i; jek=2 = ek=2j; kek=2 = ek=2k = ek=2 = cos 2 + k sin 2 rotated a vector about the z-axis by an angle .
  • 11. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary Let’s rotate the orbit Let Kepler orbit on the xy-plane x + iy = u2; (5) with LC coordinate u = u0 + iu1. By multiplying j from right, we move the orbit on the yz-plane, (x + iy)j = jx + ky = u2j = uj¯u: (6) With arbitrary rotational quaternions and
  • 12. , (jx + ky)¯ = (uju¯ )¯ = (u
  • 13. ¯)(
  • 14. j
  • 15. ¯)(
  • 16. u¯¯ ) (7) Now we can write r = q ¯q; (8) with a three-dimensional orbit r, a quaternion q = u
  • 17. ¯, and a unit vector =
  • 18. j
  • 19. ¯ (is either i, j, or k).
  • 20. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary Comparison of LC and KS LC KS 12 12 algebra complex, C quaternion, 12 12H phys. coord. r = x + iy r = ix + jy + kz reg. coord. u = u0 + iu1 u = u0 + iu1 + ju2 + ku3 transformation r = u2 r = u u ¯eq. of motion u00 = hu + juj2fu u00 = hu kuk2fu I f is a perturbation vector I Original 2 2 real matrix formulation is possible for LC I Original 4 4 real matrix or 2 2 complex matrix (Pauli matrices) formulation is possible for KS
  • 21. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary A very accurate Hermite integrator (Accidentally) it turn out that the following symmetric corrector form ucorr =uold + 2 (u0 corr + u0 old) 2 12 (u00 new u00 old); u0 corr =u0 old + 2 (u00 new + u00 old) 2 12 (u000 new u000 old); (9) after P(EC)n convergence 5 of 6 orbital elements (except for the phase) conserve in machine accuracy. If you use another form for the position ucorr =uold + 2 (u0 corr + u0 old) 2 10 (u00 new u00 old) + 3 120 (u000 new + u000 old); (10) this property is lost.
  • 22. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary Why it works Consider a harmonic oscillator ¨x = !x, and let vi = ˙xi and fi = ¨xi. An analytical solution for one step t writes, !x1 v1 ! = cos!t sin!t sin!t cos!t ! !x0 v0 ! : (11) It is equivalent to v1 v0 x1 x0 ! = tan(!t=2) !t=2 ! t 2 f1 + f0 v1 + v0 ! : (12) A second order integrator approximates this as v1 v0 x1 x0 ! = t 2 f1 + f0 v1 + v0 ! : (13) The dierence is only a small factor on the stepsize t.
  • 23. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary Fourth- and sixth-order version The 4th-order Hermite integrator is equivalent to v1 v0 x1 x0 ! = *.. , 1 1 13 !t 2 2 +// - t 2 f1 + f0 v1 + v0 ! ; (14) and a 6th-order one v1 v0 x1 x0 ! = *.. , 1 1 15 !t 2 2 1 25 !t 2 2 +// - t 2 f1 + f0 v1 + v0 ! : (15) The factor to t is approaching to tan(!t=2) !t=2 ! , of exact solution. Phase error shared among 4 waves of KS ) 5 of 6 orbital elements conserve
  • 24. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary Phase correction If one likes to conserve also the phase, emphasize the step-size t. x1 =x0 + c2t 2 (v1 + v0); x1 =x0 + c4t 2 (v1 + v0) t2 12 (f1 f0); x1 =x0 + c6t 2 (v1 + v0) t2 10 (f1 f0) + c6t3 120 (˙f1 + ˙f0); (16) (so on the velocity), with c2 = tan ; c4 = tan 1 1 3 2 ! ; c6 = tan 1 25 2 1 1 15 2 ; (17) and = !t=2. Now the results agree with the analitic trigonometric functions in machine accuracy.
  • 25. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary Block stepping I Usually, fixed , 30 step/orbit is enough for weakly perturbed binary. I Then, real step t = Z + dt d d = Z + krkd, becomes a varying real (non-quantized) number. I This prevents parallelization, we hope t restricted to 2n (n 2 Z) (McMillan, 1986; Makino 1992).
  • 26. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary Truncation procedure From given natural step nat, we compute a truncated step bs ( nat) for which the corresponding step tbs = 2n obeys the block-step criterion. nat ! integrate tnat ! truncate tbs ! solve bs (18) We integrate tnat = X6 n=1 thni (nat)n n! ; thni = dn dn t ! : (19) After truncation tnat ! tbs, we solve bs from tbs + X6 n=1 thni (bs)n n! = 0; (20) by using of Newton–Raphson iterations (unique solution exists).
  • 27. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary Derivatives of physical time t I After a 4th-order Hermite integration, up to 3rd derivative of force (5th derivative of coordinate) is available I Up to 6th derivative of time is available t0 =u u; t00 =2(u u0); t000 =2(u u00 + u0 u0); th4i =2(u u000) + 6(u0 u00); th5i =2(u uh4i) + 8(u0 u000) + 6(u00 u00); th6i =2(u uh5i) + 10(u0 uh4i) + 20(u00 u000): (21) I tnext is explicitly available at the end of this step I Predictor only, no corrector is applied for t
  • 28. A block-step version of KS regularization Keigo Nitadori KS regularization Hermite integrator KS block-step Summary Summary I The block-step version of KS is working in Sverre’s code I Some Hermite integrators turned out to integrate harmonic oscillators very accurately with P(EC)n iterations I Regularization is not acrobatics, nor a black magic (at least for two-body).