[Gmsh] Strange Mesh using ThruSections

Christophe Geuzaine geuzaine at gmail.com
Thu May 17 08:51:43 CEST 2018


Use the latest snapshot: it fixes many small issues with the OpenCASCADE kernel, including setting of mesh sizes.

Christophe

> On 10 May 2018, at 00:23, Leonardo Roncetti <leonardo at techcon.eng.br> wrote:
> 
> I get a strange result when trying to mesh surfaces created with lines and ThruSections. 2 surfaces are meshed fine (1  and 4), but 2 and 3 have weird meshes. Code is below, as well as a picture.
>  
> lc=1.0;
> lcp=1.0;
> SetFactory("OpenCASCADE");
> // ********************************************
> // **************     Malha      **************
> // ********************************************
> Mesh.CharacteristicLengthFactor = 1.;
> Mesh.CharacteristicLengthMin = 0;
> Mesh.CharacteristicLengthMax = 1e22;
> //Mesh.RecombineAll = 1;
> // ********************************************
> // **************   Importing   **************
> // ********************************************
> Point(1) = {11.1370602317822, -7.48705927522542, 0.856847623780698, lcp};
> Point(2) = {11.6324935551766, -7.48705927522542, 0.856847623780698, lcp};
> Point(3) = {11.6324935551766, -6.83985372741768, 0.856847623780698, lcp};
> Point(4) = {11.1370602317822, -6.83985372741768, 0.856847623780698, lcp};
> Line(1) = {1, 2};
> Line(2) = {2, 3};
> Line(3) = {3, 4};
> Line(4) = {4, 1};
> Line Loop(1) = {1, 2, 3, 4};
> Point(5) = {11.1370602317822, -7.48705927522542, 0, lcp};
> Point(6) = {12.0250173524881, -7.48705927522542, 0, lcp};
> Point(7) = {12.0250173524881, -6.43573787853473, 0, lcp};
> Point(8) = {11.1370602317822, -6.43573787853473, 0, lcp};
> Line(5) = {5, 6};
> Line(6) = {6, 7};
> Line(7) = {7, 8};
> Line(8) = {8, 5};
> Line Loop(2) = {5, 6, 7, 8};
> Wire(300) = {1,2,3,4}; 
> Wire(301) = {5,6,7,8};
> Ruled ThruSections{300, 301}
>  
> Best regards,
> Leonardo
>  
>  
> <strange_mesh.jpg>_______________________________________________
> gmsh mailing list
> gmsh at onelab.info <mailto:gmsh at onelab.info>
> http://onelab.info/mailman/listinfo/gmsh <http://onelab.info/mailman/listinfo/gmsh>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180517/8ece6b3e/attachment-0001.html>


More information about the gmsh mailing list