------------------------------------------------------------ revno: 3722 committer: Christian Jakob <[email protected]> timestamp: Wed 2013-10-02 11:09:40 +0200 message: fix a bug in inertia tensor approximation scheme modified: core/Clump.cpp
-- lp:yade https://code.launchpad.net/~yade-pkg/yade/git-trunk Your team Yade developers is subscribed to branch lp:yade. To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'core/Clump.cpp' --- core/Clump.cpp 2013-08-30 06:19:46 +0000 +++ core/Clump.cpp 2013-10-02 09:09:40 +0000 @@ -169,6 +169,7 @@ Sg += dv*x; //inertia I = sum_i( mass_i*dist^2 + I_s) ) //steiners theorem Ig += dv*( x.dot(x)*Matrix3r::Identity()-x*x.transpose()/*dist^2*/+Matrix3r(Vector3r::Constant(dv*pow(dx,2)/6.).asDiagonal())/*I_s/m = d^2: along princial axes of dv; perhaps negligible?*/); + break; } } }
_______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

