# Can 'Integrate variables' be used for summation of nodal values?

**URL:** https://discourse.paraview.org/t/can-integrate-variables-be-used-for-summation-of-nodal-values/16571
**Category:** ParaView Support
**Created:** [May 6, 2025, 7:02am UTC](https://discourse.paraview.org/t/can-integrate-variables-be-used-for-summation-of-nodal-values/16571 "2025-05-06T07:02:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![simonw](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/34f0e0/32.png) [@simonw](https://discourse.paraview.org/u/simonw)
#### Post date: [May 6, 2025, 7:02am UTC](https://discourse.paraview.org/t/can-integrate-variables-be-used-for-summation-of-nodal-values/16571/1 "2025-05-06T07:02:28Z")

</div>

Suppose I have a vtu file containing a vector valued field quantity (three values + magnitude per node) on an unstructured 3d grid. I apply a slice filter to extract a snippet of the volume, e.g.,

 ![image](https://discourse.paraview.org/uploads/default/original/3X/f/4/f48111d90dae00fe182dae1edefd356f7f6927d4.png)

Without a python script, is there a filter/feature to compute the total sum of (visible) nodal values for each component? I have thought of the ‘Integrate Variables’ filter, but I guess it will not perform a simple summation over (unique) nodal values for PointData?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 6, 2025, 9:07am UTC](https://discourse.paraview.org/t/can-integrate-variables-be-used-for-summation-of-nodal-values/16571/2 "2025-05-06T09:07:14Z")

</div>

DescriptiveStatistics should do the trick

---

<div class="post-metadata">

### Author: ![simonw](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/34f0e0/32.png) [@simonw](https://discourse.paraview.org/u/simonw)
#### Post date: [May 6, 2025, 9:18am UTC](https://discourse.paraview.org/t/can-integrate-variables-be-used-for-summation-of-nodal-values/16571/3 "2025-05-06T09:18:19Z")

</div>

After DescriptiveStatistics, Minimum/Maximum are correct, but not the sum as some nodes are repeated multiple times (shared between elements). How to tackle that?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 6, 2025, 9:21am UTC](https://discourse.paraview.org/t/can-integrate-variables-be-used-for-summation-of-nodal-values/16571/4 "2025-05-06T09:21:27Z")

</div>

You may want to use CleanToGrid or Clean first with merge point enabled to clean it up.

---

<div class="post-metadata">

### Author: ![simonw](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/34f0e0/32.png) [@simonw](https://discourse.paraview.org/u/simonw)
#### Post date: [May 6, 2025, 9:57am UTC](https://discourse.paraview.org/t/can-integrate-variables-be-used-for-summation-of-nodal-values/16571/5 "2025-05-06T09:57:44Z")

</div>

Got it running with CleanToGrid. Does the Integrate Variables filter provided some sort of weighted sum of the nodal values or it it completely off for my purpose?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 6, 2025, 10:01am UTC](https://discourse.paraview.org/t/can-integrate-variables-be-used-for-summation-of-nodal-values/16571/6 "2025-05-06T10:01:21Z")

</div>

IntegrateVariables would also take length/surface/volume into consideration, which doesnt seem to be needed in your case.
