[Paraview] XDMF specify geometry with external ascii file

Chourasia, Amit amit at sdsc.edu
Thu Jan 2 20:02:49 EST 2014


Hi,

I am writing a header XDMF file for uni-grid scalar binary data, which works fine, but when I try to include geometry coordinates using a ASCII file, paraview crashes complaining.
"Required geometry type is ORIGIN_DX_DY or ORIGIN_DX_DY_DZ. The specified geometry type is : XYZ"

Searching the mail list it seems possible to include geometry info with external hdf files, is it possible to include an external ascii file "geo.xyz"?
The geo.xyz file is space separated one tuple per line  of  X Y Z in floating point format, like many examples show for inline xmf file
Could you provide any tips to overcome this problem. 

Here is the XDMF header file. Thanks

<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf xmlns:xi="http://www.w3.org/2001/XInclude" Version="2.0">
<Domain>
    <Grid Name="Mesh" GridType="Uniform">
        <Topology name="topo" TopologyType="3DCoRectMesh"
            Dimensions="24 893 394">
        </Topology>
        <Geometry name="geo" GeometryType="XYZ">
            <DataItem Format="XML" Dimensions="8444208 3">
            geo.xyz
            </DataItem>
        </Geometry>
        <Attribute Name="Density" Center="Cell">
            <DataItem Format="Binary" 
             DataType="Float" 
             Precision="4" 
             Dimensions="23 892 393">
               data.dat
            </DataItem>
        </Attribute>
    </Grid>
</Domain>
</Xdmf>


More information about the ParaView mailing list