yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #13360
Re: [Question #378395]: sleeper on ballast
Question #378395 on Yade changed:
https://answers.launchpad.net/yade/+question/378395
Status: Open => Answered
Jan Stránský proposed the following answer:
Hello,
I just tried your original script from the first post with new Yade trunk
version, and also woth expected results.. Could you please create a movie
or something like that and show what is wrong?
cheers
Jan
2016-09-03 3:22 GMT+02:00 Weimin Song <question378395@xxxxxxxxxxxxxxxxxxxxx>
:
> 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.
>
> _______________________________________________
> 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.