ChiaWeng Boon píše v Čt 01. 07. 2010 v 21:14 +0100:
> Thanks Vaclav, but I have not understood it.  How do I access the
> Contact Law in python, if the simulation is created from C?
> 
> For example, O.engine[3] gives InteractionDispatchers.  From
> InteractionDispatchers, how do I access the contact law?
https://yade-dem.org/sphinx/yade.wrapper.html#yade.wrapper.InteractionDispatchers
gives you lawDispatcher, which is a
https://yade-dem.org/sphinx/yade.wrapper.html#yade.wrapper.LawDispatcher
and then you can use the
https://yade-dem.org/sphinx/yade.wrapper.html#yade.wrapper.LawDispatcher.functors
 to get the functors.

In short, O.engines[3].lawDispatcher.functors[0] is probably your
contact law.

v


_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to