[yt-users] Vorticity field with FLASH

Matthew Turk matthewturk at gmail.com
Fri Aug 21 08:07:55 PDT 2015


Hi Markus,

Is this a 2D dataset?

-Matt

On Fri, Aug 21, 2015 at 7:11 AM, Markus Haider <markus.haider at uibk.ac.at>
wrote:

> Hi,
>
> I was trying to calculate the vorticity for a flash dataset. I selected a
> region using
>
> center =
> (ad.quantities.min_location('gpot')[2],ad.quantities.min_location('gpot')[3],ad.quantities.min_location('gpot')[4])
>
> LE = center-width.in_units('code_length')/2.
>
> CN = int(width/dx)
>
> Roi = ds.covering_grid(level=level_max,left_edge=LE, dims=[CN,CN,CN])
>
>
> Then, for this region I wanted to compute the vorticity using
>
> Roi["gas","vorticity_x"]
>
>
> This resulted in the following error:
>
> http://paste.yt-project.org/show/5824/
>
> Thanks for your help,
>
> Cheers,
> Markus
> _______________________________________________
> 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/20150821/e4a35a00/attachment.html>


More information about the yt-users mailing list