← Back to team overview

yade-users team mailing list archive

Re: [Question #180889]: velocity==NaN! & fixed=False

 

Question #180889 on Yade changed:
https://answers.launchpad.net/yade/+question/180889

Anton Gladky proposed the following answer:
> O.bodies[-1]
> O.bodies[-2]

As far as I know, indexes cannot be negative.

idx = O.bodies.append(utils.geom.facetBox( center=(5,5,5),
extents=(2.0,2.0,2.0)
,fixed=False,wire=False,wallMask=31,material=-1))

in this case idx will have indexes of newly created facets.
Anyway, giving a mass to facets will not have an effect.
Facets will not move, for example, from gravity or interactions with
another bodies.

Anton

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.