yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #21063
Re: [Question #685223]: what are the input variables to get the micro-stress firled
Question #685223 on Yade changed:
https://answers.launchpad.net/yade/+question/685223
nobody gave more information on the question:
Hi Bruno,
I put the code you gave me in the terminal.
here are the results:
#############################
In [1]: listOfIds=range(len(O.bodies))
In [2]: O.bodies.append(Body())
Out[2]: 622
In [3]: print(listOfIds[0])
0
In [4]: print(range(len(O.bodies)))
output for this command is [0 all the way to 622]
In [5]: print(listOfIds)
output for this command is [0 all the way to 621]
In [6]: print(O.bodies.append(Body()))
623
######################
you can see they are not the same, so I am thinking mat be there are somthing wrong with this.
best,
yong
--
You received this question notification because your team yade-users is
an answer contact for Yade.