On 3 May 2010 18:33, chiara modenese <[email protected]> wrote: > > > On 3 May 2010 18:30, Bruno Chareyre <[email protected]> wrote: > >> >> >> chiara modenese a écrit : >> >> >>> >>> On 21 April 2010 18:23, Bruno Chareyre <[email protected]<mailto: >>> [email protected]>> wrote: >>> >>> It is commited now (r2170). I've put the symmetric IGeom for >>> box-sphere in this commit as well (removed the "2" factor). >>> I didn't test energy tracing at all yet. Any feedback is welcome. >>> >>> >>> Hi Bruno, >>> >>> I'd like to monitor the elastic energy of the system with the basic >>> contact law, how can I call the function you wrote in your contact law per >>> each time step? Can I do that in py? >>> >> In python, you just have to use >> Law2_ScGeom_FrictPhys_Basic::elasticEnergy(). >> O.engines[x].elasticEnergy() >> >> or if this one doesn't work : >> >> e=O.engines[x]//or using labels >> e.elasticEnergy() >> >> >> Btw, do we have in function that get the kinetic energy of the system? >>> >> This one is in shop : static Real kineticEnergy(Scene* _rb=NULL) >> > Hi, the function is implemented in Shop class, but I cannot say how to access it through py atm. In fact it is just not wrapped..
> You can use it like any other function from shop. Not sure about the syntax >> now, and I need to ruuuun! Sorry. > > > It is ok, thanks! > > >> >> >> Bruno >> >> >> _______________________________________________ >> Mailing list: >> https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users> >> Post to : [email protected] >> Unsubscribe : >> https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users> >> More help : https://help.launchpad.net/ListHelp >> > >
_______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp

