{ "cells": [ { "cell_type": "markdown", "metadata": { "lang": "en" }, "source": [ "# Center of Mass and Moment of Inertia\n", "\n", "> Renato Naville Watanabe, Marcos Duarte \n", "> [Laboratory of Biomechanics and Motor Control](http://pesquisa.ufabc.edu.br/bmclab/) \n", "> Federal University of ABC, Brazil" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "
\"Dos
\n", "An animation of a biomechanical analysis of Daiane dos Santos executing the Dos Santos I movement in artistic gymnast: a piked double Arabian (a half twist into a double front flip in a piked position).
I: While her body translates and rotates in varied ways, the trajectory of the body center of mass is always a parabola during the aerial phases (minus some experimental error).
II: To execute the double front flip at the last jump, she increases the body angular speed by flexing the hips (piked position), which decreases the body moment of inertia — she knows the law of conservation of angular momentum.
Note the view is not from a right angle to the sagittal plane (Image from BMClab)." ] }, { "cell_type": "markdown", "metadata": { "toc": 1 }, "source": [ "

Contents


\n", "
" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Python setup" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "ExecuteTime": { "end_time": "2020-04-23T02:26:57.926388Z", "start_time": "2020-04-23T02:26:57.706267Z" } }, "outputs": [], "source": [ "# import the necessary libraries\n", "import numpy as np\n", "import sympy as sym\n", "from IPython.display import display, Math\n", "from sympy.vector import CoordSys3D" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Code for using LaTeX commands, see https://github.com/jupyterlab/jupyterlab/pull/5997 and https://texfaq.org/FAQ-patch. \n", "\n", "\n", "\n", "Execute this cell to format a versor with a hat and bold font or edit it to add custom commands." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Center of mass\n", "\n", "### Set of particles\n", "\n", "The center of mass of a set of particles is defined as the point (position) where the sum of the vectors linking this point to each particle, weighted by its mass, is zero. By [mass](https://en.wikipedia.org/wiki/Mass) we mean the inertial mass, a quantitative measure of an object's resistance to linear acceleration. \n", "\n", "Consider the set of particles shown below.\n", "\n", "
center of mass of particles
Figure. The center of mass of a set of particles.
\n", "\n", "The sum of the vectors linking the center of mass to each particle is:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "\\sum\\limits_{i=1}^nm_i{\\vec{r}_{i/cm}} &= \\sum\\limits_{i=1}^nm_i\\left({\\vec{r}_i} - {\\vec{r}_{cm}}\\right) \\\\\n", "&= \\sum\\limits_{i=1}^nm_i{\\vec{r}_i} - \\sum\\limits_{i=1}^nm_i{\\vec{r}_{cm}} \\\\\n", "&= \\sum\\limits_{i=1}^nm_i{\\vec{r}_i} - {\\vec{r}_{cm}}\\sum\\limits_{i=1}^nm_i \n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "where $n$ is the number of particles.\n", "\n", "Now, we equal this sum to zero and isolate ${\\vec{r}_{cm}}$:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "\\sum\\limits_{i=1}^nm_i{\\vec{r}_i} - {\\vec{r}_{cm}}\\sum\\limits_{i=1}^nm_i = 0 \\quad \\longrightarrow \\\\\n", "\\begin{aligned}\n", "\\vec{r}_{cm} &= \\dfrac{\\sum\\limits_{i=1}^nm_i{\\vec{r}_i}}{\\sum\\limits_{i=1}^nm_i} &\\phantom{=} \\\\\n", "&= \\dfrac{\\sum\\limits_{i=1}^nm_i{\\vec{r}_i}}{m_T} \n", "\\end{aligned}\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "where $m_T$ is the total mass of the particles." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example: Two particles\n", "\n", "Consider two particles with masses $m_1$ and $m_2$, the center of mass of the system is:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "\\vec{r}_{cm} &= \\dfrac{m_1\\vec{r}_1 + m_2\\vec{r}_2}{m_1+m_2} \\\\\n", "&= \\dfrac{m_1\\vec{r}_1 + m_2\\vec{r}_1 - m_2\\vec{r}_1 + m_2\\vec{r}_2}{m_1+m_2} \\\\\n", "&= \\dfrac{(m_1+m_2)\\vec{r}_1}{m_1+m_2} + \\dfrac{m_2(\\vec{r}_2 - \\vec{r}_1)}{m_1+m_2} \\\\\n", "\\vec{r}_{cm} &= \\vec{r}_1 + \\dfrac{m_2}{m_1+m_2}(\\vec{r}_2 - \\vec{r}_1)\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "Can you guess what is the expression above if we rewrite it in relation to vector $\\vec{r}_{2}$, i.e., $\\vec{r}_{cm} = \\vec{r}_{2} + \\ldots$ ?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Rigid body\n", "\n", "For a rigid body, the center of mass is defined as the point where the integral of the vectors linking this point to each differential part of mass, weighted by this differential mass, is zero. \n", "\n", "
center of mass of a rigid body
Figure. The center of mass of a rigid body.
\n", "\n", "This integral is:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "\\int\\limits_{B} {\\vec{r}_{/cm}} \\mathrm d m &= \\int\\limits_{B}(\\vec{r}-\\vec{r}_{cm}) \\mathrm d m \\\\\n", "&= \\int\\limits_{B} {\\vec{r}}\\,\\mathrm d m - \\int\\limits_{B}{\\vec{r}_{cm}} \\mathrm d m \\\\\n", "&= \\int\\limits_{B} {\\vec{r}}\\,\\mathrm d m - {\\vec{r}_{cm}}\\int\\limits_{B}\\, \\mathrm d m\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "Now we equal this integral to zero and isolate $\\vec{r}_{cm}$:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "\\int\\limits_{B} \\vec{r}\\,\\mathrm d m - \\vec{r}_{cm}\\int\\limits_{B}\\, \\mathrm d m = 0 \\longrightarrow \\\\\n", "\\vec{r}_{cm} = \\dfrac{\\int\\limits_{B}{\\vec{r}}\\,\\mathrm d m}{\\int\\limits_{B}\\, \\mathrm d m} = \\dfrac{ \\int\\limits_{B} \\vec{r}\\,\\mathrm d m}{m_B}\n", "\\label{eq:cm}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "where $m_B$ is the mass of the body." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example: Bar\n", "\n", "Let's calculate the center of mass of a homogeneous (with equal density) bar shown below.\n", "\n", "
bar
Figure. A bar.
\n", "\n", "\\begin{equation}\n", "\\vec{r}_{cm} = \\frac{ \\int \\vec{r}\\,\\mathrm d m}{m} \n", "\\end{equation}\n", "\n", "The mass of the bar is:\n", "\n", "\\begin{equation}\n", "m = \\rho l\n", "\\end{equation}\n", "\n", "The integral can be computed as:\n", "\n", "\\begin{equation}\n", "\\int \\vec{r}\\,\\mathrm d m = \\rho\\int\\limits_0^l x\\,\\mathrm d x =\\rho\\frac{l^2}{2}\n", "\\end{equation}\n", "\n", "So, the center of mass of the bar is:\n", "\n", "\\begin{equation}\n", "\\vec{r}_{cm} = \\dfrac{\\rho\\dfrac{l^2}{2}}{\\rho l} = \\dfrac{l}{2}\n", "\\end{equation}\n", "\n", "The center of mass of a homogeneous bar is in the middle of the bar.\n", "\n", "A key aspect in the calculation of the integral above is to transform the differential of the variable mass $\\mathrm d m$ into the differential of the variable displacement $\\mathrm d x$ (or area or volume for a surface or a solid) because the body's density is known.\n", "\n", "Let's use Sympy, a symbolic library in Python, to solve this integral. \n", "A definite integral of integrand `f` with respect to variable `x` over interval `[a,b]` can be calculated with the function `integrate`:\n", "\n", "```python\n", "sym.integrate(f, (x, a, b))\n", "```" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "ExecuteTime": { "end_time": "2020-04-23T02:26:57.929803Z", "start_time": "2020-04-23T02:26:57.927466Z" } }, "outputs": [], "source": [ "# Helping function\n", "def print2(lhs, rhs):\n", " \"\"\"Rich display of Sympy expression as lhs = rhs.\"\"\"\n", " display(Math(r'{} = '.format(lhs) + sym.latex(sym.simplify(rhs, ratio=1.7))))" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "ExecuteTime": { "end_time": "2020-04-23T02:26:58.132469Z", "start_time": "2020-04-23T02:26:57.930960Z" } }, "outputs": [ { "data": { "text/latex": [ "$\\displaystyle \\vec{r}_{cm} = \\frac{\\ell}{2}$" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# define variables\n", "x = sym.symbols('x')\n", "rho, ell = sym.symbols('rho ell', positive=True)\n", "m = rho*ell\n", "# solve the integral\n", "rcm = rho * sym.integrate(x, (x, 0, ell))/m\n", "\n", "print2('\\\\vec{r}_{cm}', rcm)" ] }, { "cell_type": "markdown", "metadata": { "lang": "en" }, "source": [ "#### Example: Triangle\n", "\n", "Let's compute the center of mass of the triangle shown below.\n", "\n", "
triangle
Figure. A triangle.
\n", "\n", "The center of mass is given by Eq.(\\ref{eq:cm}):\n", "\n", "\\begin{equation}\n", "\\vec{r}_{cm} = \\frac{\\int \\vec{r}\\,\\mathrm d m}{m} \n", "\\label{eq:int_area}\n", "\\end{equation}\n", "\n", "The mass of the triangle w.r.t. its density and dimensions is equal to:\n", "\n", "\\begin{equation}\n", "m = \\rho A = \\frac{\\rho bh}{2}\n", "\\end{equation}\n", "\n", "In Eq.(\\ref{eq:int_area}), the differential of the variable mass $\\mathrm d m$ will be transformed into the differential of the variable area $\\mathrm d A$, which in turn is calculated as $\\mathrm d x \\mathrm d y$, resulting in a double integral:\n", "\n", "\\begin{equation}\n", "\\int \\vec{r}\\,\\mathrm d m = \\rho\\int \\vec{r}\\,\\mathrm d A = \\rho \\int\\limits_x \\int\\limits_y (x\\hat{i} + y\\hat{j})\\,\\mathrm d y \\mathrm d x\n", "\\label{}\n", "\\end{equation}\n", "\n", "The integral can be computed by separating it into two parts: one part we integrate in the $x$ direction from $0$ to $p$, and the other part from $p$ to $b$. The integration in the $y$ direction will be from $0$ to $\\frac{xh}{p}$ in the first part and from $0$ to $\\frac{(b-x)h}{b-p}$ in the second part:\n", "\n", "\\begin{equation}\n", "\\int \\vec{r}\\,\\mathrm d m = \\rho\\left[\\int\\limits_0^p\\int\\limits_0^\\frac{xh}{p} (x\\hat{i} + y\\hat{j}) \\,\\mathrm d y\\mathrm d x + \\int\\limits_p^b\\int\\limits_0^\\frac{(b-x)h}{b-p} (x\\hat{i} + y\\hat{j}) \\,\\mathrm d y\\mathrm d x\\right]\n", "\\label{}\n", "\\end{equation}\n", "\n", "So, the center of mass of the triangle will be:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "\\vec{r}_{cm} &= \\dfrac{\\rho\\left[\\int\\limits_0^p\\int\\limits_0^\\frac{xh}{p} (x\\hat{i} + y\\hat{j}) \\,\\mathrm d y\\mathrm d x + \\int\\limits_p^b\\int\\limits_0^\\frac{(b-x)h}{b-p} (x\\hat{i} + y\\hat{j}) \\,\\mathrm d y\\mathrm d x\\right]}{\\dfrac{\\rho bh}{2}} \\\\\n", "&= \\dfrac{2\\left[\\int\\limits_0^p\\int\\limits_0^\\frac{xh}{p} (x\\hat{i} + y\\hat{j}) \\,\\mathrm d y\\mathrm d x + \\int\\limits_p^b\\int\\limits_0^\\frac{(b-x)h}{b-p} (x\\hat{i} + y\\hat{j}) \\,\\mathrm d y\\mathrm d x\\right]}{bh}\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "The integral above will be solved using the Symbolic library of the Python." ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "ExecuteTime": { "end_time": "2020-04-23T02:26:58.339153Z", "start_time": "2020-04-23T02:26:58.133619Z" }, "collapsed": true, "jupyter": { "outputs_hidden": true } }, "outputs": [ { "data": { "text/latex": [ "$\\displaystyle x_{cm} = \\frac{b}{3} + \\frac{p}{3}$" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/latex": [ "$\\displaystyle y_{cm} = \\frac{h}{3}$" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# define variables\n", "G = CoordSys3D('')\n", "x, y = sym.symbols('x, y')\n", "rho, h, p, b = sym.symbols('rho, h, p, b', positive=True)\n", "# solve the integral\n", "# for x\n", "xcm = 2*(sym.integrate(sym.integrate(x, (y, 0, x*h/p)), (x, 0, p)) + \n", " sym.integrate(sym.integrate(x, (y, 0, (b-x)*h/(b-p))), (x, p, b)))/(b*h)\n", "# for y\n", "ycm = 2*(sym.integrate(sym.integrate(y, (y, 0, x*h/p)), (x, 0, p)) + \n", " sym.integrate(sym.integrate(y, (y, 0, (b-x)*h/(b-p))), (x, p, b)))/(b*h)\n", "\n", "print2('x_{cm}', xcm)\n", "print2('y_{cm}', ycm)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Finally, the center of mass of the triangle is:" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "ExecuteTime": { "end_time": "2020-04-23T02:26:58.400948Z", "start_time": "2020-04-23T02:26:58.340110Z" } }, "outputs": [ { "data": { "text/latex": [ "$\\displaystyle \\vec{r}_{cm} = (\\frac{b}{3} + \\frac{p}{3})\\mathbf{\\hat{i}_{}} + (\\frac{h}{3})\\mathbf{\\hat{j}_{}}$" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "print2('\\\\vec{r}_{cm}', xcm*G.i + ycm*G.j)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Center of mass of a complex system\n", "\n", "Now, we will consider a set of $n$ bodies. The center of mass of this set of bodies can be computed by integrating the Eq.(\\ref{eq:cm}) over all bodies:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "\\vec{r}_{cm} &= \\dfrac{ \\int\\limits_{B1,B2,\\ldots,Bn}\\vec{r}\\,\\mathrm d m}{m_{B1}+m_{B2}+ \\ldots + m_{Bn}} \\\\\n", "&= \\dfrac{\\int\\limits_{B1}\\vec{r}\\,\\mathrm d m+\\int\\limits_{B2}\\vec{r}\\,dm+\\ldots+\\int\\limits_{Bn}\\vec{r}\\,\\mathrm d m}{m_{B1}+m_{B2}+\\ldots+ m_{Bn}} \\\\\n", "&= \\dfrac{\\dfrac{\\int\\limits_{B1}\\vec{r}\\,\\mathrm d m}{m_{B1}}m_{B1} + \\dfrac{\\int\\limits_{B2}\\vec{r}\\,\\mathrm d m}{m_{B2}}m_{B2} +\\ldots+ \\dfrac{\\int\\limits_{Bn}\\vec{r}\\,\\mathrm d m}{m_{Bn}}m_{Bn}}{m_{B1}+m_{B2}+\\ldots+ m_{Bn}} \\\\\n", "&= \\dfrac{\\vec{r}_{cm_1} m_{B1} + \\vec{r}_{cm_2}m_{B2} +\\ldots+ \\vec{r}_{cm_n}m_{Bn}}{m_{B1}+m_{B2}+\\ldots+ m_{Bn}} \\\\\n", "\\vec{r}_{cm} &= \\dfrac{\\vec{r}_{cm_1} m_{B1} + \\vec{r}_{cm_2}m_{B2} +\\ldots+ \\vec{r}_{cm_n}m_{Bn}}{m_T}\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "where $\\vec{r}_{cm_i}$ is the center of mass of the body $i$, $m_{Bi}$ is the mass of the body $i$ and $m_T$ is the total mass of all bodies. \n", "The expression above shows that we can interpret each body as a particle with its mass and position. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example: Three bars\n", "\n", "Let's compute the center of mass of the system shown below.\n", "\n", "
system with three bars
Figure. A system with three bars.
\n", "\n", "The system can be seen as a set of three bars; we can compute the center of mass by considering each bar as a particle located at its respective center of mass. \n", "\n", "We have previously computed the center of mass of a homogeneous bar as being at its center. So, the center of mass of each bar of the system is:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "\\vec{r}_{cm_1} &= -\\frac{l_1}{2}\\hat{j} \\\\\n", "\\vec{r}_{cm_2} &= \\frac{l_2}{2}\\sin(\\theta_1)\\hat{i}-\\frac{l_2}{2}\\cos(\\theta_1)\\hat{j} \\\\\n", "\\vec{r}_{cm_3} &= l_2\\sin(\\theta_1)\\hat{i}-l_2\\cos(\\theta_1)\\hat{j}+\\frac{l_3}{2}\\sin(\\theta_2)\\hat{i}-\\frac{l_3}{2}\\cos(\\theta_2)\\hat{j} \\\\\n", "&= \\left(l_2\\sin(\\theta_1)+\\frac{l_3}{2}\\sin(\\theta_2) \\right)\\hat{i} + \\left(l_2\\cos(\\theta_1)-\\frac{l_3}{2}\\cos(\\theta_2) \\right)\\hat{j}\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "So, the center of mass of the system is:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "\\vec{r}_{cm} &= \\dfrac{m_1 \\vec{r}_{cm_1}+m_2 \\vec{r}_{cm_2}+m_3 \\vec{r}_{cm_3}}{m_1+m_2+m_3} \\\\\n", "&= \\dfrac{-m_1\\frac{l_1}{2}\\hat{j} + m_2(\\frac{l_2}{2}\\sin(\\theta_1)\\hat{i}-\\frac{l_2}{2}\\cos(\\theta_1)\\hat{j})+m_3 \\left[\\left(l_2\\sin(\\theta_1)+\\frac{l_3}{2}\\sin(\\theta_2) \\right)\\hat{i} + \\left(l_2\\cos(\\theta_1)-\\frac{l_3}{2}\\cos(\\theta_2) \\right)\\hat{j} \\right]}{m_1+m_2+m_3} \\\\\n", "&= \\dfrac{m_2\\frac{l_2}{2}\\sin(\\theta_1)\\hat{i}+m_3 \\left(l_2\\sin(\\theta_1)+\\frac{l_3}{2}\\sin(\\theta_2) \\right)\\hat{i}}{m_1+m_2+m_3}+\\dfrac{-m_1\\frac{l_1}{2}\\hat{j} - m_2\\frac{l_2}{2}\\cos(\\theta_1)\\hat{j}+m_3 \\left(l_2\\cos(\\theta_1)-\\frac{l_3}{2}\\cos(\\theta_2) \\right)\\hat{j}}{m_1+m_2+m_3} \\\\\n", "\\vec{r}_{cm} &= \\dfrac{m_2\\frac{l_2}{2}\\sin(\\theta_1)+m_3 \\left(l_2\\sin(\\theta_1)+\\frac{l_3}{2}\\sin(\\theta_2)\\right)}{m_1+m_2+m_3}\\hat{i}+\\dfrac{-m_1\\frac{l_1}{2} - m_2\\frac{l_2}{2}\\cos(\\theta_1)+m_3 \\left(l_2\\cos(\\theta_1)-\\frac{l_3}{2}\\cos(\\theta_2) \\right)}{m_1+m_2+m_3}\\hat{j}\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Center of gravity\n", "\n", "Center of gravity of a body is the point where the moment of force caused by the gravitational force in the whole body relative to this point is zero. \n", "For the body $B$, this the moment of force is:\n", "\n", "\\begin{equation}\n", "\\vec{M}_0 = \\int\\limits_{B} \\vec{r}_B \\, \\times \\, \\vec{g} \\, \\mathrm d m \n", "\\end{equation}\n", "\n", "If the acceleration of gravity being applied to the whole body is the same (for all practical purposes, in Biomechanics we can consider it the same in the whole body), the gravity vector can go out of the integral: \n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "\\vec{M}_0 &= \\int\\limits_{B}\\vec{r}_B \\, \\mathrm d m\\, \\times\\, \\vec{g} \\\\\n", "&= \\int\\limits_{B}(\\vec{r} - \\vec{r}_{cm})\\,\\mathrm d m\\, \\times\\, \\vec{g} \\\\\n", "&= \\left(\\int\\limits_{B}\\vec{r} \\, \\mathrm d m -\\int\\limits_{B}\\vec{r}_{G} \\, \\mathrm d m \\, \\right) \\times \\, \\vec{g}\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "Now, we equal this moment to zero and isolate $\\vec{r}_G$:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "\\left(\\int\\limits_{B}\\vec{r}\\,\\mathrm d m -\\int\\limits_{B}\\vec{r}_G\\,\\mathrm d m\\right) \\times\\,\\vec{g} = 0 \\longrightarrow \\\\\n", "\\int\\limits_{B}\\vec{r}\\,\\mathrm d m -\\int\\limits_{B}\\vec{r}_G\\,\\mathrm d m = 0 \\longrightarrow \\\\\n", "\\int\\limits_{B}\\vec{r}\\,\\mathrm d m -\\vec{r}_G\\int\\limits_{B}\\,\\mathrm d m = 0\\,\\,\\,\\,\\,\\, \\longrightarrow \\\\\n", "\\vec{r}_G = \\dfrac{ \\int\\limits_{B}\\vec{r}\\,\\mathrm d m}{\\int\\limits_{B}\\,\\mathrm d m} = \\dfrac{ \\int\\limits_{B}\\vec{r}\\,\\mathrm d m}{m_B} \n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "where $m_B$ is the mass of the body.\n", "\n", "Note that in this case, when the gravitational acceleration is constant, the center of gravity $\\vec{r}_G$ is equal to the center of mass $\\vec{r}_{cm}$." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Geometric center\n", "\n", "For a rigid body, the geometric center is defined as the point where the integral of the vectors linking this point to each differential part of volume is zero.\n", "\n", "This integral for a body $B$ is:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "\\int\\limits_{B} \\vec{r}_{/gc} \\mathrm d V &= \\int\\limits_{B} (\\vec{r} - \\vec{r}_{gc}) \\mathrm d V \\\\\n", "&= \\int\\limits_{B} \\vec{r}\\, \\mathrm d V - \\int\\limits_{B}\\vec{r}_{gc}\\, \\mathrm d V \\\\\n", "&= \\int\\limits_{B} \\vec{r}\\, \\mathrm d V - \\vec{r}_{gc}\\int\\limits_{B}\\, \\mathrm d V\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "Now we equal this integral to zero and isolate $\\vec{r}_{gc}$:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "\\int\\limits_{B} {\\vec{r}}\\,\\mathrm d V - {\\vec{r}_{gc}}\\int\\limits_{B}\\, \\mathrm d V = 0 \\longrightarrow \\\\\n", "\\vec{r}_{gc} = \\dfrac{ \\int\\limits_{B} \\vec{r}\\,\\mathrm d V}{\\int\\limits_{B}\\, \\mathrm d V} = \\dfrac{ \\int\\limits_{B} \\vec{r}\\,\\mathrm d V}{V}\n", "\\label{eq:gc}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "where $V$ is the volume of the body. \n", "Note that when the body has a constant density $\\rho$, the center of mass is equal to the geometric center:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "\\vec{r}_{cm} &= \\dfrac{ \\int\\limits_{B} \\vec{r}\\,\\mathrm d m}{m_B} \\\\\n", "&= \\dfrac{ \\int\\limits_{B} \\vec{r}\\rho\\,\\mathrm d V}{\\rho V} \\\\\n", "&= \\dfrac{ \\rho\\int\\limits_{B} \\vec{r}\\,\\mathrm d V}{\\rho V} \\\\\n", "&= \\dfrac{ \\int\\limits_{B} \\vec{r}\\,\\mathrm d V}{V} \\\\\n", "\\vec{r}_{cm} &= \\vec{r}_{gc}\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "\n", "\n", "# Moment of rotational inertia\n", "\n", "The moment of rotational inertia (or moment of inertia or rotational inertia), equivalent to mass for linear motion, is a quantitative measure of the resistance to rotational acceleration around an axis of a distribution of mass in space.\n", "\n", "Consider the linear momentum of a particle in motion, by definition:\n", "\n", "\\begin{equation}\n", "\\vec{p} = m\\vec{v}\n", "\\label{}\n", "\\end{equation}\n", "\n", "The angular momentum of a particle in rotational motion, by definition is:\n", "\n", "\\begin{equation}\n", "\\vec{H}_{/O} = \\vec{r} \\times \\vec{p}\n", "\\label{}\n", "\\end{equation}\n", "\n", "where $\\vec{r}$ is the position of the particle relative to the chosen origin $O$.\n", "\n", "
momentum
Figure. A particle at position r with linear momentum and angular momentum relative to origin O.
\n", "\n", "For simplicity (later we will generalize this problem), let's consider that the particle rotates at a fixed plane and at a fixed distance, $r$, to point $O$ (i.e., circular motion). In this case, the magnitude of the angular momentum is:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "H_{/O} &= r \\, p \\\\\n", "&= r \\, m \\, v \\\\\n", "&= r \\, m \\, \\omega \\, r \\\\\n", "H_{/O} &= m \\, r^2 \\, \\omega\n", "\\end{array}\n", "\\label{}\n", "\\end{equation}\n", "\n", "where $\\omega$ is the angular speed of rotation.\n", "\n", "Equivalent to the linear momentum, defined as mass (inertia) times velocity, in the equation above, the term in the right-hand side that multiplies the angular velocity is defined as the rotational inertia or moment of inertia of the particle around axis passing through point $O$:\n", "\n", "\\begin{equation}\n", "I_O = m r^2\n", "\\label{}\n", "\\end{equation}\n", "\n", "The value of the moment of inertia is a single positive scalar for a planar rotation or a tensor (a 3×3 inertia matrix) for a three-dimensional rotation (we will see that later). Its dimension is $[M][L]^2$ and its SI unit is $kgm^2$." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Set of particles\n", "\n", "For a system of $n$ particles, the moment of inertia around a fixed axis passing by point $O$ for the case of planar rotation will be simply the sum of the moment of inertia of each particle: \n", "\n", "\\begin{equation}\n", "I_O = \\sum_{i=1}^n m_{i}r_{i/O}^2\n", "\\label{eg:I}\n", "\\end{equation}" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example: System with two particles\n", "\n", "Calculate the moment of inertia of a system composed of two particles, each with 2-kg mass and spaced by 1 m, rotating around an axis perpendicular to the line that joins the two particles and passing through: a) center of mass of the system and b) one of the masses.\n", "\n", "The center of mass of the system is at the center (centroid) of the system. Using this position as the origin of the system, the moment of inertia of the system around its center of mass is:\n", "\n", "$$ I_{cm} = 2 \\times (0.5)^2 + 2 \\times (0.5)^2 = 1 \\, kgm^2 $$\n", "\n", "And around one of the masses:\n", "\n", "$$ I_{m_1} = 2 \\times (0)^2 + 2 \\times (1)^2 = 2 \\, kgm^2 $$" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Rigid body\n", "\n", "In analogy to the determination of the center of mass, the moment of inertia of a rigid body around an axis passing through a point $O$ in the case of a planar rotation is given by the integral of the squared distance over the distribution of mass of the body:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l} \n", "I_O = \\int\\limits r^2_{/O} \\,\\mathrm d m \\\\\n", "I_O = \\int\\limits (x^2_{/O}+y^2_{/O})\\,\\mathrm d m\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "For planar movements, we usually compute the moment of inertia relative to the $z$ axis (the axis perpendicular to the plane) and the point to compute the moment of inertia is the body center of mass (later we will see a simple form to calculate the moment of inertia around any axis parallel to the axis passing through the body center of mass). So, a common notation is:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l} \n", "I^{cm}_{zz} = \\int\\limits (x^2_{/cm}+y^2_{/cm})\\,\\mathrm d m\n", "\\label{eq:inmomzzo}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "The double $z$ in fact has a special meaning that will be clear when we consider possible rotations in three-dimensions." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example: Bar\n", "\n", "Let's compute the moment of inertia relative to the center of mass for the same bar we computed its center of mass. \n", "\n", "The moment of inertia relative to the center of mass is:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "I_{zz}^{cm} &= \\int\\limits x_{/cm}^2\\,\\mathrm d m \\\\\n", "&= \\int\\limits_{-l/2}^{l/2} x^2\\rho\\,\\mathrm d x \\\\\n", "&= \\rho\\left.\\left(\\dfrac{x^3}{3}\\right)\\right|_{-l/2}^{l/2} \\\\\n", "&= \\rho\\left(\\dfrac{l^3}{24}+\\dfrac{l^3}{24}\\right) \\\\\n", "&= \\rho\\dfrac{l^3}{12} \\\\\n", "I_{zz}^{cm} &= \\dfrac{ml^2}{12}\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "Or using the Sympy library:" ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "ExecuteTime": { "end_time": "2020-04-23T02:26:58.421329Z", "start_time": "2020-04-23T02:26:58.401846Z" } }, "outputs": [ { "data": { "text/latex": [ "$\\displaystyle I_{zz}^{cm} = \\frac{\\ell^{2} m}{12}$" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# define variables\n", "x = sym.symbols('x')\n", "m1, rho, ell = sym.symbols('m, rho, ell', positive=True)\n", "m = rho*ell\n", "# solve the integral\n", "Icm = rho * sym.integrate(x**2, (x, -ell/2, ell/2))/m\n", "\n", "print2('I_{zz}^{cm}', Icm*m1)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Radius of gyration\n", "\n", "Radius of gyration is defined as the distance that a particle would be from the a point $O$ to have the same moment of inertia that the body has. So, the radius of gyration is defined as:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "r_{gyr} = \\sqrt{\\dfrac{I_{zz}^{cm}}{m}}\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "#### Example: Bar\n", "\n", "For a homogeneous bar with length $l$, the radius of gyration is:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "r_{gyr} = \\sqrt{\\dfrac{\\dfrac{ml^2}{12}}{m}}=\\sqrt{\\dfrac{l^2}{12}} = \\dfrac{l\\sqrt{3}}{6} \n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "This means that for the bar, the moment of inertia around an axis passing by its center of mass is the same as of a particle with equal mass but located at $r_{gyr}$ from this axis. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Parallel axis theorem\n", "\n", "If we have computed the moment of inertia relative to the center of mass for an axis, for example the $z$ axis, and now want to compute the moment of inertia relative to another point $O$ for an axis parallel to the first, there is an expression to aid the computation of this moment of inertia. \n", "\n", "In the figure below, the axis is perpendicular to the plane.\n", "\n", "
parallel axis theorem
Figure. The parallel axis theorem for the calculation of the moment of inertia of a body.
\n", "\n", "The moment of inertia relative to the axis passing through the point O is given by:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "I_{zz}^O &= \\int\\limits_B x_{/O}^2+y_{/O}^2\\,\\mathrm d m \\\\\n", "&= \\int\\limits_B (x_{/cm}+x_{cm/O})^2+(y_{/cm}+y_{cm/O})^2\\,\\mathrm d m \\\\\n", "&= \\int\\limits_B x_{/cm}^2+2x_{/cm}x_{cm/O}+x_{cm/O}^2+y_{/cm}^2+2y_{/cm}y_{cm/O}+y_{cm/O}^2\\,\\mathrm d m \\\\\n", "&=\\underbrace{\\int\\limits_B x_{/cm}^2+y_{/cm}^2\\,\\mathrm d m}_{I_{zz}^{cm}} +\\int\\limits_B 2x_{/cm}x_{cm/O}\\,\\mathrm d m+\\int\\limits_B x_{cm/O}^2+y_{cm/O}^2\\,\\mathrm d m + \\int\\limits_B 2y_{/cm}y_{cm/O}\\,\\mathrm d m \\\\\n", "&= I_{zz}^{cm} +2x_{cm/O}\\underbrace{\\int\\limits_B x_{/cm}\\,\\mathrm d m}_{0}+\\underbrace{\\vphantom{\\int\\limits_B}(x_{cm/O}^2+y_{cm/O}^2)}_{d^2}\\underbrace{\\int\\limits_B \\,\\mathrm d m \\vphantom{\\Bigg)}}_{m_B} + 2y_{cm/O} \\underbrace{\\int\\limits_B y_{/cm}\\,\\mathrm d m}_{0} \\\\\n", "I_{zz}^{O} &= I_{zz}^{cm} + m_B\\,d^2\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "The terms $\\int\\limits_B x_{/cm}\\,\\mathrm d m$ and $\\int\\limits_B y_{/cm}\\,\\mathrm d m$ are equal to zero because of the definition of center of mass. The term $d$ is the distance between the two axes. \n", "Note that this theorem is valid only for parallel axes and the original axis passes through the center of mass." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example: Bar\n", "\n", "Let's compute the moment of inertia of a bar relative to one of its extremities, by using the parallel axis theorem. \n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "I_{zz}^O &= I_{zz}^{cm} + m\\left(\\dfrac{l}{2}\\right)^2 \\\\\n", "&= \\dfrac{ml^2}{12} + \\dfrac{ml^2}{4} = \\dfrac{ml^2}{3}\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "Verify that for the example where we calculated the moment of inertia of a system with two particles in relation to axes passing by different points, we could have used the parallel axis theorem." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Moment of inertia of a complex system\n", "\n", "To compute the moment of inertia of a set o $n$ bodies relative to a point $O$ for a given axis (for example, the $z$ axis), we must apply the Eq.(\\ref{eq:inmomzzo}) for all bodies:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "I_{zz}^{O} &= \\int\\limits_{B1,B2,\\ldots,Bn} x_{/O}^2+y_{/O}^2\\,\\mathrm d m \\\\\n", "&= \\int\\limits_{B1} x_{/O}^2+y_{/O}^2\\,\\mathrm d m +\\int\\limits_{B2} x_{/O}^2+y_{/O}^2\\,\\mathrm d m +\\ldots+\\int\\limits_{Bn} x_{/O}^2+y_{/O}^2\\,\\mathrm d m\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "Now, using the parallel axis theorem, we can write the equation above in terms of the moment of inertia relative to the center of mass of each body:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "I_{zz}^{O} &= I_{zz_{B1}}^{cm_1} + m_{B1}.||\\vec{r}_{cm_1/O}||^2 +I_{zz_{B2}}^{cm_2} + m_{B2}.||\\vec{r}_{cm_2/O}||^2 +\\ldots + I_{zz_{Bn}}^{cm_n} + m_{Bn}.||\\vec{r}_{cm_n/O}||^2 \n", "\\label{eq:paral}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "where $I_{zz_{Bi}}^{cm_i}$ is the moment of inertia of the body $i$ relative to its center of mass." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example: Eight bars\n", "\n", "Let's compute the moment of inertia of the set of eight equal and homogeneous bars depicted in the figure below relative to its center of mass.\n", "\n", "
Moment of inertia of a system with eight bars
Figure. Moment of inertia of a system with eight bars.
\n", " \n", "By symmetry, the center of mass of this system is in the point $O$. So, to compute the moment of inertia relative to this point, we must use the parallel axis theorem to each bar, and then sum the results, as in Eq.(\\ref{eq:paral}).\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "I^{cm}_{zz}={} & I^{cm1}_{zz}+m\\left(\\frac{l}{2}\\right)^2+I^{cm2}_{zz}+m\\left(\\frac{l}{2}\\right)^2+I^{cm3}_{zz}+m\\left(\\frac{l}{2}\\right)^2+I^{cm4}_{zz}+m\\left(\\frac{l}{2}\\right)^2 + \\\\\n", "& I^{cm5}_{zz}+m\\left(\\frac{l}{2}\\right)^2+I^{cm6}_{zz}+m\\left(\\frac{l}{2}\\right)^2+I^{cm7}_{zz}+m\\left(\\frac{l}{2}\\right)^2+I^{cm8}_{zz}+m\\left(\\frac{l}{2}\\right)^2\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "The moment of inertia of a bar relative to its center of mass is $\\frac{ml^2}{12}$. \n", "So the moment of inertia of the system relative to its center of mass is:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "I^{cm}_{zz} = 8\\cdot\\left[\\dfrac{ml^2}{12}+m\\left(\\dfrac{l}{2}\\right)^2\\right] = \\dfrac{8ml^2}{3}\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "Verify that for this example, we also could have explored even more the symmetry of the system and computed the total moment of inertia as the sum of the moment of inertia of four bars, each with length $2l$ and mass $2m$, each rotating around its center." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Matrix of Inertia\n", "\n", "Let's find the expression for the moment of inertia of a three-dimensional problem for a system rotating around an axis where we can't reduce the problem to a possible planar rotation. But let's continue considering that the axis of rotation passes through the center of mass (one can always use the theorem of parallel axis).\n", "\n", "In this case, the angular momentum for a system composed of a set of particles is:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "\\vec{H}_{cm} &= \\sum \\vec{r}_{i/cm} \\times \\vec{p}_i \\\\\n", "&= \\sum \\vec{r}_{i/cm} \\times m_i\\vec{v}_i \\\\\n", "&= \\sum \\vec{r}_{i/cm} \\times m_i(\\vec{\\omega}_i \\times \\vec{r}_{i/cm}) \\\\\n", "\\vec{H}_{cm} &= \\sum m_i (\\vec{r}_{i/cm} \\times (\\vec{\\omega}_i \\times \\vec{r}_{i/cm}))\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "Calculating the vector triple product (mnemonic: abc = bac - cab) and separating the terms for each component of the angular momentum:\n", "\n", "\\begin{equation}\n", "\\begin{array}{r}\n", "H_{x/cm} &=& \\sum m_i \\big(&(y_i^2+z_i^2)\\omega_x &-x_iy_i\\omega_y &-x_iz_i\\omega_z \\big) \\\\\n", "H_{y/cm} &=& \\sum m_i \\big(&-y_ix_i\\omega_x &(z_i^2+x_i^2)\\omega_y &-y_iz_i\\omega_z \\big) \\\\\n", "H_{z/cm} &=& \\sum m_i \\big(&-z_ix_i\\omega_x &-z_iy_i\\omega_y &(x_i^2+y_i^2)\\omega_z \\big)\n", "\\end{array}\n", "\\label{}\n", "\\end{equation}\n", "\n", "Once again, in analogy to the linear momentum, we can write the equation above as $\\vec{H}_{cm} = I_{cm} \\vec{w}$, which in matrix form is:\n", "\n", "\\begin{equation}\n", "\\begin{bmatrix}\n", "H_x \\\\ H_y \\\\ H_z\n", "\\end{bmatrix} =\n", "\\begin{bmatrix}\n", "I_{xx} & I_{xy} & I_{xz} \\\\\n", "I_{yx} & I_{yy} & I_{yz} \\\\\n", "I_{zx} & I_{zx} & I_{zz} \n", "\\end{bmatrix} \\cdot\n", "\\begin{bmatrix}\n", "\\omega_x \\\\ \\omega_y \\\\ \\omega_z\n", "\\end{bmatrix}\n", "\\label{}\n", "\\end{equation}\n", " \n", "The matrix with the moment of inertia terms in the equation above is referred as the matrix of inertia (or inertia matrix or inertia tensor):\n", "\n", "\\begin{equation}\n", "I^{cm} = \\begin{bmatrix}\n", "&\\sum m_i (y_i^2+z_i^2) &-\\sum m_i x_iy_i &-\\sum m_i x_iz_i \\\\\n", "&-\\sum m_i y_ix_i &\\sum m_i (z_i^2+x_i^2) &-\\sum m_i y_iz_i \\\\\n", "&-\\sum m_i z_ix_i &-\\sum m_i z_iy_i &\\sum m_i (x_i^2+y_i^2)\n", "\\end{bmatrix}\n", "\\label{}\n", "\\end{equation}\n", "\n", "Equivalently, for a rigid body the matrix of inertia is:\n", "\n", "\\begin{equation}\n", "I^{cm} = \\begin{bmatrix}\n", "&\\int (y^2+z^2)\\,\\mathrm d m &-\\int xy\\,\\mathrm d m &-\\int xz\\,\\mathrm d m \\\\\n", "&-\\int yx\\,\\mathrm d m &\\int (z^2+x^2)\\,\\mathrm d m &-\\int yz\\,\\mathrm d m \\\\\n", "&-\\int zx\\,\\mathrm d m &-\\int zy\\,\\mathrm d m &\\int (x^2+y^2)\\,\\mathrm d m\n", "\\end{bmatrix}\n", "\\label{}\n", "\\end{equation}\n", "\n", "It's usual to refer to the matrix of inertia simply by:\n", "\n", "\\begin{equation}\n", "I^{cm} = \\begin{bmatrix}\n", "I_{xx} & I_{xy} & I_{xz} \\\\\n", "I_{yx} & I_{yy} & I_{yz} \\\\\n", "I_{zx} & I_{zx} & I_{zz} \n", "\\end{bmatrix}\n", "\\label{}\n", "\\end{equation}\n", "\n", "Note that in the notation of subscripts with two axes, the first subscript refers to the component (axis) of the angular momentum, and the second subscript refers to the component (axis) of the angular velocity." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Principal axes\n", "\n", "If the axes of rotation to calculate the moment of inertia are aligned with the axes of symmetry of the body passing through the center of mass (referred as principal axes), the terms off the main diagonal of the matrix of inertia are all zero because, by definition of center of mass, the mass is equally distributed around these axes of symmetry for each pair of coordinates considered in the integration. The terms off-diagonal are called product of inertia. In this case, the matrix of inertia becomes:\n", "\n", "\\begin{equation}\n", "I^{cm} = \\begin{bmatrix}\n", "I_1 & 0 & 0 \\\\\n", "0 & I_2 & 0 \\\\\n", "0 & 0 & I_3 \n", "\\end{bmatrix}\n", "\\label{}\n", "\\end{equation}\n", "\n", "where $I_1$, $I_2$ and $I_3$ are the moments of inertia around each of the principal axes of the body.\n", "\n", "This is a common strategy employed in biomechanics; in motion analysis we construct a base for each segment such that this base is aligned to the principal axes of the segment, and we do that for every instant the segment moves." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example: Cylinder\n", "\n", "Consider a cylinder with constant density shown in the figure below and compute the moment of inertia around the three axes relative to the center of mass. \n", "The mass of this cylinder is $m = \\rho h \\pi R^2$ and, by symmetry, the moment of inertia is in the center (centroid) of the cylinder.\n", "\n", "
Moment of inertia of a cylinder
Figure. Moment of inertia of a cylinder.
\n", " \n", "The easiest approach to this problem is to use cylindrical coordinates $\\theta, r, z$. In the integrals, the differential term $\\mathrm d m$ will be replaced by $\\rho r \\,\\mathrm d \\theta\\,\\mathrm d r\\,\\mathrm d z$ and the limits of the integral will be $[0,2\\pi]$, $[0,R]$, $[-h/2,h/2]$.\n", "\n", "First, around the $z$ axis:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "I_{zz}^{cm} &= \\int\\limits_B (x_{/cm}^2+y_{/cm}^2)\\,\\mathrm d m \\\\\n", "&= \\int\\limits_{-h/2}^{h/2}\\int\\limits_0^R\\int\\limits_0^{2\\pi} r^2 \\rho r \\,\\mathrm d \\theta\\,\\mathrm d r\\,\\mathrm d z \\\\\n", "&= \\rho \\int\\limits_{-h/2}^{h/2}\\int\\limits_0^R\\int\\limits_0^{2\\pi} r^3 \\,\\mathrm d \\theta\\,\\mathrm d r\\,\\mathrm d z \\\\\n", "&= \\rho \\int\\limits_{-h/2}^{h/2}\\int\\limits_0^R 2\\pi r^3 \\,\\mathrm d r\\,\\mathrm d z \\\\\n", "&= \\rho \\int\\limits_{-h/2}^{h/2} 2\\pi \\frac{R^4}{4} \\,dz \\\\\n", "&= \\rho \\pi \\frac{R^4}{2}h \\\\\n", "I_{zz}^{cm} &= \\dfrac{mR^2}{2}\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "Now, around the $x$ axis:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "I_{xx}^{cm} &= \\int\\limits_B (z_{/cm}^2+y_{/cm}^2)\\,\\mathrm d m \\\\\n", "&= \\int\\limits_{-h/2}^{h/2}\\int\\limits_0^R\\int\\limits_0^{2\\pi} (z^2+r^2\\sin^2(\\theta)) \\rho r \\,\\mathrm d \\theta\\,\\mathrm d r\\,\\mathrm d z \\\\\n", "I_{xx}^{cm} &= \\rho\\int\\limits_{-h/2}^{h/2}\\int\\limits_0^R\\int\\limits_0^{2\\pi} (r z^2+r^3\\sin^2(\\theta)) \\,\\mathrm d \\theta\\,\\mathrm d r\\,\\mathrm d z \n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "And by symmetry, the moment of inertia around the axis $y$ passing by the center of mass is equal to the moment of inertia around the axis $x$.\n", "\n", "We will solve this integral using the Sympy library:" ] }, { "cell_type": "code", "execution_count": 7, "metadata": { "ExecuteTime": { "end_time": "2020-04-23T02:26:58.512219Z", "start_time": "2020-04-23T02:26:58.422326Z" } }, "outputs": [ { "data": { "text/latex": [ "$\\displaystyle I^{cm}_{xx}=I^{cm}_{yy} = \\frac{m \\left(3 R^{2} + h^{2}\\right)}{12}$" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# define variables\n", "h, R, rho, m1 = sym.symbols('h, R, rho, m', positive=True)\n", "theta, r, z = sym.symbols('theta, r, z')\n", "m = rho*h*sym.pi*R**2\n", "# solve the integral\n", "Ixx = rho*sym.integrate(sym.integrate(sym.integrate(r*z**2 + (r**3)*sym.sin(theta)**2,\n", " (theta, 0, 2*sym.pi)),\n", " (r, 0, R)),\n", " (z, -h/2, h/2))/m\n", "Ixxcm = sym.simplify(m1*Ixx)\n", "\n", "print2('I^{cm}_{xx}=I^{cm}_{yy}', Ixxcm)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**The product of inertia terms**\n", "\n", "By inspecting the problem, we know that because of symmetry of the axes w.r.t. the cylinder, the product of inertia terms of the matrix of inertia should be all zero. Let's confirm that. \n", "Here are the integrals:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "I_{xy}^{cm} &= -\\int x_{/cm}y_{/cm}\\,\\mathrm d m \\\\\n", "&= -\\int\\limits_{-h/2}^{h/2}\\int\\limits_0^R\\int\\limits_0^{2\\pi} r\\cos\\theta \\,r\\sin\\theta \\rho r \\,\\mathrm d \\theta\\,\\mathrm d r\\,\\mathrm d z \\\\\n", "I_{yx}^{cm} &= -\\int y_{/cm}x_{/cm}\\,\\mathrm d m \\\\\n", "&= -\\int\\limits_{-h/2}^{h/2}\\int\\limits_0^R\\int\\limits_0^{2\\pi} r\\sin\\theta \\,r\\cos\\theta \\rho r \\,\\mathrm d \\theta\\,\\mathrm d r\\,\\mathrm d z \\\\\n", "I_{xz}^{cm} &= -\\int x_{/cm}z_{/cm}\\,\\mathrm d m \\\\\n", "&= -\\int\\limits_{-h/2}^{h/2}\\int\\limits_0^R\\int\\limits_0^{2\\pi} r\\cos\\theta \\,z \\rho r \\,\\mathrm d \\theta\\,\\mathrm d r\\,\\mathrm d z \\\\\n", "I_{zx}^{cm} &= -\\int z_{/cm}x_{/cm}\\,\\mathrm d m \\\\\n", "&= -\\int\\limits_{-h/2}^{h/2}\\int\\limits_0^R\\int\\limits_0^{2\\pi} z \\, r\\cos\\theta \\rho r \\,\\mathrm d \\theta\\,\\mathrm d r\\,\\mathrm d z \\\\\n", "I_{yz}^{cm} &= -\\int y_{/cm}z_{/cm}\\,\\mathrm d m \\\\\n", "&= -\\int\\limits_{-h/2}^{h/2}\\int\\limits_0^R\\int\\limits_0^{2\\pi} r\\sin\\theta \\, z \\rho r \\,\\mathrm d \\theta\\,\\mathrm d r\\,\\mathrm d z \\\\\n", "I_{zy}^{cm} &= -\\int z_{/cm}y_{/cm}\\,\\mathrm d m \\\\\n", "&= -\\int\\limits_{-h/2}^{h/2}\\int\\limits_0^R\\int\\limits_0^{2\\pi} z \\, \\,r\\sin\\theta \\rho r \\,\\mathrm d \\theta\\,\\mathrm d r\\,\\mathrm d z\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "The product of inertia terms are indeed all zero." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### The parallel axis theorem for rigid bodies in three dimensions\n", "\n", "The parallel axis theorem for rigid bodies in three dimensions is (see page 1083 of Ruina and Pratap, (2019)): \n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "I^O = I^{cm} + m\\begin{bmatrix}\n", "& y_{cm/O}^2+z_{cm/O}^2 &-x_{cm/O}y_{cm/O} &-x_{cm/O}z_{cm/O} \\\\\n", "&-y_{cm/O}x_{cm/O} & z_{cm/O}^2+x_{cm/O}^2 &-y_{cm/O}z_{cm/O} \\\\\n", "&-z_{cm/O}x_{cm/O} &-z_{cm/O}y_{cm/O} & x_{cm/O}^2+y_{cm/O}^2\n", "\\end{bmatrix} \n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "where $x_{cm/O}, y_{cm/O}, z_{cm/O}$ are the $x, y, z$ coordinates of the center of mass with respect to a coordinate system whose origin is located at point $O$.\n", "\n", "The terms $I^O_{i,j}$ of the inertia tensor above can be represented in a shorter form as:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "I^O_{ij} = I^{cm}_{ij} + m\\left(|\\vec{r}_{cm/O}|^2\\delta_{ij} - r_{i,cm/O}r_{j,cm/O}\\right)\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "where $\\vec{r}_{cm/O} = x_{cm/O} \\hat{i} + y_{cm/O}\\hat{j} + z_{cm/O}\\hat{k}$, $\\delta_{ij}$ is the Kronecker delta, and $i,j$ varies from 1 to 3 (which also span the $x, y, z$ coordinates). " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Moment of rotational inertia and area moment of inertia\n", "\n", "Another related quantity to moment of rotational inertia is the area moment of inertia; the latter is more used in the field of strength of materials. The area moment of inertia is a property of the shape of a body, it expresses the difficulty to deflect, bend or stress this body, and is given by:\n", "\n", "\\begin{equation}\n", "\\begin{array}{l}\n", "I = \\int\\limits r^2\\,\\mathrm d A\n", "\\label{}\n", "\\end{array}\n", "\\end{equation}\n", "\n", "where $\\mathrm d A$ is the differential of area.\n", "\n", "One can see that the area moment of inertia has no mass term; it has dimension $[L]^4$ and SI unit $m^4$. \n", "To salient the difference between these two quantities, the moment of rotational inertia is also known as mass moment of inertia." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Further reading\n", "\n", "- Center of mass: Read pages pages 145-160 of the [Ruina and Pratap (2019)](http://ruina.tam.cornell.edu/Book/index.html);\n", "- Moment of inertia: Read pages 771-781 and 1081-1089 of the [Ruina and Pratap (2019)](http://ruina.tam.cornell.edu/Book/index.html), read the chapter 17 of the [Hibbeler's book](https://drive.google.com/file/d/1sDLluWCiBCog2C11_Iu1fjv-BtfVUxBU/view) (available in the Classroom)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Video lectures on the internet \n", "\n", "- Center of mass: \n", " - Khan Academy: [definition](https://www.khanacademy.org/science/ap-physics-1/ap-linear-momentum/center-of-mass-ap/v/center-of-mass), [definição (in Portuguese)](https://pt.khanacademy.org/science/physics/linear-momentum/center-of-mass/v/center-of-mass);\n", " - MIT OpenCourseWare: [definition](https://youtu.be/ol1COj0LACs), [of three objects](https://youtu.be/-b0dFcebPcs), [of a continuous system](https://youtu.be/e548hRYcXlg), [of extended objects](https://ocw.mit.edu/courses/physics/8-01sc-classical-mechanics-fall-2016/week-5-momentum-and-impulse/17.4-center-of-mass-of-a-system-of-extended-objects), [of a uniform rod](https://youtu.be/CFh3gu-z_rc);\n", "- Moment of inertia: \n", " - Khan Academy: [definition](https://www.khanacademy.org/science/physics/torque-angular-momentum/torque-tutorial/v/more-on-moment-of-inertia), [definição (in Portuguese)](https://pt.khanacademy.org/science/physics/torque-angular-momentum/torque-tutorial/v/more-on-moment-of-inertia);\n", " - MIT OpenCourseWare: [definition](https://youtu.be/0QF_uCgZW4Y), [of a rod](https://youtu.be/1AJbVRQTZlA), [of a disc](https://youtu.be/BPnbq6BobdA), [parallel axis theorem](https://youtu.be/r2Qb0vsxa8Y), [of a sphere](https://youtu.be/QmCQUBSsKwQ), [matrix of inertia](https://youtu.be/lT-GIGebbNc); \n", " - [Difference between mass and area moments of inertia](https://youtu.be/Bls5KnQOWkY)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Problems\n", "\n", "1. Solve problems 2.2.5, 2.2.7, 16.3.11, 16.3.15 from Ruina and Pratap (2019). \n", "2. Determine the center of mass position and moment of inertia (around the principal axes of the object) for (adopt mass equal 1 kg): \n", " 1. A planar disc with radius $r$. \n", " 2. A planar square with side $a$. \n", " 3. A planar ellipse with semi-axes $a$ and $b$. \n", " 4. A sphere with radius $r$. \n", " 5. A cube with side $a$. \n", " 6. An ellipsoid with semi-axes $a$, $b$ and $c$ (see http://scienceworld.wolfram.com/physics/MomentofInertiaEllipsoid.html). \n", "3. Calculate the matrix of inertia for the following systems: \n", " 1. A particle with mass 1 kg located at $[1, 2, 0]\\,m$ in relation to the origin $[0, 0, 0]\\,m$. \n", " 2. A set of two particles, each with mass 1 kg, located at $[1, 2, 0]\\,m$ and $[-1, -2, 0]\\,m$ in relation to the set center of mass.\n", "4. Check examples 17.1 e 17.2 from Hibbeler's book." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## References\n", "\n", "- Ruina A, Rudra P (2019) [Introduction to Statics and Dynamics](http://ruina.tam.cornell.edu/Book/index.html). Oxford University Press.\n", "- R. C. Hibbeler (2010) [Engineering Mechanics Dynamics](https://drive.google.com/file/d/1sDLluWCiBCog2C11_Iu1fjv-BtfVUxBU/view). 12th Edition. Pearson Prentice Hall." ] } ], "metadata": { "hide_input": false, "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.15" }, "latex_envs": { "LaTeX_envs_menu_present": true, "autoclose": false, "autocomplete": true, "bibliofile": "biblio.bib", "cite_by": "apalike", "current_citInitial": 1, "eqLabelWithNumbers": true, "eqNumInitial": 1, "hotkeys": { "equation": "Ctrl-E", "itemize": "Ctrl-I" }, "labels_anchors": false, "latex_user_defs": false, "report_style_numbering": false, "user_envs_cfg": false }, "nbTranslate": { "displayLangs": [ "pt" ], "hotkey": "alt-t", "langInMainMenu": true, "sourceLang": "en", "targetLang": "pt", "useGoogleTranslate": true }, "toc": { "base_numbering": 1, "nav_menu": { "height": "300px", "width": "320px" }, "number_sections": true, "sideBar": true, "skip_h1_title": true, "title_cell": "Contents", "title_sidebar": "Contents", "toc_cell": true, "toc_position": {}, "toc_section_display": true, "toc_window_display": false }, "varInspector": { "cols": { "lenName": 16, "lenType": 16, "lenVar": 40 }, "kernels_config": { "python": { "delete_cmd_postfix": "", "delete_cmd_prefix": "del ", "library": "var_list.py", "varRefreshCmd": "print(var_dic_list())" }, "r": { "delete_cmd_postfix": ") ", "delete_cmd_prefix": "rm(", "library": "var_list.r", "varRefreshCmd": "cat(var_dic_list()) " } }, "types_to_exclude": [ "module", "function", "builtin_function_or_method", "instance", "_Feature" ], "window_display": false } }, "nbformat": 4, "nbformat_minor": 4 }