# [Gmsh] 3D meshing problem at different extrude numbers of layer

 Register Blogs Members List Search Today's Posts Mark Forums Read

November 11, 2021, 03:23
3D meshing problem at different extrude numbers of layer
#1
New Member

deoga Lee
Join Date: Dec 2020
Posts: 2
Rep Power: 0
Hi everyone, I have a problem with meshing for OpenFOAM.

To make 3d mesh(.msh),
1. first, I made 2D surfaces and divided like this
Quote:
 Point(1 ) = {0, 0, 0, 1.0}; Point(2 ) = {1, 0, 0, 1.0}; Point(3 ) = {3, 0, 0, 1.0}; Point(4 ) = {0, 2, 0, 1.0}; Point(5 ) = {2, 2, 0, 1.0}; Point(6 ) = {3, 2, 0, 1.0}; Line(1) = {4, 1}; Line(2) = {1, 2}; Line(3) = {2, 3}; Line(4) = {3, 6}; Line(5) = {6, 5}; Line(6) = {5, 4}; Line(7) = {5, 2}; Curve Loop(1) = {6, 1, 2, -7}; Plane Surface(1) = {1}; Curve Loop(2) = {5, 7, 3, 4}; Plane Surface(2) = {2};
It can be seen at 'first_step(2D domain).PNG'.

2. second, I extruded surfaces like this.
Quote:
 Extrude {0, 0, 1} { Surface{1}; Layers{2}; Recombine; } Extrude {0, 0, 1} { Surface{2}; Layers{10}; Recombine; }
One of the two side-by-side surfaces was divided into 2 layers, and the other was divided into 10 layers.
And I got the problem in this step.

The error message is as follows, and the result can be checked at 'second_step(error view).PNG'.
Quote:
 Error : Could not find extruded node (2, 2, 0.1) in surface 38 Error : Could not find extruded node (1, 0, 0.1) in surface 46 . . . Error : Could not find extruded vertex (1.3750000001248, 0.75000000024958, 0.1) . . .

I have attached the whole '.geo' file.
Attached Images
 first_step(2D domain).PNG (55.9 KB, 10 views)

 Tags gmsh extrude, gmsh files, meshing 3d, meshing basics