Hi Nathan,<br><br>This is just a guess, but do you really mean to be taking the square root of R cross V, at line 30? That quantity could potentially be negative, depending on the sense in which the fluid is spinning.<br><br>
-Andrew Myers<br><br><br><div class="gmail_quote">On Tue, Sep 6, 2011 at 5:54 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:goldbaum@ucolick.org" target="_blank">goldbaum@ucolick.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hello all,</div><div><br></div><div>Right now I'm trying to generate maps of the Toomre Q in an isolated galaxy simulation.  To do so, I'm using yt to generate maps of the gas column density as well as density-weighted projections of the sound speed and orbital frequency, which I'm using as a proxy for the epicyclic frequency.</div>

<div><br></div><div>Unfortunately, I'm having some trouble making projected maps of the orbital frequency.  I've defined two new derived fields, CylinderRadius and AngularVelocity (<a href="http://paste.yt-project.org/show/1784/" target="_blank">http://paste.yt-project.org/show/1784/</a>).</div>

<div><br></div><div>When I try to project the AngularVelocity field, I get what looks like garbage: <a href="http://i.imgur.com/PkYhe.png" target="_blank">http://i.imgur.com/PkYhe.png</a></div><div><br></div><div>However, slices work just fine: <a href="http://i.imgur.com/NnEbq.png" target="_blank">http://i.imgur.com/NnEbq.png</a></div>

<div><br></div><div>I've written the derived fields in a coordinate-dependent way, since I'll always be doing projections down a fixed axis.  Is that where my problem lies?  My understanding of how yt does projections is too shallow to figure out exactly what's going wrong here, so I'm hoping the collective wisdom of the yt developers and user base can come to the rescue.</div>

<div><br></div><div>Best regards,</div><div>
<div style="word-wrap:break-word"><div style="word-wrap:break-word"><div style="word-wrap:break-word">Nathan Goldbaum<font color="#888888"><br>Graduate Student<br>Astronomy & Astrophysics, UCSC<br><a href="mailto:goldbaum@ucolick.org" target="_blank">goldbaum@ucolick.org</a><br>

<a href="http://www.ucolick.org/%7Egoldbaum" target="_blank">http://www.ucolick.org/~goldbaum</a></font></div></div></div>
</div>
<br></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br>