# How to Handle Three-Dimensional Boundary Conditions

**URL:** https://community.freefem.org/t/how-to-handle-three-dimensional-boundary-conditions/3664
**Category:** General Discussion
**Created:** [December 29, 2024, 5:33am UTC](https://community.freefem.org/t/how-to-handle-three-dimensional-boundary-conditions/3664 "2024-12-29T05:33:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![raphael](https://avatars.discourse-cdn.com/v4/letter/r/edb3f5/32.png) [@raphael](https://community.freefem.org/u/raphael)
#### Post date: [December 29, 2024, 5:33am UTC](https://community.freefem.org/t/how-to-handle-three-dimensional-boundary-conditions/3664/1 "2024-12-29T05:33:50Z")

</div>

Hello guys, I am encountering some issues while trying to use the first-kind Nedelec elements. I am not sure how to apply the boundary conditions v×n=0 and ∇×u=0. I am unsure if setting the boundary degrees of freedom Integral v⋅t=0 along the boundary will ensure the boundary conditions (v×n=0 and ∇×u=0), or if there are other ways to handle it, when conducting numerical experiments 🥹

---

<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: [December 30, 2024, 1:06pm UTC](https://community.freefem.org/t/how-to-handle-three-dimensional-boundary-conditions/3664/2 "2024-12-30T13:06:52Z")

</div>

Hello,  
Your question is strongly related to the setting of an appropriate variational formulation.  
You may look at [About MHD equations](https://community.freefem.org/t/about-mhd-equations/3103), otherwise you have to say more on the specific form of your equations and boundary conditions.

---

<div class="post-metadata">

### Author: ![Alice](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@Alice](https://community.freefem.org/u/Alice)
#### Post date: [January 9, 2025, 9:00am UTC](https://community.freefem.org/t/how-to-handle-three-dimensional-boundary-conditions/3664/3 "2025-01-09T09:00:03Z")

</div>

Did you solve your problem? I have the same issue
