# Pb with YieldCriteria Filter

**URL:** https://discourse.paraview.org/t/pb-with-yieldcriteria-filter/16083
**Category:** ParaView Support
**Created:** [January 30, 2025, 1:10pm UTC](https://discourse.paraview.org/t/pb-with-yieldcriteria-filter/16083 "2025-01-30T13:10:46Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Loic](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/e9c0ed/32.png) [@Loic](https://discourse.paraview.org/u/Loic)
#### Post date: [January 30, 2025, 1:10pm UTC](https://discourse.paraview.org/t/pb-with-yieldcriteria-filter/16083/1 "2025-01-30T13:10:46Z")

</div>

Hi,

I have an XDMF file containing a model with an attribute named Static\_Stress, which includes tensors in the Tensor6 format.

It appears to be displayed correctly in Paraview:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/0/053147c0520366d06582ab2f018730f4eafd7c59.png)

When I try the YieldCriteria filter, I don’t see any available Point Tensors in the YieldCriteria Filter Panel:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/2/2f052529238293d73d72dc2ebf43b2a26da097f9.png)

Does anyone know how to use this filter and if I need to prepare my data in any way?

You can find below the data files used.  
[StressTest.h5](https://discourse.paraview.org/uploads/short-url/cAhNEIOPqLCZpmDJZj4EbP371Cb.h5) (197.6 KB)  
[StressTest.xdmf](https://discourse.paraview.org/uploads/short-url/gCulPdcUvI1F8U1SyPhfrZjZpn.xdmf) (1.1 KB)

I’m using Paraview 5.12.1 under Windows 10.

Best regards,

LB

---

<div class="post-metadata">

### Author: ![Lucas\_Givord](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lucas_givord/32/6851_2.png) [@Lucas\_Givord](https://discourse.paraview.org/u/Lucas_Givord)
#### Post date: [January 30, 2025, 2:02pm UTC](https://discourse.paraview.org/t/pb-with-yieldcriteria-filter/16083/2 "2025-01-30T14:02:36Z")

</div>

Hello @Loic,

I think this filter show only 6 components point data (probably because some tensor are symmetric).

FYI @Francois_Mazen

---

<div class="post-metadata">

### Author: ![Loic](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/e9c0ed/32.png) [@Loic](https://discourse.paraview.org/u/Loic)
#### Post date: [February 11, 2025, 7:56am UTC](https://discourse.paraview.org/t/pb-with-yieldcriteria-filter/16083/3 "2025-02-11T07:56:49Z")

</div>

Hello @Lucas,

My data contains originally symmetric tensors stored in XDMF Tensor6 format with 6 components per tensor.

The XDMF reader converts them into generic tensors with 9 components per tensor.

Is there a way to convert them back to a symmetric tensor format, compatible with the YieldCriteria filter?

Regards,

---

<div class="post-metadata">

### Author: ![Lucas\_Givord](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lucas_givord/32/6851_2.png) [@Lucas\_Givord](https://discourse.paraview.org/u/Lucas_Givord)
#### Post date: [February 11, 2025, 8:14am UTC](https://discourse.paraview.org/t/pb-with-yieldcriteria-filter/16083/4 "2025-02-11T08:14:36Z")

</div>

Hello @Loic,

You can do that with a programmable filter.

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](https://discourse.paraview.org/uploads/short-url/9lH18W7yhoPKdY7dtAcZG3Zqmh9.py) (674 Bytes)

and don’t forget to enable the `Copy Arrays` property of this filter.

Here is what I have:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/d/d0e97e18fd21f4b722a8ed5abbdd74b1960eb8f8.png)

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 ?

---

<div class="post-metadata">

### Author: ![Loic](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/e9c0ed/32.png) [@Loic](https://discourse.paraview.org/u/Loic)
#### Post date: [February 14, 2025, 2:42pm UTC](https://discourse.paraview.org/t/pb-with-yieldcriteria-filter/16083/5 "2025-02-14T14:42:48Z")

</div>

Thanks @Lucas for your feedback,

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.

---

<div class="post-metadata">

### Author: ![Lucas\_Givord](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lucas_givord/32/6851_2.png) [@Lucas\_Givord](https://discourse.paraview.org/u/Lucas_Givord)
#### Post date: [February 14, 2025, 2:58pm UTC](https://discourse.paraview.org/t/pb-with-yieldcriteria-filter/16083/6 "2025-02-14T14:58:01Z")

</div>

Thanks, it makes sense, I open the issue in VTK as the root cause of this issue is the vtk filter itself: [https://gitlab.kitware.com/vtk/vtk/-/issues/19614](https://gitlab.kitware.com/vtk/vtk/-/issues/19614)
