[Gmsh] Transfinite Elements with API

Bruno Correia da Silva bcs2 at cin.ufpe.br
Sun Jun 2 11:14:53 CEST 2013


Hi everyone,

 To whom will also want to know that, try this code:
GFaceGMSH gf1;
...
 gf1->meshAttributes.Method = MESH_TRANSFINITE;

Also put in the beginning of your code:
 GmshSetOption("Mesh", "RecombineAll", 1.);

Att.

2013/4/30 Bruno Correia da Silva <bcs2 at cin.ufpe.br>:
> Hi everyone,
>
> Improving my question...
>
> I wanted to create with API one GEO that uses it:
> "
> Transfinite Line {1,3} = 3 Using Progression 1.000000;
> Transfinite Line {2,4} = 3 Using Progression 1.000000;
> Transfinite Surface {1} = {1,2,3,4};
> "
>
> Att.
> Bruno Correia
>
>
> 2013/4/22 Bruno Correia da Silva <bcs2 at cin.ufpe.br>
>>
>> Hello,
>>
>>  I am looking within GMSH API (2.7.0) to use transfinite lines/surfaces to
>> generate quadrangular mesh.
>>  I see this link (http://www.geuz.org/pipermail/gmsh/2011/006803.html)
>> from Takuya OSHIMA oshima at eng.niigata-u.ac.jp and i used this .CPP until
>> the line of "writeMSH".
>>
>>  And i changed in .CPP code:
>>     //Mesh.RecombineAll=1;
>>     GmshSetOption("Mesh", "RecombineAll", 1.);
>>
>>  Now i want define with API the transfinite line/surface and the double
>> value.
>> Transfinite Line {1,3} = 3 Using Progression 1.000000;
>> Transfinite Line {2,4} = 3 Using Progression 1.000000;
>> Transfinite Surface {1} = {1,2,3,4};
>>
>>  In this link (http://www.geuz.org/pipermail/gmsh/2008/003276.html) from
>> Prof. Christophe Geuzaine cgeuzaine at ulg.ac.be his mentioned about the
>> function F_Transfinite() in Mesh/meshGEdge.cpp.
>>  The method is not public and i didn't see any example in other place.
>>  Could anyone suggest the correct way to do this declaration?
>>
>> att.
>> Bruno Correia
>>
>>
>>
>