# How to 1D integrate along a path inside mesh

**URL:** https://community.freefem.org/t/how-to-1d-integrate-along-a-path-inside-mesh/700
**Category:** General Discussion
**Created:** [December 22, 2020, 11:14pm UTC](https://community.freefem.org/t/how-to-1d-integrate-along-a-path-inside-mesh/700 "2020-12-22T23:14:22Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![Emma87](https://avatars.discourse-cdn.com/v4/letter/e/e47774/32.png) [@Emma87](https://community.freefem.org/u/Emma87)
#### Post date: [September 15, 2021, 12:52am UTC](https://community.freefem.org/t/how-to-1d-integrate-along-a-path-inside-mesh/700/6 "2021-09-15T00:52:33Z")

</div>

see it:

> [@How to 1d intergrate along x/y direction in 2d mesh](https://community.freefem.org/t/how-to-1d-intergrate-along-x-y-direction-in-2d-mesh/986):
>
> Now I have a mesh Th defined in the square from x = 0 to 1, y = 0 to 1. I solve a PDE on this mesh, getting solution u. Then I want to know the line integral of u along y to get ∫𝑢𝑑𝑦, but I don’t know how to implement

---

_[View the full topic](https://community.freefem.org/t/how-to-1d-integrate-along-a-path-inside-mesh/700)._
