# 2D mesh generation for CFD analysis of a wing profile

**URL:** <https://www.simscale.com/forum/t/2d-mesh-generation-for-cfd-analysis-of-a-wing-profile/61702>\
**Category:** Fluid Flow / CFD\
**Created:** [January 11, 2017, 7:12pm UTC](https://www.simscale.com/forum/t/2d-mesh-generation-for-cfd-analysis-of-a-wing-profile/61702 "2017-01-11T19:12:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eduardocclc](https://www.simscale.com/forum/user_avatar/www.simscale.com/eduardocclc/32/10049_2.png) [@eduardocclc](https://www.simscale.com/forum/u/eduardocclc)\
**Post date:** [January 11, 2017, 7:12pm UTC](https://www.simscale.com/forum/t/2d-mesh-generation-for-cfd-analysis-of-a-wing-profile/61702/1 "2017-01-11T19:12:19Z")

</div>

Hello,

I´m interested in creating a mesh similar to the one from this tutorial, but I´m having trouble since the tutorial starts with the simulation setup.

First, I would like to know how can I create that “C” type inlet, or if it´s ok to use a square bounding box as usual.

Second I would like to confirm if I should use 1m for the size of the bounding box in the z coordenate and then just apply the 2D Empty boundary condition to the sides of the domain.

---

<div class="post-metadata">

**Author:** ![jousefm](https://www.simscale.com/forum/user_avatar/www.simscale.com/jousefm/32/34908_2.png) [@jousefm](https://www.simscale.com/forum/u/jousefm)\
**Post date:** [January 11, 2017, 8:19pm UTC](https://www.simscale.com/forum/t/2d-mesh-generation-for-cfd-analysis-of-a-wing-profile/61702/2 "2017-01-11T20:19:02Z")

</div>

Hi @eduardocclc,

you might have a look at the CFD master class where the airfoil is covered: [CFD Master Class - NACA0012 Airfoil](https://www.simscale.com/forum/t/step-by-step-tutorial-for-session-1-of-cfd-master-class/42428)

There you can see how the mesh can be generated. Boundary conditions will also be covered there.

Some small hints concerning the setup:

• In general the C-grid is the best one for this case because the mesh quality will be the best at the trailing edge

• Since the C-grid is symmetric, it is optimal for various angles of attack.

• When using non-reflective boundary conditions L\_Z & L\_Y can be 20-25 times the length of the profile. L\_B has to be a little bit higher 25-30 times the length of the profile.

 ![](https://www.simscale.com/forum/uploads/default/original/2X/d/db8a4416808c42c73e66fd4cedcf890feb4fb366.jpg)

• You need approx. 30-50 points between the profile and L\_Z

• On the profile itself you need approx. 100 points to see pressure and velocity gradients properly

Feel free to add more important points to this project that might be interesting. (@pfernandez, @dylan, @1318980)

Best,

Jousef

---

<div class="post-metadata">

**Author:** ![dylan](https://www.simscale.com/forum/user_avatar/www.simscale.com/dylan/32/2798_2.png) [@dylan](https://www.simscale.com/forum/u/dylan)\
**Post date:** [January 12, 2017, 7:33am UTC](https://www.simscale.com/forum/t/2d-mesh-generation-for-cfd-analysis-of-a-wing-profile/61702/3 "2017-01-12T07:33:56Z")

</div>

I don’t think there’s a way to create 2D mesh with the hex-dominant parametric algorithm on SimScale yet, because the underlying SnappyHexMesh tool generates 3D cells only. There is a way to get a 2D slice from a 3D mesh, but you will need to work with native OpenFOAM. [SnappyHexMesh - OpenFOAMWiki](https://openfoamwiki.net/index.php/SnappyHexMesh)

Because the mesh tool doesn’t create 2D cells, you can’t use empty as BC on the sides.

You don’t need a C-grid in this case, because of the unstructured nature of the cells. It won’t matter even if you want to vary AOA.

---

<div class="post-metadata">

**Author:** ![mehakkar123](https://www.simscale.com/forum/letter_avatar/mehakkar123/32/6_22734026db12803ebb3e059622ac3534.png) [@mehakkar123](https://www.simscale.com/forum/u/mehakkar123)\
**Post date:** [March 25, 2017, 6:45am UTC](https://www.simscale.com/forum/t/2d-mesh-generation-for-cfd-analysis-of-a-wing-profile/61702/4 "2017-03-25T06:45:28Z")

</div>

i have a one problem in relaxation factor it creates the instability in the solution. can you look what is the problem

> **[SimScale Login](https://www.simscale.com/workbench/?pid=1963253659363330458#tab_1-0)**
>
> Log in to your SimScale account. SimScale makes high-fidelity engineering simulation technically and economically accessible. At any scale. In the cloud.
