# Combining warp by vector from one pvd with stress colour map from another for the same mesh

**URL:** https://discourse.paraview.org/t/combining-warp-by-vector-from-one-pvd-with-stress-colour-map-from-another-for-the-same-mesh/11616
**Category:** ParaView Support
**Created:** [March 13, 2023, 5:00pm UTC](https://discourse.paraview.org/t/combining-warp-by-vector-from-one-pvd-with-stress-colour-map-from-another-for-the-same-mesh/11616 "2023-03-13T17:00:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MDN](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/ecccb3/32.png) [@MDN](https://discourse.paraview.org/u/MDN)
#### Post date: [March 13, 2023, 5:00pm UTC](https://discourse.paraview.org/t/combining-warp-by-vector-from-one-pvd-with-stress-colour-map-from-another-for-the-same-mesh/11616/1 "2023-03-13T17:00:55Z")

</div>

Hi Everyone,

I have two pvd files for the same mesh. One is used to display the deformation of the model by using ‘Warp by Vector’ and the other is used to display a colour map of the stress.

I would like to combine the two, so the stress colour map and deformation are shown on the same model, that can then be saved as an animation.

I have not yet been able to find a way to do this or even determine if it is possible so I would greatly appreciate any help or suggestions.

Thank you very much in advance.

---

<div class="post-metadata">

### Author: ![patchett2002](https://discourse.paraview.org/user_avatar/discourse.paraview.org/patchett2002/32/235_2.png) [@patchett2002](https://discourse.paraview.org/u/patchett2002)
#### Post date: [March 14, 2023, 9:08pm UTC](https://discourse.paraview.org/t/combining-warp-by-vector-from-one-pvd-with-stress-colour-map-from-another-for-the-same-mesh/11616/2 "2023-03-14T21:08:10Z")

</div>

Hello M,  
I think you are looking for “append attributes” filter. If both of your datasets have identical grids and orientation, that should work. I have never tried it with unstructured grids, I think pvd can have many different types of grids. But I made an example with the wavelet source.  
I loaded wavelet and made a 21x21x1 grid, saved it as a.pvd. Then ran calculator filter to create Result (added 100) , “pass arrays” filter to just get just Result, then saved b.pvd with only Result field. Reset ParaView. Loaded both a.pvd and b.pvd, highlighted them both in the pipeline browser and ran the Append Attributes Filter. This returned a single dataset with both RTData and Result, then I warped by RTData and colored by Result to show they are both there.

 ![Screen Shot 2023-03-14 at 2.59.19 PM](https://discourse.paraview.org/uploads/default/original/2X/8/838fa871150558f4abda01a31f803c3891a8d9a1.jpeg)  
I hope this helps.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [March 14, 2023, 9:11pm UTC](https://discourse.paraview.org/t/combining-warp-by-vector-from-one-pvd-with-stress-colour-map-from-another-for-the-same-mesh/11616/3 "2023-03-14T21:11:20Z")

</div>

Another super useful filter to know about is the Resample with Dataset filter. This does what you ask even if the meshes are not the same.

---

<div class="post-metadata">

### Author: ![patchett2002](https://discourse.paraview.org/user_avatar/discourse.paraview.org/patchett2002/32/235_2.png) [@patchett2002](https://discourse.paraview.org/u/patchett2002)
#### Post date: [March 14, 2023, 9:19pm UTC](https://discourse.paraview.org/t/combining-warp-by-vector-from-one-pvd-with-stress-colour-map-from-another-for-the-same-mesh/11616/4 "2023-03-14T21:19:18Z")

</div>

Agreed, Resample with Dataset is useful here, you can also resample both data sets to image data, if they are not already, and then run append attributes. Lots of ways to skin the cat depending on what you are starting with. … And what you want.

---

<div class="post-metadata">

### Author: ![MDN](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/ecccb3/32.png) [@MDN](https://discourse.paraview.org/u/MDN)
#### Post date: [March 28, 2023, 10:10am UTC](https://discourse.paraview.org/t/combining-warp-by-vector-from-one-pvd-with-stress-colour-map-from-another-for-the-same-mesh/11616/5 "2023-03-28T10:10:07Z")

</div>

Thank you very much for your help John. This solved my problem perfectly.
