yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #21064
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
Status: Open => Answered
Chareyre proposed the following answer:
Hi, i meant to execute it without running your script first.
Bruno
Le ven. 18 oct. 2019 22:08, nobody <question685223@xxxxxxxxxxxxxxxxxxxxx> a
écrit :
> 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.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>
>
>
--
You received this question notification because your team yade-users is
an answer contact for Yade.