← Back to team overview

yade-users team mailing list archive

Re: [Question #378395]: sleeper on ballast

 

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

    Status: Answered => Open

Weimin Song is still having a problem:
In the simulation, I noticed the box rolled over.  I add one line:

O.bodies[-1].state.blockedDOFs='xyzXYZ'


that is
....
def checkUnbalanced():
   if O.iter<10000: return
   if unbalancedForce()>0.3: return
   O.bodies.append(box((.5,.5,1.05),(0.1,0.2,0.05),orientation=Quaternion((1, 0, 0), 0), dynamic=True, fixed=False, wire=False, color=(0.5,0.5,0.5), highlight=False, material=boxMat))
   O.bodies[-1].state.blockedDOFs='xyzXYZ'
   global BOX
   BOX=O.bodies[-1]
....

It works.


So now, another question, besides the box, what can be used to model the sleeper?

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.