[vtkusers] Fwd: XDMF and hyperslabs

victor sv victorsv at gmail.com
Wed Aug 19 12:03:12 EDT 2015


Thanks Dan,

it was an error in the XDMF file and it seems that is a valid format for
Xdmf2. I comment the error between lines below.

In a post that I sent to XDMF mailing list they say me that Xdmf3 is not by
default in Paraview and I have to compile the sources with the correct
options enabling Xdmf3.

My problem with the versions is that the XDMF documentation and library
versions is not "synchronized". It seems that Kitware is who is developing
Xdmf3, but there isn't an stand-alone library, it only exists inside VTK
project. I'm right?

Thanks again,
Víctor.


2015-08-18 4:09 GMT+02:00 Dan Lipsa <dan.lipsa at kitware.com>:

> There are (advanced) options to enable either xdmf2 or xdmf3 in VTK.
>
> On Fri, Aug 14, 2015 at 6:27 AM, victor sv <victorsv at gmail.com> wrote:
>
>>
>> ---------- Forwarded message ----------
>> From: victor sv <victorsv at gmail.com>
>> Date: 2015-08-14 12:25 GMT+02:00
>> Subject: XDMF and hyperslabs
>> To: vtkdev <vtk-developers at vtk.org>, vtk-users at vtk.org, "
>> paraview at paraview.org" <paraview at paraview.org>
>>
>>
>> Hello all,
>>
>> I'm trying to create and visualize an XDMF/HDF5 file containing a
>> partitioned mesh using hyperslabs.
>>
>> Is this supported by Paraview/VTK ??
>>
>> The HDF5 (solution1.h5) looks as follows:
>>
>> GROUP "/" {
>>    GROUP "Grid" {
>>       DATASET "Connectivities" {
>>          DATATYPE  H5T_STD_I32BE
>>          DATASPACE  SIMPLE { ( 18 ) / ( 18 ) }
>>          DATA {
>>          (0): 0, 1, 2, 3, 2, 1, 4, 5, 6, 7, 6, 5, 6, 7, 8, 9, 8, 7
>>          }
>>       }
>>       DATASET "Coordinates" {
>>          DATATYPE  H5T_IEEE_F64BE
>>          DATASPACE  SIMPLE { ( 20 ) / ( 20 ) }
>>          DATA {
>>          (0): 0, 0, 1, 0, 0, 0.5, 1, 0.5, 0, 0.5, 1, 0.5, 0, 1, 1, 1, 0,
>> 1.5,
>>          (18): 1, 1.5
>>          }
>>       }
>>       DATASET "Solution" {
>>          DATATYPE  H5T_IEEE_F64BE
>>          DATASPACE  SIMPLE { ( 10 ) / ( 10 ) }
>>          DATA {
>>          (0): 0, 0, 0, 0, 1, 1, 1, 1, 1, 1
>>          }
>>       }
>>    }
>> }
>>
>> And the XDMF file to represent  a 2-triangle (4 points) piece of the full
>> mesh is:
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <Xdmf xmlns:xi="http://www.w3.org/2001/XInclude">
>>   <Domain>
>>     <Grid CollectionType="Spatial" GridType="Collection" Name="Mesh">
>>       <Grid Name="Grid1">
>>         <Topology Dimensions="6" Type="Triangle">
>>           <DataItem ItemType="HyperSlab" Dimensions="6" Type="HyperSlab">
>>
>
The problem is here, the correct dimensions are 2 (triangles) and not 6
(integers)

            <DataItem Dimensions="3 1" Format="XML"> 0 1 6 </DataItem>
>>             <DataItem DataType="Int" Dimensions="18" Format="HDF"
>> Precision="4">solution1.h5:Grid/Connectivities</DataItem>
>>           </DataItem>
>>         </Topology>
>>         <Geometry GeometryType="XY">
>>           <DataItem ItemType="HyperSlab" Dimensions="8" Type="HyperSlab">
>>             <DataItem Dimensions="3 1" Format="XML"> 0 1 8 </DataItem>
>>             <DataItem DataType="Float" Dimensions="20" Format="HDF"
>> Precision="8">solution1.h5:Grid/Coordinates</DataItem>
>>           </DataItem>
>>         </Geometry>
>>       </Grid>
>>     </Grid>
>>   </Domain>
>> </Xdmf>
>>
>> I'm trying to use the syntax explained at the XDMF webpage (
>> http://www.xdmf.org/index.php/XDMF_Model_and_Format ), but I'm feeling
>> confused about the version of the documentation and current version of XDMF
>> library included in VTK library.
>>
>> Can anyone give me some info about this?
>> It is XDMFv3 already public ?
>>
>>
>> Thanks in advance,
>> Víctor.
>>
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150819/13c4603b/attachment.html>


More information about the vtkusers mailing list