CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] How to display cell number in paraView

Register Blogs Community New Posts Updated Threads Search

Like Tree38Likes
  • 1 Post By anothr_acc
  • 32 Post By anothr_acc
  • 5 Post By anothr_acc

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 18, 2012, 10:27
Default How to display cell number in paraView
  #1
Member
 
ms
Join Date: Mar 2009
Location: West London
Posts: 47
Rep Power: 17
anothr_acc is on a distinguished road
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.
pfguo likes this.
anothr_acc is offline   Reply With Quote

Old   June 19, 2012, 09:15
Default
  #2
Member
 
ms
Join Date: Mar 2009
Location: West London
Posts: 47
Rep Power: 17
anothr_acc is on a distinguished road
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.
lth, Ahmed Khattab, kaifu and 29 others like this.
anothr_acc is offline   Reply With Quote

Old   June 19, 2012, 12:49
Default
  #3
Member
 
ms
Join Date: Mar 2009
Location: West London
Posts: 47
Rep Power: 17
anothr_acc is on a distinguished road
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....
lth, Mojtaba.a, Emara and 2 others like this.
anothr_acc is offline   Reply With Quote

Old   July 3, 2014, 19:06
Default
  #4
New Member
 
Akshay Sapra
Join Date: Jul 2014
Posts: 2
Rep Power: 0
anotherbrownkid is on a distinguished road
But how would i select a particular cell and find out its dimension? I have over a million cells
anotherbrownkid is offline   Reply With Quote

Old   August 15, 2016, 16:23
Default
  #5
Member
 
Jack
Join Date: May 2015
Posts: 98
Rep Power: 10
Jack001 is on a distinguished road
Do any of you know if the cell indexing used by paraview would be the same as that for openFoam? I would have assumed so..
Jack001 is offline   Reply With Quote

Old   April 4, 2017, 09:55
Default
  #6
Member
 
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 9
Joshua14 is on a distinguished road
Quote:
Originally Posted by anotherbrownkid View Post
But how would i select a particular cell and find out its dimension? I have over a million cells
You can use a crinkle slice in the x, y, and z direction. This will narrow it down to one cell.

Joshua
Joshua14 is offline   Reply With Quote

Old   October 12, 2017, 15:19
Default
  #7
New Member
 
Appu
Join Date: Apr 2016
Posts: 15
Rep Power: 10
ullal is on a distinguished road
Jack,

Did you find the answer to your question regarding whether openfoam and paraview use the same indexing. This is because i found they disagree
ullal is offline   Reply With Quote

Old   February 13, 2018, 09:44
Default cellID consistency
  #8
New Member
 
Join Date: Aug 2016
Posts: 16
Blog Entries: 68
Rep Power: 9
kindle is on a distinguished road
Quote:
Originally Posted by ullal View Post
Jack,

Did you find the answer to your question regarding whether openfoam and paraview use the same indexing. This is because i found they disagree

As far as I know it is consistent on a patch : You choose a cell on a patch and extract its cellID and then go to the patch and say patch.Cf()[cellID] it will be printing the cell center of the cell you choose with a slight difference because (I think) I used a calculater calculating "Coord" and "Point data to Cell data" to get the coord in paraview.

If you are interested, I have (a nasty but working) utility here to access patch data :
https://github.com/snow-stone/Notebo...llQuantitiesV4
kindle is offline   Reply With Quote

Old   November 20, 2023, 03:27
Default GenerateGlobalIds filter
  #9
Member
 
Join Date: Jun 2019
Posts: 41
Rep Power: 6
Voulet is on a distinguished road
Hi from the future. Since I spent 30 minutes to find the easiest solution I share my finding here since this post is the first google search occurence :


In 2023 you just have to use the paraview filter GenerateGlobalIds on a just loaded openfoam case and it will show you the id.
__________________
« Debugging is what CFD is about. 5 minutes to modify your code, 5 months to find why it does not work anymore. »
Voulet is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[General] Extracting ParaView Data into Python Arrays Jeffzda ParaView 30 November 6, 2023 21:00
Decomposing meshes Tobi OpenFOAM Pre-Processing 22 February 24, 2023 09:23
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
Fluent UDF wrong number of cells in parallel - correct in serial dralexpe Fluent UDF and Scheme Programming 7 May 17, 2018 08:26
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 15:03


All times are GMT -4. The time now is 21:06.