CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   ParaView (http://www.cfd-online.com/Forums/paraview/)
-   -   How to display cell number in paraView (http://www.cfd-online.com/Forums/paraview/103358-how-display-cell-number-paraview.html)

anothr_acc June 18, 2012 11:27

How to display cell number in paraView
 
Hi everyone. I'm quite new to paraView and I'm using it with openFoam. I'd like to display cell numbers so I can pick a reference pressure cell number but try as I might I can't see how!

Can somebody help me please?

Best regards,

Mark.

anothr_acc June 19, 2012 10:15

So, I'll answer my own question. Maybe it will help someone else sometime.

1) Load the mesh.
2) Split the mesh view by clicking on one of the top right buttons next to the graphical window.
3) Set the new frame as being, `spreadsheet view'
4) Change `Attribute' to `cell data'.
5) Change the view from `surface' to `wireframe' to enable cells inside the volume to be viewed.
6) Select an entry in the spreadsheet view. The cell should now be highlighted.
7) Change selected cell with mouse, arrow keys, page up/down etc until the highlighted cell is in a good area. Note the cell number.

The cells start at number zero, as does openFoam so the cell number can be directly copied. As for point and click, it's beyond me so far. Still, this is better than selecting cell zero and hoping for the best!

Good luck all.

Best regards,

Mark.

anothr_acc June 19, 2012 13:49

I'll even go one better: extraction of the cell number at the centre of the domain:

1) Clip the mesh three times, once with a normal in each direction.
2) Zoom into the corner containing the cell of interest.
3) View -> Selection inspector. Create selection. Selection type: Location. Field type: cell. Display style / cell label / visible.
4) Active selection: invert selection.

Cells should now be numbered around the region of interest. Note one down.

5) Active selection: de-invert selection.
6) Change to selection type: IDs. Field type, cell.
7) Delete all entries in the new list and create a new entry. Specify the index value just noted down and composite ID.
8) View original mesh.

Hopefully the cell is now highlighted....

anotherbrownkid July 3, 2014 20:06

But how would i select a particular cell and find out its dimension? I have over a million cells


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