[Gmsh] Problem with 3-D meshing cube with holes

David Colignon David.Colignon at ulg.ac.be
Thu Sep 23 10:18:27 CEST 2010

Hi Laurent,

in this case, there is no hole, your volume is delimited by only one surface. So, by removing the definition of your 2 
Surface Loop and your Volume in your .geo file, and by defining the volume with the GUI (Geometry->Elementary 
entities->Add->New->Volume), then picking just one surface, Gmsh should automatically select all the remaining surfaces 
and define the volume. This is not the case here, so I suspect there is a problem with the definition of one or more 



David Colignon, Ph.D.
Collaborateur Logistique du F.R.S.-FNRS
CÉCI - Consortium des Équipements de Calcul Intensif
ACE - Applied & Computational Electromagnetics
Sart-Tilman B28
Université de Liège
4000 Liège - BELGIQUE
Tél: +32 (0)4 366 37 32
Fax: +32 (0)4 366 29 10
WWW:    http://hpc.montefiore.ulg.ac.be/
Agenda: http://www.google.com/calendar/embed?src=david.colignon%40gmail.com

On 22/09/10 19:39, Laurent Mahéo wrote:
> Hello Gmsh users,
> I am trying to mesh a cube with holes (spheres) and I have some problems.
> - When the sphere is completely inside the cube, there is no problem.
> - When a part of the sphere is located in a face of the cube, I build the new
> outside geometry and it works.
> - But when a part of the sphere is located in a edge of the cube, I build the
> new outside geometry and it does not work.
> The Gmsh software gives me :
> terminate called after throwing an instance of 'std::bad_alloc'
>    what():  std::bad_alloc
> Abandon
> I do not manage to see where the problem is. If you have some suggestions ...
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh