[yt-dev] Parent and Children lists of AMRGridPatch

Erik Schnetter schnetter at gmail.com
Sat Nov 14 12:36:20 PST 2015


Matt

Thanks. Indeed, setting "Parent" to the list of parents is working fine.

Cactus vertex-centred data do not look nice, as the refinement level
interfaces are clearly visible.

I attach two plots, one for cell-centred AMR, the other for vertex-centred
AMR. Both show r, the radial coordinate, and were produced by

p = yt.SlicePlot(ds, "z", "GRID::r")
p.set_cmap(field="all", cmap="plasma")
p.set_log("all", False)
p.set_zlim("all", 0, 2)
p.save("GRID-r.png")

Both datasets have three levels 0,1,2, where level 1 covers (almost) all of
level 0, and level 2 ranges has approximate size [-20,20]^3.

-erik
[image: Inline image 1][image: Inline image 2]

On Sat, Nov 14, 2015 at 2:50 PM, Matthew Turk <matthewturk at gmail.com> wrote:

> Hi Erik,
>
> It uses these when masking overlapping regions.  It can also
> auto-detect these lists.  Boxlib also spans parents; you can see how
> it operates, as it does not split parent grids.
>
> On Sat, Nov 14, 2015 at 1:48 PM, Erik Schnetter <schnetter at gmail.com>
> wrote:
> > What do the Parent and Children lists for AMRGridPatch do in yt? I've
> set up
> > a grid structure without defining these entries, and things seem to be
> > working fine. Would yt automatically disable certain regions of the
> parents
> > if there are overlapping children?
> >
> > In Cactus's AMR structure, a refined grid does not have a single parent
> grid
> > -- it may overlap with multiple coarser grids. How do I tell yt about
> this?
> > Do I need to split the fine grids?
> >
> > -erik
> >
> > --
> > Erik Schnetter <schnetter at gmail.com>
> > http://www.perimeterinstitute.ca/personal/eschnetter/
> >
> > _______________________________________________
> > yt-dev mailing list
> > yt-dev at lists.spacepope.org
> > http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
> >
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>



-- 
Erik Schnetter <schnetter at gmail.com>
http://www.perimeterinstitute.ca/personal/eschnetter/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20151114/8e6a5b5a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GRID-r.cell.png
Type: image/png
Size: 37333 bytes
Desc: not available
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20151114/8e6a5b5a/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GRID-r.vertex.png
Type: image/png
Size: 42866 bytes
Desc: not available
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20151114/8e6a5b5a/attachment-0003.png>


More information about the yt-dev mailing list