[Gmsh] making an equilateral mesh.
David Colignon
David.Colignon at ulg.ac.be
Wed Oct 7 13:03:01 CEST 2009
Dr Colin J. Cotter wrote:
> Dear Dave,
> Thanks for your reply. I'm running Gmsh 2.2
you should upgrade to the latest 2.4.2 version :-)
>which complains about the
> "Left" bit (not sure what that does):
see "Transfinite Surface" in http://www.geuz.org/gmsh/doc/texinfo/gmsh.html#Structured-grids
> Error : 'equilateral3.geo', line 4 : syntax error (Left)
you can replace
Transfinite Surface {5} Left ;
by
Transfinite Surface {5} = {1,2,4,3} ;
>
> When I run it in command line mode I get a mesh which is not perfectly
> regular.
What do you mean by "not perfectly regular" ?
Dave
>
> --cjc
>
> David Colignon wrote:
>> Hi Colin,
>>
>> what about this ?
>>
>>
>> Point(1) = {0,0,0,0.1};
>> Extrude {1,0,0} { Point{1}; }
>> Extrude {0.5,0.866025403784,0} { Line{1}; }
>> Transfinite Line { 1 , 2 , 3 , 4 } = 5 ;
>> Transfinite Surface {5} Left ;
>>
>>
>> Cheers,
>>
>> Dave
>>
>