[Gmsh] Importing 2D step as a hole in square

Christophe Geuzaine cgeuzaine at ulg.ac.be
Mon Feb 4 18:04:40 CET 2013


Hi Hugo - Indeed, there was a little bug for Gmsh surfaces (".geo" surfaces) made of both Gmsh and OpenCASCADE curves.

This should now be fixed: give it a try with tomorrow's nightly build.

Christophe

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hybrid_surface.geo
Type: application/octet-stream
Size: 819 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20130204/44ad04bc/attachment.geo>
-------------- next part --------------


On 02 Feb 2013, at 23:39, Hugo Fernando Maia Milan <hugomaiamilan at hotmail.com> wrote:

> Dear Professor Christophe,
> 
> The step file follow in annex.
> 
> -----Mensagem Original----- From: Christophe Geuzaine
> Sent: Saturday, February 02, 2013 8:20 PM
> To: Hugo Fernando Maia Milan
> Subject: Re: [Gmsh] Importing 2D step as a hole in square
> 
> 
> Can you send the STEP to me directly (not to the mailing list so it is not made public) ? It should work...
> 
> Christophe
> 
> On 02 Feb 2013, at 23:13, Hugo Fernando Maia Milan <hugomaiamilan at hotmail.com> wrote:
> 
>> Hi,
>> 
>> If I define the hole in geo file Gmsh, appear the error: Unkown curve -8.
>> If i define in GUI, Gmsh crash.
>> 
>> -----Mensagem Original----- From: Christophe Geuzaine
>> Sent: Saturday, February 02, 2013 7:23 PM
>> To: Hugo Fernando Maia Milan
>> Cc: gmsh at geuz.org
>> Subject: Re: [Gmsh] Importing 2D step as a hole in square
>> 
>> 
>> Hugo - Can you try again with the latest nightly build?
>> 
>> On 02 Feb 2013, at 21:29, Hugo Fernando Maia Milan <hugomaiamilan at hotmail.com> wrote:
>> 
>>> Hi to all,
>>> 
>>> I'm creating a 2D surface in CAD and importing to Gmsh how step file.
>>> 
>>> I have created a geo file to define a square surrounded the surface. I want to define CAD surface and square as different things. Meshing this file, Gmsh create a mesh superposing both surfaces, without connections between this surfaces.
>>> 
>>> So, the possible way is to define the 2D surface as a hole of square in the geo file. However making this Gmsh Crash. When a try to define, in geo file, the lines of 2D as a surface, Gmsh crash.
>>> 
>>> If I don't define the surface and use the surface number provided by importing the step file and try to define this surface as hole in square, the Gmsh crash too.
>>> 
>>> I don't know any way to solve this problem. Someone know how to solve this problems?
>>> 
>>> I'm using gmsh-2.6.1-Windows in Windows 7.
>>> 
>>> Thanks,
>>> 
>>> Hugo Milan.
>>> 
>>> Follow the geo file:
>>> 
>>> Merge "180AD02step2D.step";
>>> nponts = 8;
>>> nlines = 8;
>>> Line Loop(2) = {1:nlines};
>>> Plane Surface(2) = {1};
>>> 
>>> lpontcel = 1;
>>> 
>>> Characteristic Length {1:nponts} = lpontcel;
>>> 
>>> xmin = General.MinX;
>>> xmax = General.MaxX;
>>> ymin = General.MinY;
>>> ymax = General.MaxY;
>>> zmax = General.MaxZ;
>>> 
>>> lc = 25;
>>> lx = (xmax - xmin)*6;
>>> ly = (ymax - ymin)*6;
>>> 
>>> 
>>> Point(10001) = { (xmax + xmin)/2 - lx, (ymax + ymin)/2 - ly, 0, lc};
>>> Point(10002) = { (xmax + xmin)/2 + lx, (ymax + ymin)/2 - ly, 0, lc};
>>> Point(10003) = { (xmax + xmin)/2 + lx, (ymax + ymin)/2 + ly, 0, lc};
>>> Point(10004) = { (xmax + xmin)/2 - lx, (ymax + ymin)/2 + ly, 0, lc};
>>> 
>>> Line(10001) = {10004, 10003};
>>> Line(10002) = {10003, 10002};
>>> Line(10003) = {10002, 10001};
>>> Line(10004) = {10001, 10004};
>>> Line Loop(10005) = {10002, 10003, 10004, 10001};
>>> Plane Surface(10006) = {10005, 2};
>>> 
>>> Characteristic Length {10001:10004} = lc;
>>> 
>>> Mesh.CharacteristicLengthFromCurvature = 1;
>>> _______________________________________________
>>> gmsh mailing list
>>> gmsh at geuz.org
>>> http://www.geuz.org/mailman/listinfo/gmsh
>> 
>> -- 
>> Prof. Christophe Geuzaine
>> University of Liege, Electrical Engineering and Computer Science
>> http://www.montefiore.ulg.ac.be/~geuzaine
>> 
>> 
>> 
> 
> -- 
> Prof. Christophe Geuzaine
> University of Liege, Electrical Engineering and Computer Science
> http://www.montefiore.ulg.ac.be/~geuzaine
> 
> 
> <180AD02step2D.step>

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine