# Subtracting 2 surface vectors and plotting the difference contour

**URL:** https://discourse.paraview.org/t/subtracting-2-surface-vectors-and-plotting-the-difference-contour/15165
**Category:** ParaView Support
**Created:** [August 3, 2024, 3:03am UTC](https://discourse.paraview.org/t/subtracting-2-surface-vectors-and-plotting-the-difference-contour/15165 "2024-08-03T03:03:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![scabo](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@scabo](https://discourse.paraview.org/u/scabo)
#### Post date: [August 3, 2024, 3:03am UTC](https://discourse.paraview.org/t/subtracting-2-surface-vectors-and-plotting-the-difference-contour/15165/1 "2024-08-03T03:03:48Z")

</div>

Hi all,  
I have tried this: subtracting 2 slices but not able to color it by the difference. I have 2 surface vectors and i have used resampled data set to create a new. Now i am applying the calculator to subtract the quantity sqrt(U\_Y_U\_Y+U\_Z_U\_Z)\_SurfaceVectors1-sqrt(U\_Y_U\_Y+U\_Z_U\_Z)\_SurfaceVectors2. But this is not happening and causing some issue. Shall i have to do something else? I have attached the ss where u can see the pipeline at the left.

Thanks!

 ![Screenshot (26)](https://discourse.paraview.org/uploads/default/original/2X/3/37fedd0036f41b8ed8f0a4cb91ca2563877883cc.png)

---

<div class="post-metadata">

### Author: ![scabo](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@scabo](https://discourse.paraview.org/u/scabo)
#### Post date: [August 3, 2024, 3:15am UTC](https://discourse.paraview.org/t/subtracting-2-surface-vectors-and-plotting-the-difference-contour/15165/2 "2024-08-03T03:15:22Z")

</div>

I have attached the state file here…i want to subtract sqrt(U\_Y\*U\_Y) from surface vectors 2 and the resampled data set and plot the difference.  
[paraview\_support.pvsm](https://discourse.paraview.org/uploads/short-url/hqOuvwqA978HBcvahzwpMnP9wx9.pvsm) (2.2 MB)
