# Discontinuous Galerkin Stokes Problem

**URL:** https://community.freefem.org/t/discontinuous-galerkin-stokes-problem/3082
**Category:** General Discussion
**Created:** [April 3, 2024, 11:38pm UTC](https://community.freefem.org/t/discontinuous-galerkin-stokes-problem/3082 "2024-04-03T23:38:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Aubium](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@Aubium](https://community.freefem.org/u/Aubium)
#### Post date: [April 3, 2024, 11:38pm UTC](https://community.freefem.org/t/discontinuous-galerkin-stokes-problem/3082/1 "2024-04-03T23:38:14Z")

</div>

Good evening members,

I’m struggling with the implementation of an incompressible Stokes equation using Disontinuous Galerkin method. Here are my questions :

- How to write the integral on border edges ?
- How to write the projection into Pk of u\_h ? (pi\_k(u\_h)) ?

And if you have a sample, it would be of great help. Thank you !

---

<div class="post-metadata">

### Author: ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)
#### Post date: [April 4, 2024, 4:34am UTC](https://community.freefem.org/t/discontinuous-galerkin-stokes-problem/3082/2 "2024-04-04T04:34:31Z")

</div>

First read example on DG for Laplace equation

> <https://github.com/FreeFem/FreeFem-sources/blob/master/examples/tutorial/LapDG2.edp>

---

<div class="post-metadata">

### Author: ![Aubium](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@Aubium](https://community.freefem.org/u/Aubium)
#### Post date: [April 4, 2024, 4:52am UTC](https://community.freefem.org/t/discontinuous-galerkin-stokes-problem/3082/3 "2024-04-04T04:52:30Z")

</div>

(post deleted by author)

---

<div class="post-metadata">

### Author: ![LXX](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@LXX](https://community.freefem.org/u/LXX)
#### Post date: [May 10, 2025, 9:29am UTC](https://community.freefem.org/t/discontinuous-galerkin-stokes-problem/3082/4 "2025-05-10T09:29:02Z")

</div>

May I ask if you’ve solved it? Now I have a similar problem when calculating the order of convergence of stokes equation?
