[Gmsh] Conformal mesh on two parts

Zenker, Dr. Matthias Matthias.Zenker at erbe-med.com
Mon Jan 11 14:07:55 CET 2016


I did not check your stl files. However, if there are duplicated surfaces, gmsh cannot resolve those except for very simple cases. Check "Tools->Options->Geometry->General->Cut and merge faces" before merging the stl files into gmsh . If that doesn't work, you can export your stl shapes as geo, remove the duplicated faces manually and rebuild the volumes. This could be tedious depending on the complexity of your geometry.
AFAIK Salomé is the only free tool which can repair duplicated faces in many cases (it also has difficulties with some cases of curved surfaces, however). You have to make a partition from your geometry, see http://www.elmerfem.org/elmerwiki/index.php?title=Multiple_bodies_from_Salome_to_Elmer for some hints.



> -----Ursprüngliche Nachricht-----
> Von: Krzysztof Bzowski [mailto:kbzowski at agh.edu.pl]
> Gesendet: Donnerstag, 7. Januar 2016 09:44
> An: Johannes Wimmer; gmsh at geuz.org
> Betreff: Re: [Gmsh] Conformal mesh on two parts
> Thank you for quick reply.
> My example with cubes was very simplified - created to explain the problem.
> In practice I have a lot more complicated shapes, but general idea is the
> same.
> I have attached STL files to this email. They should work now.
> Best regards,
> Krzysztof
> On 2016-01-07 09:33, Johannes Wimmer wrote:
> > Hi Krzysztof,
> > I am not sure about the stl-files. When I open them in GMSH, nothing
> > appears on screen. Cannot be meshed either. If it was geo however, i
> > assume that you did not include the facets of your inner cube in the
> > surface loop of the outer cube.
> >
> > I am attaching an example that works. In line 67:
> >
> > Surface Loop(65) = {53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64};
> >
> > This should do the trick.
> >
> > Cheers,
> > Johannes

Erbe Elektromedizin GmbH Firmensitz: 72072 Tuebingen Geschaeftsfuehrer: Christian O. Erbe, Reiner Thede Registergericht: Stuttgart HRB 380137

More information about the gmsh mailing list