[Gmsh] grouping surfaces into a surface loop and creating a volume generates unwanted surfaces

Christophe Geuzaine cgeuzaine at uliege.be
Wed Feb 21 16:09:26 CET 2018



> On 20 Feb 2018, at 00:04, Junhui Liu <junhui.liu at nrl.navy.mil> wrote:
> 
> I have generated surfaces and decided to group them into a volume. 
> 
> unstructured_Volume_surfaces_array[] = Surface "*”;
> Surface Loop(surf1) = {unstructured_Volume_surfaces_array[]};
> volume_index = news;
> Volume(volume_index) = {surf1};
> 
> Somehow duplicate surfaces appear and the indices of surfaces in the volume are not exact the same as I put inside the surface Loop. 
> I generated 115 surfaces, but after I group them into a volume, the number of surfaces becomes 182. 
> 

By default we try to build volumes that are correctly oriented - this indeed can generate new surfaces. You can disable this by setting Geometry.OCCAutoFix = 0;

> I used Gmsh 3.0.6, 1 with SetFactory("OpenCASCADE”);

Give the latest snapshot a try - it solves quite a few edge cases of the opencascade integration.

Christophe

> 
> I appreciate any help.
> 
> Junhui
> 
> 
> 
> _______________________________________________
> 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/20180221/ed900a99/attachment.html>


More information about the gmsh mailing list