[Gmsh] Questions and suggestions (rus)

Christophe Geuzaine cgeuzaine at ulg.ac.be
Sun Jan 18 13:02:44 CET 2009


Изюмов Константин wrote:
> Hello!
> 
> Currently, the application program is implemented Gmsh to calculate the 
> pressure receptacles and therefore raise the following needs, which is 
> easy to see in the following example:
> 
>   N = 30;
> For i In (0: N)
> Point (i) = (i, 50 * Sin (i / N * 2 * 3.1415926), 0);
> EndFor
> Spline (1) = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 
> 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30);
> 
> 
> I realize simplified recording functions for Spline, for example:
> 
> N = 30;
> For i In (0: N)
> Point (i) = (i, 50 * Sin (i / N * 2 * 3.1415926), 0);
> EndFor
> *Spline (1) = (<0,30>)* / / Instead of (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 
> 10, 11, 12, 13, 14, 15, 16 , 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 
> 28, 29, 30);
> 
> This modification will help to fully implement the use of parametric 
> models.
> 

just use:

Spline(1) = {0:30};






> 
> Best regards,
> Izyumov Konstantin
> Ltd. "Aliter-Aksi"
> www.aliter.spb.ru
> St. Petersburg
> E-mail: izyumov at aliter.spb.ru
> Tel.: (812) 274-29-87
> Fax: (812) 274-09-72
> 
>  
> 
>  
> 
>  
> 
> Здравствуйте!
> 
>  
> 
> В настоящий момент реализуется применение программы Gmsh для расчета 
> сосудов под давлением и в связи с этим возникло следующая потребность, 
> которую легко заметить на примере:
> 
>  
> 
> 	
> 
> *N = 30;*
> 
> *For i In {0:N}*
> 
> *            Point(i) = {i,50*Sin(i/N*2*3.1415926),0};*
> 
> *EndFor*
> 
> *Spline(1) = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 
> 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30};*
> 
> * *
> 
>  
> 
> Прошу реализовать упрощенную запись для функции* Spline, *к примеру:
> 
>  
> 
> *N = 30;*
> 
> *For i In {0:N}*
> 
> *            Point(i) = {i,50*Sin(i/N*2*3.1415926),0};*
> 
> *EndFor*
> 
> *Spline(1) = {**<**0**,**30**>**};** // Вместо {0, 1, 2, 3, 4, 5, 6, 7, 
> 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 
> 26, 27, 28, 29, 30};*
> 
>  
> 
> Данная модификация позволит полностью реализовать применение 
> параметрических моделей.
> 
>  
> 
>  
> 
> С уважением,
> 
> **Изюмов Константин Владимирович**
> 
> ООО "Алитер-Акси"
> 
> www.aliter.spb.ru
> 
> г. Санкт-Петербург
> 
> E-mail: izyumov at aliter.spb.ru
> 
> Тел.: (812) 274-29-87
> 
> Факс: (812) 274-09-72
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine