[Gmsh] adaptive meshing/multi-resolution meshing in GMSH

Jean-Francois Remacle jean-francois.remacle at uclouvain.be
Wed Dec 23 15:53:06 CET 2009


Hello,

In fact, the problem is that your 2D mesh is so coarse that it  
intersects itself. You should
change the mesh size using the mesh size field tools of gmsh.

The command

gmsh foo.geo -clmin 13 -clmax 13 -3 -optimize

generates a 3D mesh that contains ~ 3,000,000 elements

of course gmsh allows more general control of mesh sizes than uniform.
You may want to read the documentation on Fields.

JF Remacle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: B.png
Type: image/png
Size: 204476 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20091223/1f6cacd1/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: A.png
Type: image/png
Size: 189529 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20091223/1f6cacd1/attachment-0001.png>
-------------- next part --------------



Le 22-d?c.-09 ? 15:08, zhwang a ?crit :

> Hello all,
> I have problem when i use GMSH for adaptive meshing (or saying:  
> multi-resolition meshing).
>
> In fact, I have exported CAD.stp from CAD software, and what I want  
> to do is to mesh .stp file in GMSH adaptively or we can say multi- 
> resolution meshing.
>
> I have explored documentation of GMSH, but I did not find so much  
> information.
>
> Some guys said it should firstly convert .stp file into .geo and  
> it's only this way to do the adaptive mshing in GMSH.
>
> But when I tried this idea, I met some errors, followed:
>           *************************
>           *************************
> I do like this:
> 1---open .stp file (exported from CAD software) in GMSH;
> 2---new a CAD.geo file in GMSH;
> 3--merge .stp file, and save as CAD.geo file created above;
> 4--using mesh module for meshing.
>
> However, I met some errors: Info    : Meshing volume 1 (Tetgen 
> +Delaunay)
> Error   : Self intersecting surface mesh, computing intersections  
> (this could take a while)
> Info    : 0 faces self-intersect
> Info    : Mesh 3D complete (24.8125 s)
> Warning : Reparam on face partially failed for curve 328 surface 10  
> at point 45.0486
> Warning : On the face 10 local (0.525753 45.0486) global (2852  
> 799.949 1985.29)
> Warning : On the edge 328 local (45.0486) global (2851.68 800 1984.87)
> Warning : Reparam on face partially failed for curve 423 surface 31  
> at point 117.592
> Warning : On the face 31 local (0.96069 117.592) global (2908.06  
> -799.906 1939.23)
> Warning : On the edge 423 local (117.592) global (2907.47 -800  
> 1938.48)
> Warning : Reparam on face partially failed for curve 537 surface 59  
> at point 117.592
> Warning : On the face 59 local (0.96069 117.592) global (4527.37  
> -799.906 674.086)
> Warning : On the edge 537 local (117.592) global (4526.78 -800  
> 673.333)
> Warning : Reparam on face partially failed for curve 630 surface 80  
> at point 45.0481
> Warning : On the face 80 local (0.525119 45.0481) global (4585.62  
> 799.948 630.832)
> Warning : On the edge 630 local (45.0481) global (4585.3 800 630.419)
> Info    : 9778 vertices 32608 elements
> Error   : ------------------------------
> Error   : Mesh generation error summary
> Error   :    36 warnings
> Error   :     1 error
> Error   : Check the full log for details
>
>        ********************************
>        ********************************
>
> Anyway, I failed to mesh adaptively.
> Could anyone help?
> Also I have attached CAD. stp file.
>
>
> Regards, Thanks in advance!
> ---
> zh.wang
> <CAD-stp.zip>_______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

----------------
Prof. Jean-Francois Remacle
Universite catholique de Louvain (UCL)
Tel : +32-10-472352 -- Mobile : +32-473-909930