Hi Luca,

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

Attachment: bottle.geo
Description: Binary data


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 <[email protected]> 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
[email protected]
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

_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to