FLASH polar coordinates support
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 yt2.7 and yt3.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? Thanks, Miguel
Hi Miguel, On Wed, Feb 19, 2014 at 10:34 AM, Miguel de ValBorro <miguel.deval@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 yt2.7 and yt3.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. I'm traveling right now and will have limited access to email, but I have coincidentally allotted a good amount of time next week to this exact type of plotting and analysis. Matt
Thanks, Miguel
_______________________________________________ ytusers mailing list ytusers@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/ytusersspacepope.org
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 ValBorro <miguel.deval@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 yt2.7 and yt3.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 yt3.0 branch? Best, Miguel
Hi Miguel, On Sat, Mar 1, 2014 at 7:58 PM, Miguel de ValBorro <miguel.deval@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 ValBorro <miguel.deval@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 yt2.7 and yt3.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 yt3.0 branch?
Yup. I think it actually should be there already. Matt
Best, Miguel _______________________________________________ ytusers mailing list ytusers@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/ytusersspacepope.org
participants (2)

Matthew Turk

Miguel de ValBorro