Threshold by Part ID/Convert Field Array to Cell Array


I would like to threshold by part ID, however I see that one can only do so by point/cell data scalars.
Is there a way to convert field array data (part IDs) to cell arrays?


If your data is a multiblock dataset, the easiest way to do it may be to use the Block Scalars filter.

I see that this filter adds a scalar field, but one that only pertains to block indices. I’m looking for a way to get a scalar field that relates directly to part IDs.

I understand that I could build and append a partID cell data array to each of my lowest level blocks through a programmable filter.

Alternatively, I will probably attach a partID array to my data as it is written. It’s coming out of a custom solver.

Thank you for your suggestion, though.