# How to solve 2D fractional diffusion equation with convex domain in freeFeem?

**URL:** <https://community.freefem.org/t/how-to-solve-2d-fractional-diffusion-equation-with-convex-domain-in-freefeem/3688>\
**Category:** General Discussion\
**Created:** [January 12, 2025, 1:43pm UTC](https://community.freefem.org/t/how-to-solve-2d-fractional-diffusion-equation-with-convex-domain-in-freefeem/3688 "2025-01-12T13:43:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kasim-Rabayo](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kasim-Rabayo](https://community.freefem.org/u/kasim-Rabayo)\
**Post date:** [January 12, 2025, 1:43pm UTC](https://community.freefem.org/t/how-to-solve-2d-fractional-diffusion-equation-with-convex-domain-in-freefeem/3688/1 "2025-01-12T13:43:04Z")

</div>

Hi-I need know how to solve 2D fractional diffusion equation with convex domain in Freefem.

---

<div class="post-metadata">

**Author:** ![fb77](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/fb77/32/3796_2.png) [@fb77](https://community.freefem.org/u/fb77)\
**Post date:** [January 12, 2025, 2:38pm UTC](https://community.freefem.org/t/how-to-solve-2d-fractional-diffusion-equation-with-convex-domain-in-freefeem/3688/2 "2025-01-12T14:38:55Z")

</div>

Hello,  
Some methods are proposed in

> **[Numerical Methods for Fractional Diffusion](https://arxiv.org/abs/1707.01566)**
>
> We present three schemes for the numerical approximation of fractional diffusion, which build on different definitions of such a non-local process. The first method is a PDE approach that applies to the spectral definition and exploits the extension...

It seems to be feasible in FreeFem.

---

<div class="post-metadata">

**Author:** ![kasim-Rabayo](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kasim-Rabayo](https://community.freefem.org/u/kasim-Rabayo)\
**Post date:** [January 12, 2025, 2:59pm UTC](https://community.freefem.org/t/how-to-solve-2d-fractional-diffusion-equation-with-convex-domain-in-freefeem/3688/3 "2025-01-12T14:59:18Z")

</div>

Thank you for your response! I need to solve the equation by using BEGM, but freefem code challenging me.

---

<div class="post-metadata">

**Author:** ![Monirul25](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/monirul25/32/3287_2.png) [@Monirul25](https://community.freefem.org/u/Monirul25)\
**Post date:** [January 12, 2025, 3:12pm UTC](https://community.freefem.org/t/how-to-solve-2d-fractional-diffusion-equation-with-convex-domain-in-freefeem/3688/4 "2025-01-12T15:12:11Z")

</div>

Respected Professor, Can you share some **FreeFem++ code of fractional partial differential equation of elliptic (Poisson Problem with non-homogeneous Dirichlet boundary conidition)and parabolic problem(Heat equation with non-homogeneous Dirichlet boundary conidition)**. Thanks in advance. It will be great help for me if get some demo code of this.

---

<div class="post-metadata">

**Author:** ![fb77](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/fb77/32/3796_2.png) [@fb77](https://community.freefem.org/u/fb77)\
**Post date:** [January 12, 2025, 3:43pm UTC](https://community.freefem.org/t/how-to-solve-2d-fractional-diffusion-equation-with-convex-domain-in-freefeem/3688/5 "2025-01-12T15:43:50Z")

</div>

I don’t have such code…

---

<div class="post-metadata">

**Author:** ![Monirul25](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/monirul25/32/3287_2.png) [@Monirul25](https://community.freefem.org/u/Monirul25)\
**Post date:** [January 12, 2025, 4:10pm UTC](https://community.freefem.org/t/how-to-solve-2d-fractional-diffusion-equation-with-convex-domain-in-freefeem/3688/6 "2025-01-12T16:10:24Z")

</div>

Okay thanks sir. No problem. I am trying that.
