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 <[email protected]> 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 <
> [email protected]> 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 <[email protected]> *Per conto di *
>> Eduardo
>> *Inviato:* martedì 16 luglio 2019 03:31
>> *A:* [email protected]
>> *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.
>>
>
_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to