# Combine stress data from same mesh

**URL:** https://discourse.paraview.org/t/combine-stress-data-from-same-mesh/9966
**Category:** ParaView Support
**Created:** [July 2, 2022, 8:50am UTC](https://discourse.paraview.org/t/combine-stress-data-from-same-mesh/9966 "2022-07-02T08:50:11Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Prierap](https://discourse.paraview.org/user_avatar/discourse.paraview.org/prierap/32/9577_2.png) [@Prierap](https://discourse.paraview.org/u/Prierap)
#### Post date: [July 2, 2022, 8:50am UTC](https://discourse.paraview.org/t/combine-stress-data-from-same-mesh/9966/1 "2022-07-02T08:50:11Z")

</div>

Hi there,

I am quite new to Paraview, so go easy on me! 😄  
I have two d3plot files from LS-DYNA corresponding to the same mesh but with different material parameters. What I want to do is combine the stresses of both solutions into one and divide them element-wise, as to have a measure of how much larger the stresses of one of the solutions are with respect to the other. I appreciate any help provided and thanks in advance!

---

<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: [July 2, 2022, 9:08am UTC](https://discourse.paraview.org/t/combine-stress-data-from-same-mesh/9966/2 "2022-07-02T09:08:25Z")

</div>

Hi,

After loading the two d3plot files, perform the following steps:

1. Select the two you have loaded while holding down the Ctrl key in the `Pipeline Browser`.
2. Click Filters \> Alphabtical \> `Append Attributes`
3. Click the Calculator icon ![calculator](https://discourse.paraview.org/uploads/default/original/2X/6/68ea4e25948e6abac2ee00d5bb5ee1d177175962.png) on the toolbar
4. Write “your\_material\_name / your\_material\_name\_1” and click `Apply`

---

<div class="post-metadata">

### Author: ![Prierap](https://discourse.paraview.org/user_avatar/discourse.paraview.org/prierap/32/9577_2.png) [@Prierap](https://discourse.paraview.org/u/Prierap)
#### Post date: [July 2, 2022, 11:18am UTC](https://discourse.paraview.org/t/combine-stress-data-from-same-mesh/9966/3 "2022-07-02T11:18:59Z")

</div>

I follow more or less what you say. If I try to plot the proportion of von-mises stresses I have to previously define it in the Calculator (d3plots apparently do not import von-mises stress), but Paraview just recognizes one “Stress\_XX”, “Stress-YY” , etc, from one of the d3plots. I guess what I want to say I don´t quite understand how the Append Attributes works and sepparates the variables from both files. Which is the easy way to plot such a proportion? Thanks.

---

<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: [July 2, 2022, 11:42am UTC](https://discourse.paraview.org/t/combine-stress-data-from-same-mesh/9966/4 "2022-07-02T11:42:29Z")

</div>

> Paraview just recognizes one “Stress\_XX”, “Stress-YY” , etc, from one of the d3plots.

Does it mean that ParaView cannot load “Stress\_XX”, “Stress-YY”, etc., which should be contained in one of the d3plots files?

Is it possible to share those files? It is easier to understand the situation

---

<div class="post-metadata">

### Author: ![Prierap](https://discourse.paraview.org/user_avatar/discourse.paraview.org/prierap/32/9577_2.png) [@Prierap](https://discourse.paraview.org/u/Prierap)
#### Post date: [July 2, 2022, 11:55am UTC](https://discourse.paraview.org/t/combine-stress-data-from-same-mesh/9966/5 "2022-07-02T11:55:20Z")

</div>

> Does it mean that ParaView cannot load “Stress\_XX”, “Stress-YY”, etc., which should be contained in one of the d3plots files?

I mean that in “AppendAttributes1” there appears to be a single variable with this names. I guess this is related to [this post](https://gitlab.kitware.com/paraview/paraview/-/issues/17323), that both files have the stresses and strains with the same names and when appending only one of the two is taken.

> Is it possible to share those files? It is easier to understand the situation.

I am sorry, I don’t think I am allowed to. I hope this is enough for you to understand the issue… thanks!

---

<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: [July 2, 2022, 12:13pm UTC](https://discourse.paraview.org/t/combine-stress-data-from-same-mesh/9966/6 "2022-07-02T12:13:07Z")

</div>

Are you experiencing the same problem as the linked post? Also, are you using an older version of ParaView? This issue has already been resolved, so you may not have a problem with the latest version of ParaView.

---

<div class="post-metadata">

### Author: ![Prierap](https://discourse.paraview.org/user_avatar/discourse.paraview.org/prierap/32/9577_2.png) [@Prierap](https://discourse.paraview.org/u/Prierap)
#### Post date: [July 2, 2022, 2:59pm UTC](https://discourse.paraview.org/t/combine-stress-data-from-same-mesh/9966/7 "2022-07-02T14:59:05Z")

</div>

I think I know where the issue is. When looking at the info of both files, they have the same number of cells but different number of points, which I don’t understand since I used the exact same mesh. Hence, I Append Atributtes only takes the attributes of the first selected file if they don’t have the same number of cells and points. Also, I have noticed that even though the number of cells is the same as number of elements, in any case the number of points corresponds to the number of nodes. Are you aware of any issue related to that?

---

<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: [July 2, 2022, 3:35pm UTC](https://discourse.paraview.org/t/combine-stress-data-from-same-mesh/9966/8 "2022-07-02T15:35:29Z")

</div>

If the problem with the different number of points is due to LS-DYNA’s analysis settings or output options, unfortunately, I do not have that knowledge.

---

<div class="post-metadata">

### Author: ![Prierap](https://discourse.paraview.org/user_avatar/discourse.paraview.org/prierap/32/9577_2.png) [@Prierap](https://discourse.paraview.org/u/Prierap)
#### Post date: [July 2, 2022, 4:46pm UTC](https://discourse.paraview.org/t/combine-stress-data-from-same-mesh/9966/9 "2022-07-02T16:46:08Z")

</div>

Opening the files with LS-PrePost gives the same number of nodes and elements as the mesh should have, yet for some reason when it is opened in Paraview, more nodes are created…

---

<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: [July 2, 2022, 8:35pm UTC](https://discourse.paraview.org/t/combine-stress-data-from-same-mesh/9966/10 "2022-07-02T20:35:24Z")

</div>

Below is a description of the vtkLSDynaReader that ParaView uses to read the d3plot file. It may give you some hints.

[https://vtk.org/doc/nightly/html/classvtkLSDynaReader.html#details](https://vtk.org/doc/nightly/html/classvtkLSDynaReader.html#details)

---

<div class="post-metadata">

### Author: ![todoooo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/todoooo/32/2819_2.png) [@todoooo](https://discourse.paraview.org/u/todoooo)
#### Post date: [July 3, 2022, 1:12am UTC](https://discourse.paraview.org/t/combine-stress-data-from-same-mesh/9966/11 "2022-07-03T01:12:31Z")

</div>

If the numerical results are confidential then it would be best to create two simple, fictitious, representative, files that demonstrate the problem. It is impossible to prescribe a solution without tangible data.
