yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #06017
Re: computation of MomentBending
-
To:
yade-dev@xxxxxxxxxxxxxxxxxxx
-
From:
Janek Kozicki <janek_listy@xxxxx>
-
Date:
Wed, 27 Oct 2010 16:22:34 +0200
-
Face:
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEUBAQEtLS1KSkpRUVFXV1dYWFhjY2Nzc3N3d3eHh4eKioqdnZ24uLjLy8vc3NxVIagyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AIVEzgS1fgQtQAAAjRJREFUOMtt1DFv00AUAOAzFQNbjigSyoQaRaBMhKgLUyKXpVNNeUpk9vyDqFJhQ1kiBuaqAwJCqvPtSLY7RlTn5+5IdnYkkt/AOyfxXVLe5vf53Z1875kd34tOEax8djmj6GyjhB5bxz50GdsVZr9fqRjZwAtKOJw5Wqs2MMZ16ALHsaDncF7xAHix1oEFHAB8f+pRjcO4gfZDykcYzbiucRolOLUJ6kjA0xtVt+A6TySlM0RajIpK6DzwKZ/nOYbF/gclHMo1ZOHYY/+Ha+AWuM+3oMS4eeqYzZ8FiCltgUqI8cd2wwAVpJk+8LWYjBtnJdQpHQqJMd4Oxt4bU9ESiFGc5hkqaH74asAX4iabP5I5gZ+qjgGlJCqZa3h3lxhoeVcSE1qLQC4sqKOK9MGW9E3izFqqHokoztLFEgXg31sbZEKnWi2T74A4NxfVQqlkjKtcAWD+zcArFEES01dR0E/nnV0IgugmDd/2L84sOAouRBBHEc7gtc8teDkRlE0iNQPo2w3Xhh/D4TCIQ4LRLoTvgwjj6RRgavdurxYGMaIuGOyAW/PpNlCcU9/93AHenAWYjPoAwa+G3e3to/MgFNTAEKvKDjzuCzHTnY3qqdXtx24VijzQfZ0yewZ5cwRFQaa+mIYr1uI0I76+3W4xhlvoVRwOA0Fdl64HlJnxP6T8YpX/Lga4Wv4A3ErrU5oTfN7Mu/llXMl8RXEPji/lQkN3H7qXqgC2By47EXeU/7PJ/wPxRKMnuZwIeAAAAABJRU5ErkJggg==
-
In-reply-to:
<4CC7E23B.7070403@hmg.inpg.fr>
Bruno Chareyre said: (by the date of Wed, 27 Oct 2010 10:26:35 +0200)
> Question sent to Eigen forum
> (http://forum.kde.org/viewtopic.php?f=74&t=91129).
>
> Step 1 :
> cerr<<q
> -> 1 -1.56132e-11 7.47311e-11 -1.7066e-10
> cerr<<q.w()
> -> 1
> NaN angle found in angleAxisr(q)
try this:
std::cerr.precision(30);
> template<typename Scalar>
> AngleAxis<Scalar>& AngleAxis<Scalar>::operator=(const QuaternionType& q)
> {
> Scalar n2 = q.vec().squaredNorm();
> _if (n2 < precision<Scalar>()*precision<Scalar>())_
> {
> m_angle = 0;
> m_axis << 1, 0, 0;
> }
> else
> {
> m_angle = 2*std::acos(q.w());<--------- here we are computing
> acos(1) in step 1 and 2 according to cerr...
> m_axis = q.vec() / ei_sqrt(n2);
> }
> return *this;
> }
So they are handling this case in fact, this is good news. The only
problem is that the handling isn't working :)
--
Janek Kozicki http://janek.kozicki.pl/ |
Follow ups
References
-
computation of MomentBending
From: Luc Sibille, 2010-10-25
-
Re: computation of MomentBending
From: Janek Kozicki, 2010-10-25
-
Re: computation of MomentBending
From: Bruno Chareyre, 2010-10-26
-
Re: computation of MomentBending
From: Václav Šmilauer, 2010-10-26
-
Re: computation of MomentBending
From: Bruno Chareyre, 2010-10-26
-
Re: computation of MomentBending
From: Janek Kozicki, 2010-10-26
-
Re: computation of MomentBending
From: Janek Kozicki, 2010-10-26
-
Re: computation of MomentBending
From: Václav Šmilauer, 2010-10-26
-
Re: computation of MomentBending
From: Janek Kozicki, 2010-10-26
-
Re: computation of MomentBending
From: Bruno Chareyre, 2010-10-27