[Paraview] Temperature visualisation

Johannes Will johannes.will at tu-harburg.de
Fri May 8 17:42:20 EDT 2009


Hi David,

I think you have to put the temp array not to the geometry tag, but to  
an attribute tag.

I am not quite sure if the X_Y type exists, if not you could try to

<Xdmf>
   <Domain>
     <Grid GridType="Uniform">
       <Topology Type="Polyvertex" Dimensions="241 241 1"> </Topology>
       <Geometry Type="X_Y">
         <DataItem DataType="Float" Precision="4" Dimensions="1 241 241"
Format="HDF">
                 test.h5:/bands/latitude
         </DataItem>
         <DataItem DataType="Float" Precision="4" Dimensions="1 241 241"
Format="HDF">
            test.h5:/bands/longitude
         </DataItem>
       </Geometry>
       <Attribute AttributeType="Scalar" Center="Cell"  Name="Ttemp">
         <DataItem DataType="Float" Precision="4" Dimensions="1 241 241"
            Format="HDF">
                         test.h5:/bands/temp
         </DataItem>
        </Grid>
     </Domain>
</Xdmf>

or
<Xdmf>
   <Domain>

I am not quite sure if the X_Y type exists. Possibly you got to use  
one of the other Geometry options. Hope this will help you.

Cheers Johannes



Quoting Guido Staub <gstaub at udec.cl>:

[Zitattext anzeigen - 54 Zeilen][Zitattext verstecken]
Am 08.05.2009 16:35:15 schrieb(en) David E DeMarle:
I would recommend writing an XDMF interface. XDMF is a text (XML)
format that you can use to describe the content of the hdf file. Once
you have the xdmf file paraview will be able to ingest your data.

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109
This is what I have already done (see listing below).
It works to have a 3D representation. However I do not want the
temperature as a height value but a color. z will be constant, for
example 100.

<Xdmf>
         <Domain>
                 <Grid GridType="Uniform">

<Topology Type="Polyvertex" Dimensions="241 241 1"> </Topology>
<Geometry Type="X_Y_Z">
<DataItem DataType="Float" Precision="4" Dimensions="1 241 241"
Format="HDF">
                         test.h5:/bands/latitude
                         </DataItem>
<DataItem DataType="Float" Precision="4" Dimensions="1 241 241"
Format="HDF">
                         test.h5:/bands/longitude
                         </DataItem>
<DataItem DataType="Float" Precision="4" Dimensions="1 241 241"
Format="HDF">
                         test.h5:/bands/temp
                         </DataItem>
                         </Geometry>

                 </Grid>
         </Domain>
</Xdmf>


-- 
Johannes Will

Pulverhofsweg 5
22159 Hamburg
Germany

Tel.: #49-40-644 199 29
Cell: #49-176-23 600 633

Mail: johannes.will at tuhh.de




More information about the ParaView mailing list