← Back to team overview

yade-users team mailing list archive

Re: Energy dissipation + radius of fictious "box" sphere is now =r (not 2*r)

 

On 3 May 2010 18:30, Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx> wrote:

>
>
> chiara modenese a écrit :
>
>
>>
>> On 21 April 2010 18:23, Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx<mailto:
>> bruno.chareyre@xxxxxxxxxxx>> 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()


Using InteractionDispatchers the right syntax is
O.engines[x].lawDispatcher.functors[0].elasticEnergy()
(*for people interested in)


>
>  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)
> You can use it like any other function from shop. Not sure about the syntax
> now, and I need to ruuuun! Sorry.
>
>
> Bruno
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> More help   : https://help.launchpad.net/ListHelp
>

Follow ups

References