CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Paraview & paraFoam (http://www.cfd-online.com/Forums/openfoam-paraview/)
-   -   Cubic Line Cell not showing in Paraview? (http://www.cfd-online.com/Forums/openfoam-paraview/110257-cubic-line-cell-not-showing-paraview.html)

Woggy December 6, 2012 09:32

Cubic Line Cell not showing in Paraview?
 
Hey.

I'm trying to get a cubic line cell (ID = 35) to show up in Paraview. Its not CFD related but I'm sure someone here could help me out.

Here is the VTK file ... it just wont show up! I dont get an error message or anything. Any ideas?

Code:

# vtk DataFile Version 2.0
Unstructured Grid Example
ASCII
DATASET UNSTRUCTURED_GRID

POINTS 4 float
0 0 0
1 0 0
0.333333 0 0
0.666667 0 0

CELLS 1 5
4 0 1 2 3

CELL_TYPES 1
35

POINT_DATA 4
VECTORS translation float
0 0 0
2.22031e-016 -0.333333 0
0 -0.154622 0
0 -0.271159 0

VECTORS appliedForces float
0 0 0
0 -1 0
0.0 0.0 0.0
0.0 0.0 0.0

VECTORS reactionForces float
1.39403e-020 1 0
-1.39403e-020 -1.77636e-015 0
0.0 0.0 0.0
0.0 0.0 0.0

Edit: Sorry guys, I should have posted this in the general Paraview fourm.

Woggy December 8, 2012 22:45

Gee, figured it out :/

For anyone reading this with the same problem, you need a tessellate filter to render the cubic line correctly.

This didn't occur to me at first because a QuadraticEdge cell renders (as two straight lines) without the need for a tessellate filter.

Hope that helps someone.


All times are GMT -4. The time now is 14:55.