You could use locals() for dynamic variable names creation.<br><br>Additionally, you can give to Mayavi a try for visualization of your data:<br><br><a href="http://code.enthought.com/projects/mayavi/">http://code.enthought.com/projects/mayavi/</a><br>
<br clear="all">Gökhan<br>
<br><br><div class="gmail_quote">On Fri, Jun 5, 2009 at 2:35 PM, Philip Gröger <span dir="ltr"><<a href="mailto:philip.groeger@googlemail.com">philip.groeger@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi,</div>
<div>I need to create multiple variables (lets say 10x10x10 positions of atoms). Is it possible to create them through a loop with some kind of indexing like atom000, atom001, etc?</div>
<div>Or is this a very bad idea?</div>
<div> </div>
<div>Thing is ... i want to create a grid of atoms in vpython and then calculate the forces for each of them (to their neighbours). Don't know how else I could do that. Maybe a huuuge matrix?</div>
<div> </div>
<div>Thx for your help!</div>
<div>- Philip</div>
<br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br>