MAMBO logo MAMBO & the MAMBO Toolbox MAMBO logo

AngularMomentum — Extraction of angular momentum of rigid body relative to observer [mathematica]

AngularMomentum[A,b]

A: name of defined observer

b: name of defined triad

The function AngularMomentum returns the angular momentum of a rigid body with reference triad b relative to the observer A.

The angular momentum is expressed using the symbols Inertia11, Inertia12, and so on, to represent the components of the moment of inertia matrix.

Remember to invoke DeclareStates prior to using AngularMomentum.

Restart;
DeclareObservers[A];
DeclarePoints[A];
DeclareTriads[a,b];
DefineObservers[{A,A,a}];
DefineTriads[a,b,{q1,1},{q2,3},{q3,1}];
DeclareStates[q1,q2,q3]; 
AngularMomentum[A,b]

{ Type "->" Vector , Size "->" 1 , 1 "->" { Coordinates "->" { Inertia13 ( Sin [ q2 ] Sin [ q3 ] q1 + Cos [ q3 ] q2 ) + Inertia12 ( - Cos [ q3 ] Sin [ q2 ] q1 + Sin [ q3 ] q2 ) + Inertia11 ( Cos [ q2 ] q1 + q3 ) , Inertia23 ( Sin [ q2 ] Sin [ q3 ] q1 + Cos [ q3 ] q2 ) + Inertia22 ( - Cos [ q3 ] Sin [ q2 ] q1 + Sin [ q3 ] q2 ) + Inertia21 ( Cos [ q2 ] q1 + q3 ) , Inertia33 ( Sin [ q2 ] Sin [ q3 ] q1 + Cos [ q3 ] q2 ) + Inertia32 ( - Cos [ q3 ] Sin [ q2 ] q1 + Sin [ q3 ] q2 ) + Inertia31 ( Cos [ q2 ] q1 + q3 ) } , Triad "->" b } }


Toolbox functions