yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #18067
Re: [Question #673023]: setting initial velocity
Question #673023 on Yade changed:
https://answers.launchpad.net/yade/+question/673023
Status: Answered => Open
jacopo is still having a problem:
Ok thanks for the fast answers. Probably i don't understand in the right
way. I change the script in this way but i'm still facing the same
error:
#####################################
########### BOX 1 ###################
#####################################
facets=geom.facetBox((4,0,0),(1.2,1.2,1.2),wallMask=63)
for b in O.bodies:
b.dynamic=True
b.state.mass=10
b.state.inertia=(0.1,0.5,0.4)
b.fixed=True
clumpID = O.bodies.appendClumped(facets)
clump = O.bodies[clumpID]
#clump.state.mass = 10
##########################
############################
In this way i should have set the facets mass and inertia( using the cycle), and then clump them.
If i type O.bodies[2].state.mass from terminal i could see that its mass is set to 10 (deleting the clumping part). If i add at the of the cycle this:
clumpID = O.bodies.appendClumped(facets)
clump = O.bodies[clumpID]
it gives me the same error:
python: /build/yade-2_s9R0/yade-1.20.0/core/Clump.cpp:211: static void Clump::updateProperties(const boost::shared_ptr<Body>&, unsigned int): asserzione "M>0" non riuscita.
Annullato (core dump creato)
--
You received this question notification because your team yade-users is
an answer contact for Yade.