CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] paraview for meshfree/particle method (https://www.cfd-online.com/Forums/paraview/110329-paraview-meshfree-particle-method.html)

xnov December 8, 2012 09:53

paraview for meshfree/particle method
 
Hi all,
I'm new in paraview and i'm trying to plot my meshfree simulation using paraview, but i'm confused how to set up the input data. There is an example i found somewhere in internet as in the following code
Code:

<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
 <UnstructuredGrid>
  <Piece NumberOfPoints="3" NumberOfCells="0">
    <Points>
<DataArray name="Position" type="Float32" NumberOfComponents="3" format="ascii">
      0 0 0 1 1 1 0 0 1
      </DataArray>
    </Points>
    <PointData  Vectors="vector">
<DataArray type="Float32" Name="Velocity" NumberOfComponents="3" format="ascii">
      4 4 4 4 0 0 2 2 -2
      </DataArray>
  <DataArray type="Float32" Name="Diameter" format="ascii">
      0.1 0.5 1
      </DataArray>
  <DataArray type="Float32" Name="Temperature" format="ascii">
      273 300 350
      </DataArray>
    </PointData>
    <Cells>
      <DataArray type="Int32" Name="connectivity" format="ascii">
      </DataArray>
      <DataArray type="Int32" Name="offsets" format="ascii">
      </DataArray>
      <DataArray type="UInt8" Name="types" format="ascii">
      </DataArray>
    </Cells>
  </Piece>
 </UnstructuredGrid>
</VTKFile>

However I'm not sure it is correct one or not. is there someone can verify it is the right format? do i need to fill the Cell type=1 (VTK_VERTEX) ? is there any suggestion or better example for me?

thanks a lot


All times are GMT -4. The time now is 08:33.