[Gmsh] Mesh of a bottle

Christophe Geuzaine cgeuzaine at uliege.be
Mon Jul 9 21:17:16 CEST 2018


Hi Luca,

Do you want to generate a fully structured grid? Then the easiest is to directly extrude the mesh - see the attached file:



Note that there is a small trick to get a fully extruded mesh in your case, as we can currently only extrude meshes on OpenCASCADE geometries by rotation angles (strictly) smaller than 2*pi. I thus had to rotate in 2 steps. However this would lead to duplicate vertices on the seam - because if we apply "Coherence" (or "BooleanFragments") the geometrical entities will change... which will prevent the mesh extrusion to work. So the trick is:

- extrude in 2 parts
- mesh
- remove the duplicate vertices "by hand" with the "Coherence Mesh" command.

This is a bit ugly, but at least it works ;-)

Christophe


> On 3 Jul 2018, at 09:20, Luca Verzeroli <luca.verzeroli at serioplast.com> wrote:
> 
> Hi,
> 
> I'm a researcher at the University of Bergamo (Italy). Me and my team are dealing with a FEM simulation involving bottles. We are trying to create a 3D mesh of a simple bottle obtained by rotating a section. I'm attaching  the example and the geo file.
> 
> The main difficulties we faced with is the insertion of almost two layers in the thickness. In the attachments we are trying to use two layers but we should add some more.
> 
> Could someone give us some advice to realize a correct mesh?
> 
> <Screenshot from 2018-07-03 09-04-31.png><Screenshot from 2018-07-03 09-05-14.png><Screenshot from 2018-07-03 09-06-17.png><bottle.geo>_______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine

Free software: http://gmsh.info | http://getdp.info | http://onelab.info

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180709/6f48b6c0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bottle.geo
Type: application/octet-stream
Size: 2260 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20180709/6f48b6c0/attachment.geo>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180709/6f48b6c0/attachment-0001.html>


More information about the gmsh mailing list