Hi Katharina,

I don't have an example handy, but the "coordinates" and "connectivity" arguments are arrays you construct that describe the vertices and zones of the hexahedral mesh you want. The "coordinates" argument is supposed to be a (N_vertices, 3) - shaped array of floats that has the x, y, and z positions of all the vertices in the hexahedral mesh. The "connectivity" argument is a (N_zone, 8) - shaped array of ints that gives, for each zone, the indices of the 8 vertices that surround it. So for example, if connectivity[0][2] is '12', then coordinates[12] would give the position coordinate of the third vertex surrounding the first zone, if that makes sense.

Once you've constructed those arrays from the information in your dataset and fed them into "load_hexadral_mesh", yt shouldn't care whether the data came from an HDF5 file or not.

-Andrew

On Sun, May 24, 2015 at 11:46 AM, Katharina Wollenberg <kwollenberg89@gmail.com> wrote:
Hello together, 

for visualising a 3D disk from ZEUS-MP HDF5 data in yt, I need to load a single spherical polar coordinate grid where x1,x2,x3 are R,T,P and R has ratioed zones. For that I want to use the command yt.load_hexahedral_mesh(data, connectivity, coordinates, length_unit=None, ...) . However, since I am new to yt, I am a little bit stuck right now… 
I am not quite sure what is meant in detail by the arguments connectivity and coordinates and how to formulate them in the load_hexahedral_mesh command.

Furthermore, do I need to pay particular attention on some commands because of using HDF5 data?

If anyone has an example for me, that’d be very helpful! 

Thanks a lot!

Katharina Wollenberg



_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org