[yt-users] velocity vectors on a projection

Mike Butler mbutler.astro at gmail.com
Tue Feb 4 04:11:31 PST 2014


Hi Andrew,

Thanks a lot - I got it working now.

-Mike


On Tue, Feb 4, 2014 at 12:40 PM, Andrew Myers <atmyers2 at gmail.com> wrote:

> Hi Mike,
>
> I think that annotate_velocity should work for axis-aligned slices and
> projections. If you're doing off-axis, then the velocity and magnetic field
> callbacks don't work out of the box (last time I checked anyway), but it's
> still possible to use yt to compute the velocity vectors and manually add
> them to your projection via matplotlib's quiver command. Here<http://paste.yt-project.org/show/4272/>is a script I wrote that does this for the magnetic field. In the image it
> produces, the colorscale shows the density-weighted temperature projection
> and the arrows show the density-weighted mean magnetic field vectors.
>
> Hope this helps,
> Andrew
>
>
> On Tue, Feb 4, 2014 at 12:42 AM, Mike Butler <mbutler.astro at gmail.com>wrote:
>
>> Hello,
>>
>> I was wondering if there is any way in yt to display the weighted average
>> velocity vectors onto a mass-weighted density projection of a small region
>> from one of my Enzo simulations.  As far as I can tell, annotate_velocity
>> only works on slices.  Is there some other way to do it?
>>
>> Thanks,
>>
>> Mike
>>
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140204/f1bf46ed/attachment.htm>


More information about the yt-users mailing list