<div dir="ltr">Hi Matt and Jonah,<div><br></div><div>    I think I can use load_hexahedral_mesh to load data from each mesh block. But it cannot use three arrays (xgrid, ygrid, zgrid) to define the whole mesh due to mesh refinement. I guess I can create a dict to collect the data from each mesh block, as in load_amr_grids (but not the same). The question is will such a data structure (a dict of hexahedral_mesh) be recognized by yt? </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 30, 2016 at 6:01 PM, Jonah Miller <span dir="ltr"><<a href="mailto:jonah.maxwell.miller@gmail.com" target="_blank">jonah.maxwell.miller@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Yanfei,<br>
<br>
To add to Matt's comment. Here is the documentation for using load_hexahedral_mesh.<br>
<a href="http://yt-project.org/doc/examining/loading_data.html#semi-structured-grid-data" rel="noreferrer" target="_blank">http://yt-project.org/doc/examining/loading_data.html#semi-structured-grid-data</a><br>
<a href="http://yt-project.org/doc/reference/api/generated/yt.frontends.stream.data_structures.load_hexahedral_mesh.html" rel="noreferrer" target="_blank">http://yt-project.org/doc/reference/api/generated/yt.frontends.stream.data_structures.load_hexahedral_mesh.html</a><br>
<br>
Best,<br>
Jonah<div class="HOEnZb"><div class="h5"><br>
<br>
On 16-03-30 05:15 PM, Matthew Turk wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Yanfei,<br>
<br>
This is possible -- but it will also slow some things down.  You can<br>
use the load_hexahedral_mesh function, and there're examples of this.<br>
This takes away some of the optimizations that regular grids can do,<br>
but we're hoping to add them back in shortly.  Like the other<br>
functions it too takes a geometry argument.<br>
<br>
-Matt<br>
<br>
On Wed, Mar 30, 2016 at 2:49 PM, Jiang, Yanfei<br>
<<a href="mailto:yanfei.jiang@cfa.harvard.edu" target="_blank">yanfei.jiang@cfa.harvard.edu</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Jonah,<br>
<br>
    I am able to load the data to yt now using load_amr_grids(). I notice<br>
that it can also set geometry to spherical. This is great. But to make life<br>
more complicate. Is it possible to let yt know that the grid is logarithmic?<br>
Currently, load_amr_grids() just take left and right edges of each block. I<br>
guess yt assumes the grid is uniform between left and right edges. Is it<br>
possible to provide arrays of coordinate values for each cell in each block?<br>
<br>
Thanks.<br>
<br>
On Tue, Mar 29, 2016 at 6:58 PM, Jonah Miller<br>
<<a href="mailto:jonah.maxwell.miller@gmail.com" target="_blank">jonah.maxwell.miller@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Yan-Feng,<br>
<br>
I haven't tried it, but I think there is functionality for this. You can<br>
use the load_amr_grids() function which can load amr data in Cartesian,<br>
spherical, or polar coordinates. Here's the documentation:<br>
<br>
<br>
<a href="http://yt-project.org/doc/examining/generic_array_data.html#loading-numpy-array" rel="noreferrer" target="_blank">http://yt-project.org/doc/examining/generic_array_data.html#loading-numpy-array</a><br>
<br>
<br>
<a href="http://yt-project.org/doc/reference/api/generated/yt.frontends.stream.data_structures.load_amr_grids.html#yt.frontends.stream.data_structures.load_amr_grids" rel="noreferrer" target="_blank">http://yt-project.org/doc/reference/api/generated/yt.frontends.stream.data_structures.load_amr_grids.html#yt.frontends.stream.data_structures.load_amr_grids</a><br>
<br>
Best,<br>
Jonah<br>
<br>
On Tue, Mar 29, 2016, 6:35 PM Jiang, Yanfei <<a href="mailto:yanfei.jiang@cfa.harvard.edu" target="_blank">yanfei.jiang@cfa.harvard.edu</a>><br>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
          I have some data from a new version of Athena simulations. It is<br>
in spherical polar coordinate with mesh refinement written in HDF5. The data<br>
structure is similar to flash data but not the same. Does anyone have<br>
suggestions to load such data to yt directly?<br>
<br>
Thank you.<br>
--<br>
Yan-Fei Jiang<br>
<br>
Einstein Fellow<br>
Harvard-Smithsonian Center for Astrophysics<br>
60 Garden Street, Cambridge MA USA 02138<br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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/listinfo.cgi/yt-users-spacepope.org</a><br>
<br>
</blockquote>
<br>
<br>
--<br>
Yan-Fei Jiang<br>
<br>
Einstein Fellow<br>
Harvard-Smithsonian Center for Astrophysics<br>
60 Garden Street, Cambridge MA USA 02138<br>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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/listinfo.cgi/yt-users-spacepope.org</a><br>
<br>
</blockquote>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Yan-Fei Jiang<div><br><div>Einstein Fellow</div><div>Harvard-Smithsonian Center for Astrophysics</div><div>60 Garden Street, Cambridge MA USA 02138</div><div></div></div></div></div>
</div>