[Gmsh] Gmsh - Transfinite

Eduardo eduserenza at gmail.com
Tue Jul 16 15:25:19 CEST 2019


Thanks to reply Alessandro

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

script below
//+
Point(1) = {0, 0, 0, 1.0};
//+
Point(2) = {3, 0, 0, 1.0};
//+
Point(3) = {3, 3, 0, 1.0};
//+
Point(4) = {0, 3, 0};
//+
Line(1) = {4, 1};
//+
Line(2) = {1, 2};
//+
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 10:21, Eduardo <eduserenza at gmail.com> escreveu:

> 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/94fd8a22/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/94fd8a22/attachment-0001.png>


More information about the gmsh mailing list