[Gmsh] Gmsh - Transfinite

Eduardo eduserenza at gmail.com
Tue Jul 16 15:21:32 CEST 2019


Thanks to reply Alessandro

But I try in two ways by it does not work corectly.
exempla

script below

//+
Line(3) = {4, 3};
//+
Line(4) = {2, 3};
//+
Curve Loop(1) = {1, 2, 4, -3};//+
Plane Surface(1) = {1};
//+
Transfinite Curve {3, 2} = 2 Using Progression 1;
//+
Transfinite Curve {1} = 2 Using Progression 1;
//+
Transfinite Curve {4} = 2 Using Progression 1;
//+
Recombine Surface {1};
//+
Transfinite Surface {1};
//+
Physical Curve("1") = {3};
//+
Physical Curve("2") = {4};
//+
Physical Curve("3") = {2};
//+
Physical Curve("4") = {1};
//+
Physical Surface("5") = {1};


++++++++++++++++++++++++++++++++++++++++
I want a mesh 3x3 but not done well.
That script only create a 2x2 mesh...

[image: image.png]

Doo you know what my mistake?

Thanks a lot!

Eduardo Serenza

Em ter, 16 de jul de 2019 às 03:48, Alessandro Vicini <
alessandro.vicini at sitael.com> escreveu:

>
>
> With transfinite line you set the number of nodes, not elements. So if you
> set an odd number, you will get an even number of elements.
>
>
>
> A.
>
>
>
>
>
> *Da:* gmsh <gmsh-bounces at ace20.montefiore.ulg.ac.be> *Per conto di *
> Eduardo
> *Inviato:* martedì 16 luglio 2019 03:31
> *A:* gmsh at geuz.org
> *Oggetto:* [Gmsh] Gmsh - Transfinite
>
>
>
> Hy My name is Eduardo
>
>
>
> I am trying to set or put a 3 element on the edge. (odd number)
>
> but I cannot do that. All the time I only do even number.
>
>
>
> Why I can not choose odd number of element on the edge in 2d plate.
>
> I use transfinite line.
>
>
>
> Best Regards
>
>
>
> Eduardo S.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20190716/38dc2cad/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 28849 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20190716/38dc2cad/attachment-0001.png>


More information about the gmsh mailing list