[Paraview] paraview cannot read xdmf file
Jerry Clarke
clarke at arl.army.mil
Tue Jul 29 10:21:32 EDT 2008
Natalie,
I'm guessing that the fist line of your .xmf file
is a blank line and the <?xml ....
line is the second. The <?xml .... has to be the
first line in the file of the XML parser won't accept it.
I copied your xml into "try.xmf" and the reader was able to parse
it.
Also a few minor things :
- since you are specifically listing the .h5 files, using the
HeavyData1 and HeavyData2 entities is unnecessary, just
remove them.
- <DataStructure .. should be <DataItem ...
- <Topology Type=... should be <Topology TopologyType= ...
- <Geometry Type=... should be <Geometry GeometryType=...
the new reader is backwards compatible to a point but that may change
at some point.
Jerry Clarke
Natalie Happenhofer wrote:
> Hi everybody,
> I have written an Xdmf-File to be read by Paraview, but Paraview
> doesn´t, does not even recognise the file type as it asks me which
> reader it should use.
>
> This is my .xmf-file:
>
> <?xml version="1.0" ?>
> <!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" [
> <!ENTITY HeavyData1 "c2d-coordinates.h5">
> <!ENTITY HeavyData2 "c2d-dg-values.h5">
> ]>
>
>
>
> <Xdmf >
> <Domain Name="c2d">
> <Grid Name="Curvilinear" GridType="Uniform">
> <Topology Type="3DSMesh" Dimensions="275 151 1">
> </Topology>
> <Geometry Type="XYZ">
> <DataStructure DataType="Float" Precision="4" Dimensions="41525
> 3" Format="HDF">
> c2d-coordinates.h5:/Curvilinear/XYZ
> </DataStructure>
> </Geometry>
> <Attribute Name="Density" AttributeType="Scalar" Center="Node">
> <DataStructure DataType="Float" Precision="4" Dimensions="275
> 151 1" Format="HDF">
> c2d-dg-values.h5:/Curvilinear/Density
> </DataStructure>
> </Attribute>
> </Grid>
> </Domain>
> </Xdmf>
>
> and I just don´t undestand, what´s the problem with it? the .h5 files
> are located in the same directory as the .xmf -file.
>
> Paraview says: ERROR: In
> C:\berk\ReleaseBuilds\ParaView3\Utilities\Xdmf2\vtk\vtkXdmfReader.cxx,
> line 2978
>
> vtkXdmfReader (05B2A1F8): Cannot find any domain...
>
>
> Any Help appreciated!
>
> Thx,
>
> Natalie Hapenhofer
>
>
> ------------------------------------------------------------------------
> Express yourself instantly with MSN Messenger! MSN Messenger
> <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
More information about the ParaView
mailing list