CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   gmsh mesh (

lulo October 27, 2011 11:11

gmsh mesh
hi everybody

I need to solve the flow over a sloping bed in a 3D mesh.
I therefore need the cells at the boundary wall to be as rectangular as possible.
when i generate the mesh i obtain only vertical lines in my depth direction and this results in a highly skewed mesh.

how can i tell the program that i want all the angles of the cell to be as perpendicular as possible?
Is there any command in gmsh that can do this?


GregorS October 28, 2011 08:50

Can you attach your .geo file, so we can see the exact geometry. Then it will be easier to give some advice.

lulo October 28, 2011 18:36

1 Attachment(s)

i attached the file.
as you can see I have a highly skewed mesh.
and i want to have the cells at the bottom boundary layer to be rectangular and not rhomboid.

is there any algorithm i can use??

GregorS October 29, 2011 04:55

I don't know if I understand you correctly, but if you use Recombine Surface, you get mesh like this

lulo October 29, 2011 05:18

2 Attachment(s)

I explained myself badly... sorry!
Lets try to explain it with a picture. You can find that attached.
The vertical direction in the figure represents the z axis.
As you can see my actual mesh(left) has the boundary cells rhomboid shaped at the bottom (i am simulating a boundary layer flow so i need cells to be rectangular)

I want to have them as rectangular as possible like in the sketch i made (right).

I now did Recombine Mesh and my mesh is now uploaded (attached).

All times are GMT -4. The time now is 06:35.