[FLASH-USERS] visualizing polar coordinates

Djibrilla Boureima, Ismael idjibril at uncc.edu
Wed Jul 30 17:37:58 EDT 2014


Hello All,


In case you chose to try yt, the following could help:


from yt.mods import *


# Checkpoint file or plotfile location:

CkptFile_location = '/location/to/your/checkpoint/file/checkpoint_hdf5_plt_cnt_0000 '


#Variable to plot:

var='dens'


apf = load(CkptFile_location)

sl=SlicePlot(apf, 'phi',var)
sl.set_window_size(14)


# sl.set_center((0.0,19.0)) # 19.0 is my Xmax/2.0
#sl.zoom(2.0) # This will hep zoom-IN;  change the 2.0 to anything you like

sl.set_cmap(field="dens", cmap='jet') #Pcolor style
sl.set_buff_size(2000) # Image quality
sl.save() # or sl.show() if your on a ipython notebook


Best


Ismael

________________________________
From: flash-users-bounces at flash.uchicago.edu <flash-users-bounces at flash.uchicago.edu> on behalf of Sean Couch <smc at flash.uchicago.edu>
Sent: Wednesday, July 30, 2014 9:02 PM
To: Kevin Olson
Cc: flash
Subject: Re: [FLASH-USERS] visualizing polar coordinates

I highly recommend yt, but you can do this in VisIt by adding a "Transform" operator to your plot then setting the options for the operator to do a "Coordinate" transform.  I think you want to go from "polar" to "Cartesian" coordinates in the Transform.

Sean


--------------------------------------------------------
Sean M. Couch
Hubble Fellow
Flash Center for Computational Science
Department of Astronomy & Astrophysics
The University of Chicago
5747 S Ellis Ave, Jo 315
Chicago, IL  60637
(773) 702-3899
www.flash.uchicago.edu/~smc<http://www.flash.uchicago.edu/~smc>




On Jul 30, 2014, at 8:43 AM, Matthew Turk <matthewturk at gmail.com<mailto:matthewturk at gmail.com>> wrote:


Hi Kevin,

In version 3.0 of yt it should "just work" to visualize polar coordinates from flash.

Matt

On Jul 30, 2014 8:42 AM, "Kevin Olson" <Kevin.M.Olson at drexel.edu<mailto:Kevin.M.Olson at drexel.edu>> wrote:
Does anyone know how to visualize FLASH results with polar coordinate (r, phi) using either visit or yt ?

Kevin Olson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20140730/1789cee0/attachment-0001.htm>


More information about the flash-users mailing list