[Gmsh] creating indexed list within a loop

jean pierre aubry jeanpierre at lamachine.fr
Thu Jun 3 16:37:13 CEST 2010


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

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