<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Raelifin.com &#187; kepler</title>
	<atom:link href="http://raelifin.com/tag/kepler/feed/" rel="self" type="application/rss+xml" />
	<link>http://raelifin.com</link>
	<description>Deus ex Machina</description>
	<lastBuildDate>Tue, 31 Jan 2012 22:03:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Gravitation</title>
		<link>http://raelifin.com/code/gravitation/</link>
		<comments>http://raelifin.com/code/gravitation/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 22:04:11 +0000</pubDate>
		<dc:creator>Raelifin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[gravity]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[kepler]]></category>
		<category><![CDATA[newton]]></category>
		<category><![CDATA[physics]]></category>
		<category><![CDATA[simulation]]></category>

		<guid isPermaLink="false">http://raelifin.com/?p=161</guid>
		<description><![CDATA[One weekend, about a month ago, I threw together a quick simulation of the solar system because I was studying gravitation in school. Since I have some time now I went back and polished it to allow user interaction and remove various glitches. It&#8217;s still quite crude, but I&#8217;m done dealing with it, so I [...]]]></description>
			<content:encoded><![CDATA[<p><a style="float: right; margin: 0px 0px 5px 5px;" href="http://raelifin.com/files/sol.png"><img src="http://raelifin.com/files/sol.png" alt="Sol" height="200" /></a>One weekend, about a month ago, I threw together a quick simulation of the solar system because I was studying gravitation in school. Since I have some time now I went back and polished it to allow user interaction and remove various glitches. It&#8217;s still quite crude, but I&#8217;m done dealing with it, so I figured that I&#8217;d throw it up here. One of the coolest things it does (IMO) is show the paths of the planets from a non-heliocentric viewpoint. </p>
<p><span id="more-161"></span></p>
<p>Everything (code and images) is public domain. Credit is nice, but not necessary. <a href="http://raelifin.com/files/kepler.zip">Download code (and runnable jar) here.</a> Created using <a href="http://slick.cokeandcode.com/">Slick</a> (Build #266) with <a href="http://lwjgl.org/">LWJGL</a> (2.0b1).</p>
<p><a href="http://raelifin.com/files/kepler.png"><img style="margin-bottom: 0px" src="http://raelifin.com/files/kepler.png" alt="Geocentric Perspective" title="Geocentric" width="300" height="186"/></a><br />
A Geocentric View of the Universe.</p>
<p><a href="http://raelifin.com/files/kepler2.png"><img style="margin-bottom: 0px" src="http://raelifin.com/files/kepler2.png" alt="Geocentric Perspective 2" title="Geocentric2" width="300" height="186"/></a><br />
Another Geocentric Perspective.</p>
<p><a href="http://raelifin.com/files/jupiter.png"><img style="margin-bottom: 0px" src="http://raelifin.com/files/jupiter.png" alt="Jupiter Perspective" title="Jupiter" width="300" height="186"/></a><br />
View from Jupiter.</p>
<p>Oh, and I almost forgot! One of the other neat things I did with the simulation was &#8220;experimentally&#8221; measure the speeds of the planets (except Neptune). I looked up average orbital distances and the mass of the sun on Wikipedia and then tweaked the initial velocity of each planet until the orbit looked roughly circular. I did this mostly out of laziness, but I was shocked at how close I had gotten to the real values.</p>
<table>
<tr>
<th></th>
<th>Estimated Speed <small>(km/s)</small></th>
<th>Observed Speed (Average) <small>(km/s)</small></th>
</tr>
<tr>
<th>Mercury</th>
<td>48</td>
<td>47.87</td>
</tr>
<tr>
<th>Venus</th>
<td>34.5</td>
<td>35.02</td>
</tr>
<tr>
<th>Earth</th>
<td>29.5</td>
<td>29.783</td>
</tr>
<tr>
<th>Moon</th>
<td>30.5</td>
<td>30.805<br/><small>= 29.783 (earth) + 1.022 (relative speed of luna)</small></td>
</tr>
<tr>
<th>Mars</th>
<td>24</td>
<td>24.077</td>
</tr>
<tr>
<th>Jupiter</th>
<td>13</td>
<td>13.07</td>
</tr>
<tr>
<th>Saturn</th>
<td>9.5</td>
<td>9.69</td>
</tr>
<tr>
<th>Uranus</th>
<td>6.8</td>
<td>6.81</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://raelifin.com/code/gravitation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

