Reading a point mesh with xdmf #5936
-
|
Hey, Now, I want to read in the same thing in hdf5 format using a xdmf file as described in the manual of visit. The hdf5 file is structured in a way that it has x, y, and z-coordinates in separate entries. Furthermore it contains some values in an additional entry. My problem is that there does not really seem to exist a TopologyType for this (or at least I don't understand which one I should take for a simple point mesh). The file that I used (which does not work properly) is: Originally, I wanted to read a file which has the coordinates in a shape of (time_dim,coord_dim), where time_dim is the time dimension and coord_dim the number of points. However, I already failed with the simple example outlined above. I'm sorry about this rather stupid question... I would be really happy about any answer! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
You would need to use the "Polyvertex" topology type. Here is an example file. The "Indexes" array in the HDF5 file would be an array of 7161 integers going from 0 to 7160. Note that I am using interleaved coordinates in my example. I am not 100% sure that having them in separate arrays will work. You can give it a try and if it doesn't work, switch to the interleaved version. |
Beta Was this translation helpful? Give feedback.
You would need to use the "Polyvertex" topology type. Here is an example file.