Re: computing the moment of inertia



On Thu, 29 Mar 2007 10:06:27 -0700, bob wrote:

I was just wondering if anyone knows the best way to compute the
moment of inertia of a cube about a given axis.

Thank you.
You might want to take a look at the Wikipedia article about the moment of
inertia.
For a cube, it's all pretty simple:

First off suppose your cube is {x,y,z | -s/2<=x,y,z<=s/2}, (ie its
sides have length s) and is of constant density and mass M
The moment of inertia tensor J is then (1/6)*M*s*s times the identity
matrix.
If your axis goes through (0,0,0) and has direction u (a vector if
length 1) the moment of inertia about that axis is then u'*J*u,
(' denotes transpose)
so the moment of inertia is (1/6)*M*s*s.
If your axis goes through a point p and has direction u then the
moment of inertia is (1/6)*M*s*s + M*d*d, where d is the distance from
the centre of the cube to the axis, ie the length of the vector
p - (p.u)*u.
Finally if your cube has been rotated by a rotation matrix R and
then translated by a vector t, then we can change coordinates by undoing
the translation and then the rotation; in these coordinates the axis is
described by the point q = p-t, and the vector v = R'*u,
and the moment of inertia can be computed from the formula above, using
q instead of p and v instead of u.

Duncan





.



Relevant Pages

  • Solution for Three-Dimensional Field of View
    ... Field of view, whether shadow-casting or permissive, has as its most ... cube is labeled by the point closest to the origin. ... parallel to the x axis, two to the y axis, and two to the z-axis. ... Each plane is parallel to an axis. ...
    (rec.games.roguelike.development)
  • Re: Solution for Three-Dimensional Field of View
    ... cube is labeled by the point closest to the origin. ... parallel to the x axis, two to the y axis, and two to the z-axis. ... Two planes each orthogonal to said axes. ... And we can uniquely define that plane because ...
    (rec.games.roguelike.development)
  • Re: Spinning cube question
    ... path with one axis, as they would with two or three. ... are not relevant here), not the cube center. ... cube there's no method by which to attach a face-centered ... axis without more rods. ...
    (sci.physics)
  • Re: EXPERIMENTS THAT REFUTE RELATIVITY
    ... Cartesian N-dimensional coordinate system: ... - point on second axis ... If you play with a Rubic Cube in a space capsule, ... rotate, recognize that the experiment is rotating to ...
    (sci.physics.relativity)
  • Re: Solution for Three-Dimensional Field of View
    ... to the same axis must be compared to a cube. ... of the constraints and blocks sight, then we have to generate a lot ... One axis will have to be split around the cube's bounds, ... with a floor/roof we have an opaque square in three dimensions. ...
    (rec.games.roguelike.development)

Loading