CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Native Meshers: blockMesh (
-   -   How to generate this kind of grid with slope bottom (

lin January 17, 2011 05:43

How to generate this kind of grid with slope bottom
1 Attachment(s)
Hi , OF community, I want to generate a grid with a slope, please see the figure attached. I just want to know whether there is an easy way to generate it?

Now my plan is to divide the vertical layers into 4 parts, and then divide each part into a triangle grid and the rectangular one, and use blockMesh to generate it.

The problem is that, as the number of vertical layers increases, the work is quite tedious and easy to make a mistake.

I wonder if anyone has a better idea?

McCarra January 17, 2011 10:40

Define two blocks using blockMesh. One block for the triangular part and the other for the rectangle.

To define the rectangular block use hex.
To define the triangular block use wedge. See (at the bottom) to know how vertices are numbered.

lin January 17, 2011 23:23

Thanks ,McCarra
I will try this method. But still I'm not sure whether this is ok. Since the points at the slope edge should be connected to the points at both the upper and the right edge at the sametime. I will report back later.

McCarra January 18, 2011 05:56

I understand. The thing is not that easy I think.

I don't know how to keep the mesh in the triangular block vertical and horizontal as it is in the rectangular block.

Good luck and keep us informed!

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