Question #688078 on Yade changed:
https://answers.launchpad.net/yade/+question/688078
Status: Open => Answered
Jan Stránský proposed the following answer:
Hello,
1)
b.state.mass = value
2)
b.state.vel = (vx,vy,vz) # setting velcity value, initial condition
b.state.blockedDOFs = "xyz" # if you want to preserve velocity regardless
interactions
sidenote:
in answers, we usually use short variable names, like "b" for a body. In your
case, "b" could be e.g. O.bodies[0], so you can use
O.bodies[0].state.mass = ...
or
b = O.bodies[0]
In another situation it could be e.g.
sph = sphere(...)
O.bodies.append(sphere)
sph.state.mass = ...
cheers
Jan
b.state.mass = ...
--
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 : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp