[yt-users] FLASH polar coordinates support

Matthew Turk matthewturk at gmail.com
Mon Mar 3 03:46:30 PST 2014


Hi Miguel,

On Sat, Mar 1, 2014 at 7:58 PM, Miguel de Val-Borro
<miguel.deval at gmail.com> wrote:
> Hi Matt,
>
> On Thu, Feb 20, 2014 at 06:05:38AM -0800, Matthew Turk wrote:
>> On Wed, Feb 19, 2014 at 10:34 AM, Miguel de Val-Borro
>> <miguel.deval at gmail.com> wrote:
>> > Hello,
>> >
>> > I have tried to plot the results of 2D FLASH simulation using the
>> > SlicePlot function and got the attached images using the development
>> > versions of yt-2.7 and yt-3.0.  It looks like the range in the radial
>> > coordinate and the labels are not correct.  Also I would like to
>> > transform to a Cartesian coordinate system, is this possible for FLASH
>> > 2D polar data?
>>
>> For the range, can you try specifying the keyword "origin" when
>> creating the SlicePlot?  Otherwise it will default to centering.  For
>> the transformation, this is possible, and yt can also slice along the
>> axis such that it produces circular images.  The support for that is
>> somewhat early, but it should work if you utilize the to_frb function
>> rather than a SlicePlot.
>
> Thank you for the indications. I have tried to use the to_frb function
> on a slice using the current development version of the yt branch but
> could not get the conversion from polar to Cartesian coordinates. Is
> this functionality being implemented in the yt-3.0 branch?
>

Yup.  I think it actually should be there already.

-Matt

> Best,
> Miguel
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org



More information about the yt-users mailing list