{"id":111,"date":"2014-12-23T10:11:39","date_gmt":"2014-12-23T10:11:39","guid":{"rendered":"http:\/\/nbodyphysics.com\/blog\/?p=111"},"modified":"2015-03-06T12:39:55","modified_gmt":"2015-03-06T12:39:55","slug":"threebody-can-gravity-keep-it-all-together","status":"publish","type":"post","link":"https:\/\/nbodyphysics.com\/blog\/threebody-can-gravity-keep-it-all-together\/","title":{"rendered":"ThreeBody &#8211; Can Gravity &#8220;keep it all together&#8221;?"},"content":{"rendered":"<p>I have returned to N-body, my first mobile effort , with the goal of making it cross -platform and adding new ideas. Given all my recent positive experiences with the Unity game engine the idea is to port as much as possible and avoid &#8220;<em>the rewrite&#8221;<\/em>. (This has a very tempestuous history in software and is one of the things Joel Spolsky thinks you should <a title=\"Things you should never do\" href=\"http:\/\/www.joelonsoftware.com\/articles\/fog0000000069.html\">never do<\/a>.)<\/p>\n<p>The good news for the small community who have enjoyed N-body\u00a0is that moving it to Unity is going quite well, and I am FULL of cool ideas I want to add: gravitational fields for non-spherical objects, galactic potentials, dust accretion &#8211; it&#8217;s almost endless. The bad news is that I read a great Sci-Fi novel &#8220;The Three-Body Problem&#8221; by one of China&#8217;s top sci-fi writers, and this has caused me to set aside Nbody for awhile. &#8220;The Three Body Problem&#8221; reminded me of the non Sci-Fi book with the same title\u00a0(you could see how that would happen).\u00a0One of the things I made a note of when I read the more academic of these books was the static three body problem. The question is: can three bodies be placed in initial conditions with zero velocity such that they will stay in a bound configuration? Would you expect that since gravity is attractive they would &#8220;keep together&#8221;, perhaps with some cool triple orbits?<\/p>\n<p><a href=\"http:\/\/www.amazon.com\/gp\/product\/0765377063\/ref=as_li_tl?ie=UTF8&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0765377063&amp;linkCode=as2&amp;tag=nbodphys-20&amp;linkId=USX4JAZTJODSF2E7\"><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"http:\/\/ws-na.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=0765377063&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=US&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=nbodphys-20\" alt=\"\" width=\"197\" height=\"297\" border=\"0\" \/><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border: none !important; margin: 0px !important;\" src=\"http:\/\/ir-na.amazon-adsystem.com\/e\/ir?t=nbodphys-20&amp;l=as2&amp;o=1&amp;a=0765377063\" alt=\"\" width=\"1\" height=\"1\" border=\"0\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignright\" src=\"http:\/\/ws-na.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=0521852242&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=US&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=nbodphys-20\" alt=\"\" width=\"200\" height=\"299\" border=\"0\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"border: none !important; margin: 0px !important;\" src=\"http:\/\/ir-na.amazon-adsystem.com\/e\/ir?t=nbodphys-20&amp;l=as2&amp;o=1&amp;a=0521852242\" alt=\"\" width=\"1\" height=\"1\" border=\"0\" \/>As I was reading the sci-fi 3BP I was feeling like I needed a break from\u00a0NBody\u00a0and figured I&#8217;d try a quick mock up of the static three body problem in Unity. As I get more kung-fu with Unity (and using the leap frog integrator I had ported for Nbody) this kind of side project becomes very do-able. I spent an afternoon doing the basics and found that there was a nice little physics &#8220;time waster&#8221; game here.<\/p>\n<p>Shortly after, during my usual lunch time perusal of arxiv, I found a paper about <a href=\"http:\/\/arxiv.org\/pdf\/1411.5234.pdf\">using GPUs<\/a>\u00a0for N-body simulations which mentioned replacing the three bodies with three binaries. Another addition for the ThreeBody app.<\/p>\n<div style=\"width: 625px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-111-1\" width=\"625\" height=\"352\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"http:\/\/nbodyphysics.com\/blog\/wp-content\/uploads\/2014\/12\/threebody.mp4?_=1\" \/><a href=\"http:\/\/nbodyphysics.com\/blog\/wp-content\/uploads\/2014\/12\/threebody.mp4\">http:\/\/nbodyphysics.com\/blog\/wp-content\/uploads\/2014\/12\/threebody.mp4<\/a><\/video><\/div>\n<p>This was all about a month ago and since then I have added the minimum of &#8220;gamification&#8221; so others can take a swing at this problem on their mobile devices. It is weirdly addictive and a good way to see how sensitive the problem is to initial conditions. Hope someone out there also finds it fun.<\/p>\n<p>You can find ThreeBody for Android and Blackberry (coming soon to \u00a0Amazon and iOS). There is some <a href=\"http:\/\/nbodyphysics.com\/blog\/threebody-2\">further technical detail<\/a>.<\/p>\n<p>[social4i size=&#8221;large&#8221; align=&#8221;float-right&#8221;]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have returned to N-body, my first mobile effort , with the goal of making it cross -platform and adding new ideas. Given all my recent positive experiences with the Unity game engine the idea is to port as much as possible and avoid &#8220;the rewrite&#8221;. (This has a very tempestuous history in software and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[2],"tags":[],"class_list":["post-111","post","type-post","status-publish","format-standard","hentry","category-gravity"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3pCRa-1N","_links":{"self":[{"href":"https:\/\/nbodyphysics.com\/blog\/wp-json\/wp\/v2\/posts\/111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nbodyphysics.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nbodyphysics.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nbodyphysics.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nbodyphysics.com\/blog\/wp-json\/wp\/v2\/comments?post=111"}],"version-history":[{"count":19,"href":"https:\/\/nbodyphysics.com\/blog\/wp-json\/wp\/v2\/posts\/111\/revisions"}],"predecessor-version":[{"id":180,"href":"https:\/\/nbodyphysics.com\/blog\/wp-json\/wp\/v2\/posts\/111\/revisions\/180"}],"wp:attachment":[{"href":"https:\/\/nbodyphysics.com\/blog\/wp-json\/wp\/v2\/media?parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nbodyphysics.com\/blog\/wp-json\/wp\/v2\/categories?post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nbodyphysics.com\/blog\/wp-json\/wp\/v2\/tags?post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}