# Mesh Adaption at an arbitrary list of boundaries

**URL:** <https://community.freefem.org/t/mesh-adaption-at-an-arbitrary-list-of-boundaries/1216>\
**Category:** General Discussion\
**Created:** [September 21, 2021, 7:33pm UTC](https://community.freefem.org/t/mesh-adaption-at-an-arbitrary-list-of-boundaries/1216 "2021-09-21T19:33:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinmo08](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/kevinmo08/32/217_2.png) [@kevinmo08](https://community.freefem.org/u/kevinmo08)\
**Post date:** [September 21, 2021, 7:33pm UTC](https://community.freefem.org/t/mesh-adaption-at-an-arbitrary-list-of-boundaries/1216/1 "2021-09-21T19:33:43Z")

</div>

Hi all,

I am trying to calculate a convection diffusion equation in 3 dimensions, but I know that my problem will have a boundary layer near a 2D wall.

I create a 2D mesh first, and then extended it into 3D. What I want to do is adapt the 2D mesh first locally near the boundary before I split it.

My problem is that if I were to just add more points at the boundary when making the mesh, it creates a lot more degrees of freedom far away from the wall. Is there a command or a workaround to adapt a mesh only near the wall surface, and it exponentially decays to the normal mesh after a certain distance?

Thank you  
Kevin
