yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #02992
Re: Energy dissipation + radius of fictious "box" sphere is now =r (not 2*r)
> 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)
Hi Chia, sorry, I should've replied. It will be easier with labels:
O.engines=[
...
InteractionDispatchers([Ig2_..()],[Ip2..()],
[Law2_...(...,label='someNameYouChoose')]
)
]
# label creates variable of that name, works for both functors and engines
someNameYouChoose.elasticEnergy()
In facet they were created for cases like this (see e.g.
examples/concrete/uniax.py where it is used for setting the interaction
radius).
Cheers, Vaclav
References
-
Energy dissipation
From: chiara modenese, 2010-04-20
-
Re: Energy dissipation
From: Václav Šmilauer, 2010-04-21
-
Re: Energy dissipation
From: Bruno Chareyre, 2010-04-21
-
Re: Energy dissipation
From: chiara modenese, 2010-04-21
-
Re: Energy dissipation
From: chiara modenese, 2010-04-21
-
Re: Energy dissipation
From: Bruno Chareyre, 2010-04-21
-
Re: Energy dissipation
From: chiara modenese, 2010-04-21
-
Re: Energy dissipation + radius of fictious "box" sphere is now =r (not 2*r)
From: Bruno Chareyre, 2010-04-21
-
Re: Energy dissipation + radius of fictious "box" sphere is now =r (not 2*r)
From: chiara modenese, 2010-05-03
-
Re: Energy dissipation + radius of fictious "box" sphere is now =r (not 2*r)
From: Bruno Chareyre, 2010-05-03
-
Re: Energy dissipation + radius of fictious "box" sphere is now =r (not 2*r)
From: chiara modenese, 2010-05-05