CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [blockMesh] How to generate this kind of grid with slope bottom (https://www.cfd-online.com/Forums/openfoam-meshing/83967-how-generate-kind-grid-slope-bottom.html)

lin January 17, 2011 04: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 09: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 http://www.openfoam.com/docs/user/me...23-1270005.1.1 (at the bottom) to know how vertices are numbered.

lin January 17, 2011 22: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 04: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 22:54.