Prism
This procedure returns mass and moments of inertia of a rectangular prism'
Inputs
a =width [m, ft]
b=height [m, ft]
c= length [m, ft]
rho = material density [kg/m^3, lbm/ft^3]
Outputs
m=mass [kg, lb_m]
I_x = moment of inertia about the x-axis
I_y= moment of inertia about the y-axis
I_z = moment of inertia about the z-axis
Example: Call MOI_prism(a, b, c, rho:m, I_x, I_y, I_z)
Reference: Juvinall and Marshek, 5th edition, Fundamentals of Machine Component Design, Appendix B-2