[yt-users] How yt deals with AMR grids and data objects

k.grisdale at surrey.ac.uk k.grisdale at surrey.ac.uk
Mon Dec 16 07:23:15 PST 2013


Dear yt-users

I am attempting to make a tool that will sample the properties of a RAMSES galactic disk simulation. The tools needs to be able to work on different scales going from very large (10kpc) to the very small (2x the size of the smallest cell ~140pc). So far I have achieved this using data objects and calling required property/Quantities that I need. On large scales this works very well, however on small scales I have run into the issue that only part of cells are within in my data object. While this is to be expected it is presenting so interesting results. From what I can tell if the centre of the cell is in my data object yt treats the cell as if the whole cell is within my data object but if the centre is missed it treats it as if the whole cell is absent from the data object, I’m looking for a median between these extremes.

My question is is there a way to get yt to only take into account the proportion of the cell in side my data object? 

Also if the cell only has small corner in my data object is there away to get yt to fetch the properties of that cell (say the density and cell volume) and then multiply these values by the proportion of the cell that is in my object?

Thank you in advance for you help

Kearn



More information about the yt-users mailing list