← Back to team overview

yade-dev team mailing list archive

Re: GravityEngine loop

 

I would just prefer to skip addForce() when the shape is not a sphere. But
it needs to be tested before to be sure we will have a benefit from this.

Or, another option, I can add SubscribedBodiesID into the gravityEngine,
like an option, to apply the gravity only to subscribed bodies to escape
loop over facets.

What do you think?
______________________________


Anton Gladkyy


2010/3/2 Václav Šmilauer <eudoxos@xxxxxxxx>

> As facets have zero mass, it doesn't make any difference. I would keep
> it as it is now. Whether a body is dynamic is integrator's concern, not
> GravityEngine's, I think. Do you have some specific reason for what you
> suggest?
>
> Vaclav
>
>
>
> > Hi all,
> >
> > GravityEngine loops over all bodies, but only clumped bodies are
> > skipped.
> > As I understand, facets also in this list. What about applying this
> > engine only to spheres, as they are dynamic?
> > If I do it, will it break somebody's code?
> >
> > Thank you
> > ______________________________
> >
> > Anton Gladkyy
> > _______________________________________________
> > Mailing list: https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> > Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> > More help   : https://help.launchpad.net/ListHelp
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> More help   : https://help.launchpad.net/ListHelp
>

Follow ups

References