[Gmsh] gmsh fails to create points inside a loop

Eric Nutsch ericnutsch at gmail.com
Wed Jun 2 05:07:48 CEST 2010


Though I havent had time to review your code explicitly, I know one
possible stumble...

Gmsh can not create two points at the exact same point in space(in
addition to not having the same identifier). This is a likely mistake
when using loops, and I find myself running into that problem
frequently.

Hope that helps,
Eric




On Tue, Jun 1, 2010 at 8:44 AM, jean pierre aubry
<jeanpierre at lamachine.fr> wrote:
> hello
>
> i have the following loop to create an axis symetric struture
>
>
> For i In {0:num:pas}
>
> .........................
> Point(10000*i
> +100538)={-5800*Cos(a*i)-(0*Sin(a*i)),-5800*Sin(a*i)+(0*Cos(a*i)),6060,e};
>
> Point(10000*i
> +100701)={-4435*Cos(a*i)-(30*Sin(a*i)),-4435*Sin(a*i)+(30*Cos(a*i)),8766,e};
> Point(10000*i
> +100702)={-4435*Cos(a*i)-(-30*Sin(a*i)),-4435*Sin(a*i)+(-30*Cos(a*i)),8766,e};
>
> ..........................
>
> EndFor
>
> for i =0 all 3 points are created
>
> for the next st ps the point Point(10000*i+100701) is not created
>
> and this happens at a few other places within the loop which contains
> about 150 point to be repeated 16 times
>
> the point can however be created outside of the loop with the same
> parameter
>
> any idea of what's happening
>
> i wnat to create a structure similar to this one which was created with
> gmsh, many thanks!!
>
> http://www.code-aster.org/V2/spip.php?article298
>
> but much more complicated and largelly parametric
>
>
>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
>