CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   Onera M6 Wing Mesh (

salvoblack March 18, 2011 09:59

Onera M6 Wing Mesh
I need a very detailed mesh (about 3 million points) of a Onera M6 or any other wing. I have to make calculations of transition.
This is very important because a have a mesh of the Onera M6 with only 300000 points, but the results are no good.
Can someone send it or tell me how to do??

cnsidero March 18, 2011 21:21

1 Attachment(s)
I previously wrote a Fortran program to uniformly subdivide 3D multi-block, formatted PLOT3D files for the purpose of grid dependency studies. (i.e. It places a point between each pair of points therefore multiplying the number of cells in each direction by 2 for a factor of 8 increase of 3D cells). If you grab the PLOT3D file from the Onera M6 study on the NPARC validation site

using my program you can refine the mesh. I tested it and it works for this file. The initial mesh has 294,912 cells (306,577 points) and the refined mesh has 2,395,296 cells (2,405,665 points) - pretty close to what you're looking for. And of course you can do it as many times as you want.

As this is a simple subdivision, it will only half the near wall spacing while increasing the cell count by a factor 8. Meaning it's probably not the most efficient way to increase the resolution but you won't need a mesh generator!

To make it work, compile the attached Fortran source file (e.g.)

gfortran -o REFINEPLOT3D -mcmodel=medium refinePlot3D.f

(note: you need the -mcmodel=medium option or it won't compile)

Once its compiled, feed it the PLOT3D file you want to subdivide from stdin (e.g.)

./REFINEPLOT3D < m6wing.x

and it will write out the subdivided PLOT3D file to "refine.x". Finally to get it to work with OpenFOAM you'll have to use the 'plot3DToFoam' converter and then the 'autoPatch' tool to recover the boundary patches.

Oh and this program comes with no warranties or support so if doesn't work for your PLOT3D files read the source and modify it to your liking.

Good Luck! -Chris

malik December 2, 2012 13:37


can anyone plz send me the geometry of ONERA M6 wing that i can open in ICEM or gambit.
My email address is

I will really thankful


malik January 23, 2013 07:09


Does anyone have the 3D mesh of ONERA M6 wing that I can open in ICEM. i need coarse and fine mesh. If anyone has it, can you plz send it on . i need it urgently

Many thanks in advance

AliE April 23, 2020 06:24

Hello Guys,

This is a quite old post, but since the M6 test case is an evergreen, I attach here the mesh in OF format (the original one, 300k cells). Two considerations:
- The fortran routine works like a charm (many thanks), but you have to modify it if you want to retrieve the original mesh of 300k cells (justwrite x,y,z instead of Xref, yRef, zRef). If you want the refiened one of about 3M, simply run the fortan program to generate a valid plot3D file as already exaplained.
- The mesh on the NASA website looks to be broken if you attempt to convert in in OF.


Tangofernandes123890 January 13, 2021 14:30

Onera M6
Hi Everyone,
I was wondering if anyone could please send the 3D geometry for the Onera M6 wing so that I can import it on ICEM as well as the 3D mesh generated for it on ICEM.

This will be really helpful. My email is

Thank you!

mAlletto January 16, 2021 08:07

There is a tutorial in OF which calculates the flow around the onera M6 wing:

the mesh is done however with snappyHexMesh. The results are however ok.

HPE January 16, 2021 15:55

Hello Michael,

Thanks a lot for this excellent tutorial!

I wonder whether you have ever tried PIMPLE/PISO on the case (e.g. rhoPimpleFoam)?

If so, what were your impressions about the numerical stability of these solvers?

mAlletto January 17, 2021 01:16

On this I actually never try. But on other cases ( and ) where rhoSimpleFoam did not converge, I used with succhess rhoPimpleFoam with a local Euler scheme to get a steady state solution

HPE January 17, 2021 08:34

excellent, thank you!

Tangofernandes123890 January 23, 2021 11:52

Onera m6 icem meshing
Hi everyone,
I require some help in meshing the Onera m6 wing on Icem , I have done the initial blocking however due to the rounded tip it causes a complication. If anyone has the file for icem meshing or can help meh with the blocking strategy would be really helpful.

thank you

All times are GMT -4. The time now is 12:00.