[yt-users] covering_grid question

Matthew Turk matthewturk at gmail.com
Tue Jun 7 15:59:34 PDT 2011


Hi Elizabeth,

yt ignores right_edge and only uses level, left_edge and dims.

-Matt

On Tue, Jun 7, 2011 at 3:04 PM, Elizabeth Tasker <taskere at mcmaster.ca> wrote:
> Hi all,
>
> When I extract a patch of my simulation as a uniform mesh using covering_grid, what happens if the arguments are incompatible? For example:
>
>
> cubit = pf.h.covering_grid(4,
>                               left_edge=extract_leftedge,
>                               right_edge=extract_rightedge,
>                               dims=extract_dims,
>                               fields=["PotentialField"])
>
> If I specify both the left and right edge, then the dimensions of the extracted region and the required level of the extraction are not independent. So I could ask for dimensions that are larger or smaller than a grid of that size at that level; does the code extract to the desired level and then interpolate, or does it ignore one of the settings?
>
> Also, am I good to assume that left and right edge do not need to be exactly on a grid boundary, but yt will shift them slightly so they fit?
>
> Thank you!
>
> Elizabeth
> _______________________________________________
> 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