On 03/06/10 16:37, jean pierre aubry wrote:
hello everybody

i wonder is something like that is possible

For i In {0:num:pas}
        For j In {0:19}
                a[]={(10000)*i+(101000+j)};
                lgi[]+=a[];
                //"lgi" sould be a different list for each i in the loop
        EndFor

        Physical Line("something + i") = lgi[];
        //ending in a Physical for each i in the loop
EndFor


Hello Jean-Pierre - yes:

        Physical Line(Sprintf("line%g", i)) = lgi[];

that means creating a group for each occurence of the loop index


practical application is a round base building in which the wind
coefficient of pressure varies according to the circular coordinate of
the point along the circle (in a quite large ratio), looks like some
sort of heart shape in cross section

jean pierre aubry






_______________________________________________
gmsh mailing list
[email protected]
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

_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh

Reply via email to