<?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; physics</title>
	<atom:link href="http://raelifin.com/tag/physics/feed/" rel="self" type="application/rss+xml" />
	<link>http://raelifin.com</link>
	<description>Deus ex Machina</description>
	<lastBuildDate>Sun, 04 Jul 2010 01:45:59 +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>
		<item>
		<title>Playing with Physics</title>
		<link>http://raelifin.com/code/wall-ball-physics/</link>
		<comments>http://raelifin.com/code/wall-ball-physics/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 22:18:22 +0000</pubDate>
		<dc:creator>Raelifin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[physics]]></category>

		<guid isPermaLink="false">http://raelifin.com/?p=147</guid>
		<description><![CDATA[This weekend, as a side project, I did some modeling of physics concepts I&#8217;ve been studying in class. Specifically, conservation of momentum of a system, how the motion of particles can be summed into macroscopic bodies, how forces move through solids in waves, and how quantity of matter (mass) has an impact on acceleration. This [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://raelifin.com/files/ballwall.png"><img src="http://raelifin.com/files/ballwall.png" alt="Graph of a ball hitting a wall" style="float: right; height: 350px; margin-left: 10px; margin-bottom: 5px"/></a>This weekend, as a side project, I did some modeling of physics concepts I&#8217;ve been studying in class. Specifically, conservation of momentum of a system, how the motion of particles can be summed into macroscopic bodies, how forces move through solids in waves, and how quantity of matter (mass) has an impact on acceleration. This is just me playing around, but I thought some people might enjoy seeing what I&#8217;m up to.</p>
<p>I&#8217;m releasing all the code into the public domain <a href="http://raelifin.com/files/ballwall.html">here</a>. Everything is HTML5/javascript (view source to get it), and you&#8217;ll need a decent browser (not IE!) for it to work. There&#8217;s no user interface, so if you want to change variables or play with it yourself you&#8217;ll have to edit the source.</p>
]]></content:encoded>
			<wfw:commentRss>http://raelifin.com/code/wall-ball-physics/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
