In the Request Data you can copy paste this python script (troncate a 9 components tensor to 6 and name this new data array Stress6): programmable_filter.py (674 Bytes)
and don’t forget to enable the Copy Arrays property of this filter.
Let me know if it works, also I want to open an issue regarding this, the Yield Criteria filter should be able to use a 9 components, can I link you shared data ?
If I have to write a script, I still prefer to write a filter to calculate criteria like YieldCritria.
This would allow me to add my own criteria if needed.
I would still prefer to use the filter provided by Paraview.
So I would find it logical to open an issue on this problem.
Don’t hesitate to link this test case to illustrate the problem.