← Back to team overview

yade-dev team mailing list archive

Re: wm3-eigen glue

 

I had also this idea, that Eigen is better. It is here:
http://bazaar.launchpad.net/%7Eyade-dev/yade/trunk/annotate/head%3A/pkg/dem/Engine/GlobalEngine/NewtonIntegrator.cpp#L183

Vector3r axis = state->angVel; Real angle = axis.Normalize();
______________________________

Anton Gladkyy


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

> > The previous problem with "disappearing" particles was, that
> normalization
> > of NULL-vector in WM3 gives (0,0,0), but Eigen gives (nan,nan,nan).
> > So I needed to add such check in yademath. I do not know, what
> > implementation is more correct: WM3 or Eigen.
>
> Definitely Eigen's (since normalized vector should have |v|=1, right?). do
> NOT add this to yadeMath, it is correct to fail for such nonsense as
> normalizing 0 vector. Please document where it happens, that part of yade
> has to be fixed.
>
> _______________________________________________
> 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
>

References