# How to create a 3D mesh with different element sizes in different regions?

**URL:** <https://forum.gidsimulation.com/t/how-to-create-a-3d-mesh-with-different-element-sizes-in-different-regions/2752>\
**Category:** Mesh\
**Created:** [March 4, 2024, 8:09am UTC](https://forum.gidsimulation.com/t/how-to-create-a-3d-mesh-with-different-element-sizes-in-different-regions/2752 "2024-03-04T08:09:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WaynePowe](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/w/7bcc69/32.png) [@WaynePowe](https://forum.gidsimulation.com/u/WaynePowe)\
**Post date:** [March 4, 2024, 8:09am UTC](https://forum.gidsimulation.com/t/how-to-create-a-3d-mesh-with-different-element-sizes-in-different-regions/2752/1 "2024-03-04T08:09:33Z")

</div>

I am new to GiD and I am trying to create a 3D mesh for a fluid-structure interaction problem. I have a geometry that consists of a solid domain and a fluid domain, and I want to use different element sizes in different regions of the geometry. For example, I want to use smaller elements near the interface between the solid and the fluid, and larger elements in the far field. I have read the manual and the tutorials, but I could not find a way to do this. I have tried to use the mesh size function, but it seems to apply the same size to the whole geometry. Is there a way to define different mesh sizes for different regions or layers in GiD?

---

<div class="post-metadata">

**Author:** ![escolano](https://forum.gidsimulation.com/user_avatar/forum.gidsimulation.com/escolano/32/6_2.png) [@escolano](https://forum.gidsimulation.com/u/escolano)\
**Post date:** [March 11, 2024, 11:08am UTC](https://forum.gidsimulation.com/t/how-to-create-a-3d-mesh-with-different-element-sizes-in-different-regions/2752/2 "2024-03-11T11:08:10Z")

</div>

You can assign desired mesh sizes to geometrical entities  
See the ‘GiD user manual’ tutorial chapters about ‘Assign mesh sizes’

> **[ASSIGNING MESH SIZES - GiD user manual - Confluence](https://gidsimulation.atlassian.net/wiki/spaces/GUM/pages/2385551449/ASSIGNING+MESH+SIZES)**

and ‘Methods for mesh generation’

> **[METHODS FOR MESH GENERATION - GiD user manual - Confluence](https://gidsimulation.atlassian.net/wiki/spaces/GUM/pages/2385551591/METHODS+FOR+MESH+GENERATION)**

Can also assign to create a boundary layer mesh typical of CFD simulations (menu Mesh-\>Boundary layer)
