[Paraview] Import Raw (binary) Files as Cell Data
Favre Jean
jfavre at cscs.ch
Mon Aug 22 04:22:04 EDT 2016
I personally favor the use of XDMF to import raw binary data. This gives the flexibility to import cell-data and/or node-data
the XDMF code most likely to work for your example is the following:
Given your binary data stored in file "rawdata.bin", double-length floating point, with 4x4x5 cells, i.e. a grid of 5x5x6 vertices...
<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf xmlns:xi="http://www.w3.org/2003/XInclude" Version="2.2">
<Domain>
<Grid Name="3DMesh" GridType="Uniform">
<Topology TopologyType="3DCORECTMESH" Dimensions="6 5 5"/>
<Geometry GeometryType="ORIGIN_DXDYDZ">
<DataItem Name="Origin" NumberType="Float" Dimensions="3" Format="XML">0. 0. 0.</DataItem>
<DataItem Name="Spacing" NumberType="Float" Dimensions="3" Format="XML">1. 1. 1.</DataItem>
</Geometry>
<Attribute Name="Temperature" Active="1" AttributeType="Scalar" Center="Cell">
<DataItem Dimensions="5 4 4" NumberType="Float" Precision="8" Format="Binary">rawdata.bin</DataItem>
</Attribute>
</Grid>
</Domain>
</Xdmf>
-----------------
Jean
CSCS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160822/8a6169f4/attachment.html>
More information about the ParaView
mailing list