# How to solve laplace equation in a square domain

**URL:** https://community.freefem.org/t/how-to-solve-laplace-equation-in-a-square-domain/3577
**Category:** General Discussion
**Created:** [November 12, 2024, 6:39pm UTC](https://community.freefem.org/t/how-to-solve-laplace-equation-in-a-square-domain/3577 "2024-11-12T18:39:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Try\_everything](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Try\_everything](https://community.freefem.org/u/Try_everything)
#### Post date: [November 12, 2024, 6:39pm UTC](https://community.freefem.org/t/how-to-solve-laplace-equation-in-a-square-domain/3577/1 "2024-11-12T18:39:22Z")

</div>

I am trying to solve Laplace equation in a square domain with different boundary conditions.  
i am confused on doing the Neumann conditions, and type 4 conditions( 2 Dirichlet and Neumann conditions). I feel disappointed that i couldn’t learn from documentation. I feel grateful for your help and replies.Thank you very much!

---

<div class="post-metadata">

### Author: ![goutham2023](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/goutham2023/32/1759_2.png) [@goutham2023](https://community.freefem.org/u/goutham2023)
#### Post date: [November 13, 2024, 10:21am UTC](https://community.freefem.org/t/how-to-solve-laplace-equation-in-a-square-domain/3577/2 "2024-11-13T10:21:52Z")

</div>

Hi,  
There is an example in FreeFem++ documentation for solving the Laplace equation with mixed boundary conditions on a square domain. The problem includes both Dirichlet and Neumann boundary conditions. Hope this helps,  
[LaplaceRT.edp](https://community.freefem.org/uploads/short-url/773YnF93qo4FD5TQMO6eXUvmTgV.edp) (1.2 KB)

---

<div class="post-metadata">

### Author: ![Try\_everything](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Try\_everything](https://community.freefem.org/u/Try_everything)
#### Post date: [February 6, 2025, 4:58pm UTC](https://community.freefem.org/t/how-to-solve-laplace-equation-in-a-square-domain/3577/3 "2025-02-06T16:58:26Z")

</div>

Sorry for late reply, but your suggestion helped me. Thanks.
