<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 20, 2016 at 10:58 AM, Slavin, Jonathan <span dir="ltr"><<a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:tahoma,sans-serif;font-size:small">Hi all,</div><div style="font-family:tahoma,sans-serif;font-size:small"><br></div><div style="font-family:tahoma,sans-serif;font-size:small">I have a simulation on a 3D cartesian grid and when trying to get surfaces of various types I keep getting the error message:</div><div style="font-family:tahoma,sans-serif;font-size:small"><br></div><div><div><div style="font-family:tahoma,sans-serif;font-size:small;display:inline">​"​</div>RuntimeError: Error: yt attempted to read outside the boundaries of a non-periodic domain along dimension 0.</div><div>Region left edge = -1.157125e+19 code_length, Region right edge = 1.7356875e+19 code_length</div><div>Dataset left edge = 0.0 code_length, Dataset right edge = 9.257e+19 code_length</div></div><div><br></div><div><div>This commonly happens when trying to compute ghost cells up to the domain boundary. Two possible solutions are to load a smaller region that does not border the edge or override the periodicity for this dataset.<div style="font-family:tahoma,sans-serif;font-size:small;display:inline">​"​</div></div></div><div><br></div><div><div style="font-family:tahoma,sans-serif;font-size:small">​​So, I don't think I should override the periodicity for the dataset, since it is decidedly not periodic.  I could load a smaller region, I suppose, but not without significant effort, since I really want to include the volume out to some radial distance from the lower left corner (0,0,0).  I would need to define some slightly smaller octant, I guess.  Anyway, shouldn't there be some way to specify to yt that it should calculate ghost zones via some given boundary condition?  That is, if it really even needs to use ghost zones (which I'm not sure why it does).</div></div></div></blockquote><div><br></div><div>Yes, it should be possible to fill in ghost zones at domain boundaries assuming some non-periodic boundary conditions, but it has not yet been implemented. Adding support for filling in ghost zones at non-periodic domain boundaries would be an excellent improvement. Right now myself and a number of others are working on improving support for particle codes, so that means improvements like this that would mostly benefit grid codes are not prioritized at the moment. It's definitely on our long-term roadmap, though. If you would like to work on improving the situation here (either by making contributions yourself or funding someone to do so) that would be awesome, and I would be happy to discuss design approaches.</div><div><br></div><div>The isocontour machinery does need access to ghost zones, since the isocontours are generated using data interpolated to the cell faces, so we need to generate ghost zones beyond the domain boundaries if you want to access vertex centered data at the domain boundary.</div><div><br></div><div>In practice, "faking" periodic boundary conditions does work ok for most use cases. I admit that relying on this has been a crutch that has allowed us to avoid fixing this issue, despite its perniciousness.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div><div style="font-family:tahoma,sans-serif;font-size:small">​Regards,</div><div style="font-family:tahoma,sans-serif;font-size:small">Jon​</div><span class="gmail-HOEnZb"><font color="#888888"><br></font></span></div><span class="gmail-HOEnZb"><font color="#888888">-- <br><div class="gmail-m_-6960023547581266037gmail_signature"><div dir="ltr"><div><div dir="ltr">______________________________<wbr>__________________________<br>Jonathan D. Slavin                 Harvard-Smithsonian CfA<br><a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a>       60 Garden Street, MS 83<br>phone: <a href="tel:%28617%29%20496-7981" value="+16174967981" target="_blank">(617) 496-7981</a>       Cambridge, MA 02138-1516<br>cell: <a href="tel:%28781%29%20363-0035" value="+17813630035" target="_blank">(781) 363-0035</a>             USA<br>______________________________<wbr>__________________________<br><br></div></div></div></div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br></blockquote></div><br></div></div>