# Integration in the whole domain

**URL:** <https://pyfr.discourse.group/t/integration-in-the-whole-domain/219>\
**Category:** General\
**Created:** [26 July 2018 08:25 UTC](https://pyfr.discourse.group/t/integration-in-the-whole-domain/219 "2018-07-26T08:25:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![turbvs](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@turbvs](https://pyfr.discourse.group/u/turbvs)\
**Post date:** [26 July 2018 08:25 UTC](https://pyfr.discourse.group/t/integration-in-the-whole-domain/219/1 "2018-07-26T08:25:42Z")

</div>

Hi all,

I’m a first year PhD student and interested in calculating the volume integrals of expressions like (u.u + v.v + w.w) in the whole domain of Taylor-Green vortex problem.  
I’d like to do it within PyFR because I found that if I write the results and do the integrals in say, Paraview thereafter, the values dependent strongly on the level of interpolation during pyfr export (-d option). And if I do very fine interpolation the .vtu files become huge!

Has anyone done these volume integrals before? If yes, could you share the “plugin” please? If no, could someone point me towards the starting point within the code, for example fetching the mesh, solutions and the quadrature rules?

Any help is highly appreciated.

BR,  
Vishal Saini  
Loughborough University

---

<div class="post-metadata">

**Author:** ![turbvs](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@turbvs](https://pyfr.discourse.group/u/turbvs)\
**Post date:** [1 August 2018 08:18 UTC](https://pyfr.discourse.group/t/integration-in-the-whole-domain/219/2 "2018-08-01T08:18:17Z")

</div>

Thanks Niki for help. I’ll try out the script that works on uniform grids.

BR,  
Vishal

---

<div class="post-metadata">

**Author:** ![WillT](https://avatars.discourse-cdn.com/v4/letter/w/bc79bd/32.png) [@WillT](https://pyfr.discourse.group/u/WillT)\
**Post date:** [11 January 2021 19:51 UTC](https://pyfr.discourse.group/t/integration-in-the-whole-domain/219/3 "2021-01-11T19:51:27Z")

</div>

Since this topic was raised there is now an integration plugin available on the `PyFR/develop` branch.
