[Gmsh] hi,ask a question about the gmsh.

Guoqiang Xue g.xue.1 at research.gla.ac.uk
Wed Aug 29 15:27:23 CEST 2012


Dear, everyone
Does somebody know that how can i do the mesh using two different type shapes?
That is to say, as for the volume which has two parts. i want to mesh the top part using triangle and the bottom part is rectangle ?
how can i do it? i just can mesh using only one shape mesh////
thank you for your help.
cheers
On 2 Aug 2012, at 12:02, Serban Georgescu wrote:

> Thanks a lot!
> I have recompiled the svn version and now it works as fast as 2.5.
> This really helps me a great deal.
> 
> Cheers,
> Serban
> 
> 
> On 2 Aug 2012, at 11:16, Christophe Geuzaine <cgeuzaine at ulg.ac.be> wrote:
> 
>> 
>> On 02 Aug 2012, at 10:00, Serban Georgescu <serbange at 09.alumni.u-tokyo.ac.jp> wrote:
>> 
>>> Hi Christophe,
>>> 
>>> Thanks for the quick reply.
>>> I have tried "-v 3" but that removes almost all meshing output, including information that is quite useful to me (e.g. time taken in 2D and 3D meshing, time for optimization, resulting number of elements). So I was looking for a way that removes that extra output and leaves just the "important" information. Basically, I would like to get something like it was for Gmsh 2.5, when Netgen was not that verbose.
>>> Do you know a way to do this?
>> 
>> I've removed the "testout" in svn; this should match what we did in 2.5.
>> 
>> Thanks for the feedback!
>> 
>>> 
>>> Thanks again!
>>> Serban
>>> 
>>> On 2 Aug 2012, at 07:20, Christophe Geuzaine <cgeuzaine at ulg.ac.be> wrote:
>>> 
>>>> 
>>>> Hi Serban - Use "-v 3" ?
>>>> 
>>>> On 01 Aug 2012, at 14:39, Serban Georgescu <serbange at 09.alumni.u-tokyo.ac.jp> wrote:
>>>> 
>>>>> Hi guys,
>>>>> 
>>>>> I am have been using Gmsh for an year or so with very good results (and I am very grateful to the developers for the wonderful work).
>>>>> Recently, I switched to version 2.6 (from 2.5) and I found that for some of the models the meshing time is much increased.
>>>>> 
>>>>> The main reason for this is the large amount of output that Netgen generates.
>>>>> Basically, Netgen outputs loads of the following Info:
>>>>> 
>>>>>>>>>> Info    : Freezone:
>>>>> Info    : (0, 0, 0)
>>>>> Info    : (1.2, -5.5e-17, -3.1e-17)
>>>>> Info    : (-0.45, 1, 2.9e-18)
>>>>> Info    : (-2.3, 1.2, -0.31)
>>>>> Info    : (-0.54, 0.74, -0.1)
>>>>> Info    : (-0.96, 0.74, -0.1)
>>>>> Info    : (-0.38, 0.38, -0.1)
>>>>> Info    : Mapping found!!: Rule Tetrahedron Vis a Vis Point with 3 edges (1)
>>>>> Info    : 3 1 2 7
>>>>> Info    : 3 = 3
>>>>>>>>>> 
>>>>> Here are some results for one of the models:
>>>>> Gmsh 2.5 -> ~ 6 sec
>>>>> Gmsh 2.6 with output redirected to file à ~ 11 sec
>>>>> Gmsh 2.6 with output redirected to /dev/nullà ~ 8 sec
>>>>> Gmsh 2.6 with manually editingcontrib/Netgen/nglib_gmsh.cpp  by commenting line 75 (//testout = new ostream(new mystreambuf());) and un-commenting  line 66 (testout = new ofstream ("test.out");) à ~ 5 sec
>>>>> 
>>>>> So basically, in this case, the extra verbosity from netgen makes the mesher take twice as much.
>>>>> I have other cases where the increase is much larger.
>>>>> 
>>>>> My question (and wish) is:  would it be possible to connect this output to the Gmsh verbosity argument (-v)?
>>>>> I would be quite happy to (at least try to) add this functionality myself should somebody tell me how could I get access the verbosity value from contrib/Netgen/nglib_gmsh.cpp .
>>>>> 
>>>>> Thanks in advance,
>>>>> Serban
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> 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
>> 
>> 
>> 
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh