[Gmsh] Strange Mesh using ThruSections

Leonardo Roncetti leonardo at techcon.eng.br
Thu May 10 00:23:26 CEST 2018


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

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180509/5ec576b5/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strange_mesh.jpg
Type: image/jpeg
Size: 58728 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20180509/5ec576b5/attachment-0003.jpg>


More information about the gmsh mailing list