[Paraview] xdmf polydata-points (particles)

Jens jens-devel at gmx.de
Fri Feb 6 12:29:17 EST 2009


Hi Eric,

thanks for your help ... somehow I was expecting a keyword "polydata"
instead of "polyvertex".

Greetings
Jens

Eric E. Monson schrieb:
> Hey Jens,
> 
> I think it should work out fine to treat them as "particles with
> attributes". Here's an example of a short time series of particles which
> each have XYZ positions, plus a scalar and a vector attribute.
> 
> -Eric
> 
> <Xdmf>
>     <Domain Name="MSI">
>         <Grid Name="CellTime" GridType="Collection"
> CollectionType="Temporal">
> 
>             <Grid Name="Cells" GridType="Uniform">
>                 <Time Value="0.00" />
>                 <Topology TopologyType="Polyvertex" NodesPerElement="30">
>                 </Topology>
>                 <Geometry GeometryType="XYZ">
>                     <DataItem DataType="Float" Dimensions="30 3"
> Format="HDF">
>                         TestData.h5:/iter00000000/cells/position
>                     </DataItem>
>                 </Geometry>
>                 <Attribute AttributeType="Scalar" Center="Node"
> Name="leuk_type">
>                     <DataItem DataType="Int" Dimensions="30 1"
> Format="HDF">
>                         TestData.h5:/iter00000000/cells/type
>                     </DataItem>
>                 </Attribute>
>                 <Attribute AttributeType="Vector" Center="Node"
> Name="leuk_polarization">
>                     <DataItem DataType="Float" Dimensions="30 3"
> Format="HDF">
>                         TestData.h5:/iter00000000/cells/polarization
>                     </DataItem>
>                 </Attribute>
>             </Grid>
> 
>             <Grid Name="Cells" GridType="Uniform">
>                 <Time Value="0.05" />
>                 <Topology TopologyType="Polyvertex" NodesPerElement="30">
>                 </Topology>
>                 <Geometry GeometryType="XYZ">
>                     <DataItem DataType="Float" Dimensions="30 3"
> Format="HDF">
>                         TestData.h5:/iter00000001/cells/position
>                     </DataItem>
>                 </Geometry>
>                 <Attribute AttributeType="Scalar" Center="Node"
> Name="leuk_type">
>                     <DataItem DataType="Int" Dimensions="30 1"
> Format="HDF">
>                         TestData.h5:/iter00000001/cells/type
>                     </DataItem>
>                 </Attribute>
>                 <Attribute AttributeType="Vector" Center="Node"
> Name="leuk_polarization">
>                     <DataItem DataType="Float" Dimensions="30 3"
> Format="HDF">
>                         TestData.h5:/iter00000001/cells/polarization
>                     </DataItem>
>                 </Attribute>
>             </Grid>
> 
>         </Grid>
>     </Domain>
> </Xdmf>
> 
> On Feb 6, 2009, at 11:26 AM, Jens wrote:
> 
>> Hi,
>>
>> I am using xdmf-file-format for my structured grid to visualise
>> turbulent flows.
>>
>> Now, I have a bunch of vectors not connected to that grid, but defined
>> somewhere between the grid-points. They are stored as float-XYZ
>> +xyzLength in my hdf5-file (you could think of particles with
>> attributes,too.)
>>
>> Therefore I need to add polydata-points+attributes to my xdmf-file. Is
>> that possible? And if yes, how?
>>
>> Greetings
>> Jens
>> _______________________________________________
>> ParaView mailing list
>> ParaView at paraview.org
>> http://www.paraview.org/mailman/listinfo/paraview
> 


More information about the ParaView mailing list