I currently have a *.vtk file that is approximately 3 million cells.
I have specific Cell ID’s that I would like to highlight/view.
For this, I open ParaView, load my object (vtk file).
I go to Edit -> Find Data.
My goal is to find Cell(s) in the the *.vtk file.
I select ID is one of … (i.e. 1, 2, 3, 4, …, 100,000)
The problem is that I am not able to add ALL the Cell IDs I want to see. ParaView has a limit of numbers (followed by commas) that it can take.
Is there a way in which I can supply a large list of numbers that I have already identified?
Can’t you instead use one (or a set of) ranges? Like select alls cells if IDS <= 100 000?
That wouldn’t work for me as the Cell IDs I have are NOT continuous.
Would there be another approach?
Then what about using a Python script to perform the selection?
Yeah! Could you guide me into how this selection can be performed using Python?
I already wrote a python script that would gather all the Cell IDs I need so I can paste them into ParaView. However, I ran into that limitation I mentioned in this topic.
My end goal is to view this large random group of Cell IDs in ParaView.
You can proceed by creating an array made of pairs (process id, cell id) and then use the
SelectIDs() function of ParaView to perform the selection.
Example to select cells 1, 20 and 34:
my_ids = [ 0,1, 0,20, 0,34 ]
Two questions regarding your answer:
- What do you mean by process ID? In your example, what would the zeros represent?
- How can I implement the function in ParaView?