# Error in finding a continuous curve for stress distribution along an arbitrary direction

**URL:** https://discourse.paraview.org/t/error-in-finding-a-continuous-curve-for-stress-distribution-along-an-arbitrary-direction/2631
**Category:** Development
**Tags:** vtk
**Created:** [September 26, 2019, 12:36pm UTC](https://discourse.paraview.org/t/error-in-finding-a-continuous-curve-for-stress-distribution-along-an-arbitrary-direction/2631 "2019-09-26T12:36:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Hamidreza](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/h/a8b319/32.png) [@Hamidreza](https://discourse.paraview.org/u/Hamidreza)
#### Post date: [September 26, 2019, 12:36pm UTC](https://discourse.paraview.org/t/error-in-finding-a-continuous-curve-for-stress-distribution-along-an-arbitrary-direction/2631/1 "2019-09-26T12:36:05Z")

</div>

Dear all,

I would like to calculate the values of stress along any arbitrary directions inside my model. However, for some angles, I cannot get a continuous curve, and I don’t know why. I’m uploading the two vtu. files as well as the related state file. As can be seen in the state file and also the two png. files, I can get a continuous stress curve on a 45-degree plane with respect to the x axis when I’m interested in calculating the stress values along a line oriented at 0-degree with respect to this plane (The blue curve). However, for the same plane, I cannot get a continuous curve along a line oriented at 45 degrees on this plane (The red curve). Does anyone know how to solve this problem?

[Cauchy\_Problem.pvsm](https://discourse.paraview.org/uploads/short-url/t1DaVfWPreVTkNdZbCL95pjpoWp.pvsm) (747.7 KB) [UC\_with\_inclusion\_319.vtu](https://discourse.paraview.org/uploads/short-url/egikgRSZfLjUqSiSRscqIFhx6Ko.vtu) (3.6 MB) [UC\_with\_inclusion\_incl\_319.vtu](https://discourse.paraview.org/uploads/short-url/2Pl16fEwgYq3agSpY09Rzpb3uXY.vtu) (691.3 KB)

 ![The%20blue%20curve](https://discourse.paraview.org/uploads/default/original/2X/d/d03e820e021cc179df23c14796c3485d7f2b4412.png) ![The%20red%20curve](https://discourse.paraview.org/uploads/default/original/2X/d/d93bf940c60a102ae0e7d488906e1b3d3d85817b.png)  
Thank you in advance!  
With best regards,  
Hamidreza

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [September 27, 2019, 2:53am UTC](https://discourse.paraview.org/t/error-in-finding-a-continuous-curve-for-stress-distribution-along-an-arbitrary-direction/2631/2 "2019-09-27T02:53:55Z")

</div>

The unstructured grid you uploaded is composed of Tri-Quadratic-Hexahedrons. Unfortunately this cell type might not be supported by **Calculator** or **Plot Over Line** filter or both. You should post this as a new issue over at here:  
[https://gitlab.kitware.com/paraview/paraview/issues](https://gitlab.kitware.com/paraview/paraview/issues)

A workaround is to run the **Tetrahedralize** filter on the first grid like seen in the attached state file.  
[Cauchy\_Problem\_tet.pvsm](https://discourse.paraview.org/uploads/short-url/s6PF5grs0UnNiehiEX9DtCHsiAT.pvsm) (783.9 KB)

---

<div class="post-metadata">

### Author: ![Hamidreza](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/h/a8b319/32.png) [@Hamidreza](https://discourse.paraview.org/u/Hamidreza)
#### Post date: [September 27, 2019, 7:30am UTC](https://discourse.paraview.org/t/error-in-finding-a-continuous-curve-for-stress-distribution-along-an-arbitrary-direction/2631/3 "2019-09-27T07:30:03Z")

</div>

Hi Kyoshimi,

Thank you for your solution. However, I can’t see any plots when I load the attached state. I faced the attached error. Could you help me with this please?

BR,  
Hamidreza

 ![Error](https://discourse.paraview.org/uploads/default/original/2X/9/9ddf4a9ac98c0dcd7c61a21d15451107f0c3bb62.png) [Error\_file.txt](https://discourse.paraview.org/uploads/short-url/mvekAtIgsqSrYLapnindNBzJeSU.txt) (9.9 KB)

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [September 27, 2019, 8:50am UTC](https://discourse.paraview.org/t/error-in-finding-a-continuous-curve-for-stress-distribution-along-an-arbitrary-direction/2631/4 "2019-09-27T08:50:47Z")

</div>

Hello Hamidreza,

It might be need to choose the **Search files under specified directory** under **Load State Data File Options** when loading the state file.  
 ![load_state_option](https://discourse.paraview.org/uploads/default/original/2X/0/02124b17f96e2b2ccf51986bf64be8aed1d599b8.png)

---

<div class="post-metadata">

### Author: ![Hamidreza](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/h/a8b319/32.png) [@Hamidreza](https://discourse.paraview.org/u/Hamidreza)
#### Post date: [September 27, 2019, 2:16pm UTC](https://discourse.paraview.org/t/error-in-finding-a-continuous-curve-for-stress-distribution-along-an-arbitrary-direction/2631/5 "2019-09-27T14:16:44Z")

</div>

Hello Kyoshimi,

I tried all three possible options under “Load State Data File Options”. However, I still have the same problem. For some reason, I cannot see the number 319 in front of UC\_with\_inclusion and UC\_with\_inclusion\_incl files. (In the file that I attached before I had this number in front of them). For this reason, I cannot see the main structure when I try to make it visible. Moreover, when I go to the filter calculator1, I see Cauchy45XY\_tri (?), which seems it has not been defined.

But, I followed what you did in creating a tetrahedralize filter and so on, and fortunately I could get continuous curves. It’s a really quick solution, and I really appreciate you. However, I will propose this problem under a new issue as you have suggested because it would be nice if we could solve this problem for Tri-Quadratic-Hexahedron elements, too.

With best regards,  
Hamidreza
