<?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>barrywardell.net</title>
	<atom:link href="http://www.barrywardell.net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.barrywardell.net</link>
	<description>Barry Wardell&#039;s site</description>
	<lastBuildDate>Tue, 24 Apr 2012 13:38:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Installing GRTensor on Mac OSX</title>
		<link>http://www.barrywardell.net/research/installing-grtensor-on-mac-osx</link>
		<comments>http://www.barrywardell.net/research/installing-grtensor-on-mac-osx#comments</comments>
		<pubDate>Sun, 17 Aug 2008 13:05:21 +0000</pubDate>
		<dc:creator>barry</dc:creator>
				<category><![CDATA[Research]]></category>

		<guid isPermaLink="false">http://www.barrywardell.net/?p=53</guid>
		<description><![CDATA[GRTensor is a very handy Maple package for doing calculations in General Relativity. Given a specific metric, it&#8217;s great at calculating the components of tensors. You can define your own tensors or use the predefined ones. You can even define &#8230; <a href="http://www.barrywardell.net/research/installing-grtensor-on-mac-osx">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a title="GRTensor homepage" href="http://www.grtensor.org">GRTensor</a> is a very handy Maple package for doing calculations in General Relativity. Given a specific metric, it&#8217;s great at calculating the components of tensors. You can define your own tensors or use the predefined ones. You can even define your own metrics.</p>
<p>The install instructions in the Readme file are fairly good if you&#8217;re a Windows or Linux user. As is often the case, however, there are one or two catches when installing on Mac OS X. With that in mind, the following instructions should help with the installation:<span id="more-53"></span></p>
<ol>
<li>Download GRTensor from from their <a href="http://www.grtensor.org">website</a> to your Desktop. For any recent version (since 6) of Maple and Mac OSX, you want the version &#8220;GRTensorII 1.79 for maple 6, 7, 8 (32 and 64 bit machines PCs Macs and UNIX boxes)(with metric files, examples, html help system)&#8221;</li>
<li>If it doesn&#8217;t get unzipped automatically, double click the <code>grii-1.79.tar.gz</code> file on the desktop and it should create a folder called <code>grii</code></li>
<li>Open the Terminal application and change to the grii directory with the command:
<pre>cd Desktop/grii</pre>
</li>
<li>Still in the terminal, run the GRTensor installer as root:
<pre>sudo ./Install.unix</pre>
</li>
<li>Again in the terminal, copy the <code>mapleinit</code> file to your home directory:
<pre>cp /usr/local/grii/mapleinit.sample ~/.mapleinit</pre>
</li>
<li>Quit Maple if it&#8217;s running and start it up again.</li>
<li>When you want to load grtensor, just type <code>grtw();</code> into Maple and hit <code>enter</code>. You can load metrics with <code>qload(schw);</code> for Schwarzschild for example.</li>
<li>You can now safely delete the <code>grii</code> directory and file from your desktop.</li>
</ol>
<p>If you have problems with loading the metric, have a look at <a href="research/articles/grtensor-metrics-and-osx">this article</a> and hopefully that will fix them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barrywardell.net/research/installing-grtensor-on-mac-osx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GRTensor: Metrics and Mac OS X</title>
		<link>http://www.barrywardell.net/research/grtensormetricsandosx</link>
		<comments>http://www.barrywardell.net/research/grtensormetricsandosx#comments</comments>
		<pubDate>Sun, 17 Aug 2008 00:06:07 +0000</pubDate>
		<dc:creator>barry</dc:creator>
				<category><![CDATA[Research]]></category>

		<guid isPermaLink="false">http://www.barrywardell.net/?p=38</guid>
		<description><![CDATA[GRTensor is a very handy Maple package for doing calculations in General Relativity. Given a specific metric, it&#8217;s great at calculating the components of tensors. You can define your own tensors or use the predefined ones. You can even define &#8230; <a href="http://www.barrywardell.net/research/grtensormetricsandosx">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a title="GRTensor" href="http://www.grtensor.org">GRTensor</a> is a very handy Maple package for doing calculations in General Relativity. Given a specific metric, it&#8217;s great at calculating the components of tensors. You can define your own tensors or use the predefined ones. You can even define your own metrics.</p>
<p>Unfortunately, getting it working on Mac OS X is a bit of a pain. This is due to a bug in GRTensor that has gone unfixed for quite a while. Fortunately, there is a straightforwarde solution.<span id="more-38"></span>The bug is triggered whenever you try to load a metric, which is usually the first thing you would do in a GRTensor session. When you do so, you are presented with the following error:</p>
<pre><span style="color: #ff0000;">&gt; qload(schw2);</span>
<span style="color: #0000ff;">Warning: grOptionMetricPath has not been assigned.</span>
<span style="color: #ff00ff;">Error, (in qload) Could not find metric schw2</span></pre>
<p>This error is telling us that GRTensor isn&#8217;t able to find the <code>schw</code> metric, even though we know it is present in the <code>metrics</code> directory. The problem seems to arise from the way GRTensor deals with path separators on the Mac. Historically, Mac OS used the colon as a path separator but, since OSX, it uses the more unix-like slash. GRTensor appears to be trying to use the old, pre-OSX colon system, so it mistakenly searches for <code>metrics:schw</code>, which it obviously can&#8217;t find.</p>
<p>The solution is fairly straightforward &#8211; since GRTensor is looking for the file <code>metrics:schw.mpl</code>, all we need to do is make sure our file is named as such and GRTensor will be able to find it (Note that the file must also reside in the directory GRTensor is installed in, not the metrics subdirectory). This rule is also valid for any other metric files you create &#8211; their names must all be prefixed with <code>metrics:</code>. Unfortunately, OSX is a bit awkward about naming things with colons in them, so it&#8217;s usually easiest to rename the files using the command line.</p>
<p>Now, quite a few metrics come bundled with GRTensor, so renaming them all manually is quite time consuming. It&#8217;s easiest to use a simple bash script such as <a href="/files/fixmetrics.sh">this one</a> to do it automatically. Just download this script and place it in the directory where GRTensor is installed (probably <code>/usr/local/grii/</code>). Make sure it&#8217;s executable and run it. On the command line, you could do so using the commands (assuming you downloaded the file to your desktop and GRTensor is in the default install location of <code>/usr/local/grii/</code>):</p>
<pre>$ sudo cp ~/Desktop/fixmetrics.sh /usr/local/grii/
$ cd /usr/local/grii/
$ chmod +x fixmetrics.sh
$ ./fixmetrics.sh</pre>
<p>You should now be able to load all your metrics in GRTensor without any problems:</p>
<pre><span style="color: #ff0000;">&gt; qload(schw2);</span>
<span style="color: #0000ff;">Calculated ds for schw (0.000000 sec.)
                         Default spacetime = schw
                         For the schw spacetime:
                               Coordinates
                                  x(up)
                           a
                         x   = [r, theta, phi, t]
                               Line element
          2
  2    d r       2         2     2           2       2    /     2 m\     2
ds  = ------- + r   d theta   + r  sin(theta)   d phi   + |-1 + ---|  d t
          2 m                                             \      r /
      1 - ---
           r
            The Schwarzschild metric in curvature coordinates</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.barrywardell.net/research/grtensormetricsandosx/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

