|
[Sponsors] |
[General] How to display cell number in paraView |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 18, 2012, 11:27 |
How to display cell number in paraView
|
#1 |
Member
ms
Join Date: Mar 2009
Location: West London
Posts: 48
Rep Power: 17 |
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. |
|
June 19, 2012, 10:15 |
|
#2 |
Member
ms
Join Date: Mar 2009
Location: West London
Posts: 48
Rep Power: 17 |
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. |
|
June 19, 2012, 13:49 |
|
#3 |
Member
ms
Join Date: Mar 2009
Location: West London
Posts: 48
Rep Power: 17 |
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.... |
|
July 3, 2014, 20:06 |
|
#4 |
New Member
Akshay Sapra
Join Date: Jul 2014
Posts: 2
Rep Power: 0 |
But how would i select a particular cell and find out its dimension? I have over a million cells
|
|
August 15, 2016, 17:23 |
|
#5 |
Member
Jack
Join Date: May 2015
Posts: 98
Rep Power: 11 |
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..
|
|
April 4, 2017, 10:55 |
|
#6 |
Member
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 10 |
||
October 12, 2017, 16:19 |
|
#7 |
New Member
Appu
Join Date: Apr 2016
Posts: 15
Rep Power: 10 |
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 |
|
February 13, 2018, 10:44 |
cellID consistency
|
#8 | |
New Member
|
Quote:
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 |
||
November 20, 2023, 04:27 |
GenerateGlobalIds filter
|
#9 |
Member
Join Date: Jun 2019
Posts: 41
Rep Power: 7 |
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. » |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Extracting ParaView Data into Python Arrays | Jeffzda | ParaView | 30 | November 6, 2023 22:00 |
Decomposing meshes | Tobi | OpenFOAM Pre-Processing | 22 | February 24, 2023 10:23 |
decomposePar problem: Cell 0contains face labels out of range | vaina74 | OpenFOAM Pre-Processing | 37 | July 20, 2020 06:38 |
Fluent UDF wrong number of cells in parallel - correct in serial | dralexpe | Fluent UDF and Scheme Programming | 7 | May 17, 2018 09:26 |
Cluster ID's not contiguous in compute-nodes domain. ??? | Shogan | FLUENT | 1 | May 28, 2014 16:03 |