{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "
\n", " Workshop \"Teaching and Learning with Jupyter Notebooks\" 2021
\n", " C. Hardebolle, CC BY-NC-SA 4.0 Int.

\n", " How to use this notebook?
\n", " This notebook is made of text cells and code cells. The code cells have to be executed to see the result of the program. To execute a cell, simply select it and click on the \"play\" button () in the tool bar just above the notebook, or type shift + enter. It is important to execute the code cells in their order of appearance in the notebook.\n", "
" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Learning goals\n", "\n", "After using this notebook, you should be able to:\n", "* Describe how the counterweight influences the position of the cable in the jeans problem\n", "* Analyze how the the counterweight and the position of the cable influence the tension force in the jeans problem\n", "* Illustrate what effects can high tension have on a cable\n", "* Use Python to make calculations\n", "\n", "
\n", "\n", "---" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Question \n", "\n", "The question we are trying to answer in this notebook is the following: \n", "Estimate which counterweight allows to suspend wet jeans (3kg) on the cable in the position illustrated below.\n", "\n", "\"suspended" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# 1. Before anything\n", "\n", "The activities below allow you to explore how the counterweight affects the position of the jeans suspended on the cable. \n", "Before starting, it is useful to note down **which counterweight you think allows to suspend the jeans in the expected position** (i.e. your answer to the clicker question):" ] }, { "cell_type": "raw", "metadata": {}, "source": [ "Just note down your answer here (this cell is for note taking)." ] }, { "cell_type": "markdown", "metadata": { "toc-hr-collapsed": false }, "source": [ "---" ] }, { "cell_type": "markdown", "metadata": { "toc-hr-collapsed": false }, "source": [ "# 2. Analyzing the problem\n", "\n", "First let's analyze the question into a little bit more details. \n", "\n", "## Looking at the jeans\n", "\n", "Let's take for granted that the jeans do not move on the cable, i.e. the whole system is in static equilibrium. Then it is just like the cable would be attached to fixed points on both sides, we can ignore the pulley. Let's make a sketch.\n", "\n", "\"sketch\"\n", "\n", "Therefore we are in a situation which is identical to the one seen in the mini-lecture, except that the cable is attached to poles instead of the ceiling. This doesn't change anything in terms of the forces applied to the jeans, which are:\n", "* the weight $\\vec{F}$ \n", "* the tensions $\\vec{T}$ in both sides of the cable, which are identical in norm if we assume that the jeans are suspended right in the middle of the cable\n", "\n", "However we need to figure out where the angle $\\alpha$ is. If we draw a line that represents the horizon, then the angle $\\alpha$ is the angle between the cable and the horizon. \n", "Let's add the forces and the angle to our sketch.\n", "\n", "\"sketch\"\n", "\n", "We can therefore use the equation seen in the mini-lecture, which gives the tension in the cable depending on the mass $m$ of the suspended object, the angle $\\alpha$ that the cable makes with the horizon and the gravity of earth $g$ - and this is equation number (1):\n", "\n", "$\n", "\\begin{align}\n", "\\lvert\\vec{T}\\rvert = \\frac{\\frac{1}{2}.m.g}{sin(\\alpha)}\n", "\\end{align}\n", "$\n", "\n", "Now how can we relate this tention to the counterweight in our original question? \n", "We need to look at the forces applied on the counterweight. " ] }, { "cell_type": "markdown", "metadata": { "toc-hr-collapsed": false }, "source": [ "## Looking at the counterweight\n", "\n", "Again, if the counterweight is not moving, it is like if it were attached to a fixed point and we can ignore the pulley. \n", "Let's make a sketch:\n", "\n", "\"sketch\"\n", "\n", "The forces applied on the counterweight are:\n", "* the weight $\\vec{F_{cw}}$ \n", "* the tensions in the cable: because a pulley simply changes the direction of a force, actually the tension in the cable which attaches the counterweight is the same (in norm) as the tension $\\vec{T}$ in the cable which attaches the jeans.\n", "\n", "Now because the counterweight is not moving, it means that the tension $\\vec{T}$ compensates exactly the weight $\\vec{F_{cw}}$ (as we have seen in the mini-lecture). \n", "Therefore we can write - and this is equation number (2):\n", "\n", "$\n", "\\begin{align}\n", "\\lvert\\vec{T}\\rvert = m_{cw}.g\n", "\\end{align}\n", "$\n", "\n", "What we are looking for is the mass of the counterweight $m_{cw}$ that allows to suspend the jeans in the right position. \n", "To find it out, we need to use our equation number (2) in combination with our equation number (1). \n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Finding the mass of the counterweight\n", "\n", "From the analysis above we have two equations (1) and (2):\n", "\n", "$\n", "\\begin{align}\n", "\\left\\{\\begin{matrix}\\lvert\\vec{T}\\rvert = \\frac{\\frac{1}{2}.m.g}{sin(\\alpha)} \\\\ \\lvert\\vec{T}\\rvert = m_{cw}.g\\end{matrix}\\right. \n", "\\end{align}\n", "$\n", "\n", "Since the left side is the same, we can write an equality between the two right-sides of these equations:\n", "\n", "$\n", "\\begin{align}\n", "\\frac{\\frac{1}{2}.m.g}{sin(\\alpha)} = m_{cw}.g\n", "\\end{align}\n", "$\n", "\n", "We can now isolate $m_{cw}$ on one side of the equation:\n", "\n", "$\n", "\\begin{align}\n", "m_{cw} = \\frac{\\frac{1}{2}.m.g}{sin(\\alpha).g} \n", "\\end{align}\n", "$\n", "\n", "The two $g$ cancel out, which gives: \n", "\n", "$\n", "\\begin{align}\n", "m_{cw} = \\frac{\\frac{1}{2}.m}{sin(\\alpha)} \n", "\\end{align}\n", "$\n", "\n", "Great we can now compute the mass of the counterweight!
\n", "In the following we are going to use Python to **compute the mass of the counterweight** for **different values of the angle $\\alpha$**." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# 3. Computing the mass of the counterweight with Python\n", "\n", "We first need to import some useful libraries with predefined Python functions that we are going to use.\n", "\n", "**Execute the code cell below** so that the appropriate libraries get imported." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from lib.suspendedobjects import *" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Because we don't know exactly which value is the angle $\\alpha$ that we really want, apart that we can see that it must be small on the diagram, we will have to \"experiment\" a bit and compute the mass of the counterweight several times to " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Let's write a function\n", "\n", "Now let's define a Python function that will compute the mass of the counterweight when we give it an angle $\\alpha$: \n", "* The function takes one input parameters, `alpha`, which is the angle that the cable makes with the horizon. \n", "* It returns the value of the mass of the counterweight as computed with: \n", "$\n", "\\begin{align}\n", "\\frac{\\frac{1}{2}.m}{sin(\\alpha)}\n", "\\end{align}\n", "$\n", "\n", "In this equation, we have one constant which is the mass $m$ of the jeans, which we need to define as equal to 3 kg.\n", "\n", "**Execute the code cell below** so that this function gets defined in Python." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# first let's define the mass of the jeans (3 kg)\n", "m = 3\n", "\n", "# then let's define the function that computes the mass of the counterweight\n", "def mass_counterweight(alpha):\n", " return 1/2 * m / np.sin(alpha)\n", "\n", "# and print a message once this is done\n", "print(\"Function defined.\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now we can use our function to compute the mass of the counterweight for a given $\\alpha$ angle. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Using the function to compute the mass of the counterweight\n", "\n", "Let's see **which counterweight would allow the cable to make an angle of 15$^\\circ$ with the horizon** for instance. \n", "Before using our function, we need to convert these 15$^\\circ$ into radians. \n", "This is where the library we have imported get useful as they provide us with a function `degrees_to_radians` which we can use to convert our angle." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# we take an angle of 15 degrees\n", "alpha = 15\n", "\n", "# we convert it to radians\n", "alpha_radians = degrees_to_radians(alpha)\n", "\n", "# then we use our function to compute the mass of the counterweight\n", "m_cw = mass_counterweight(alpha_radians)\n", "\n", "# and print the result\n", "print(f\"Mass of the counterweight for an angle of {alpha} degrees ({alpha_radians:.2f} radians): {m_cw:.2f} kg\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "But how big is 15$^\\circ$? Is that the angle that the cable makes with the horizon on the jeans situation? \n", "This depends on the parameters of the situation, in particular on the relationship between the height of the poles and the distance between them. \n", "To clarify what that means, let's **visualize what an angle of 15 $^\\circ$ means** with poles 1.5 meters high separated by a 5 meter distance." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# let's visualize the angle in a concrete situation where poles measure 1.5 meters and are distant from 5 meters\n", "SuspendedObjectsLab().visualize_angle(15);" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Question \n", "\n", "\"suspended\n", "\n", "Which angle do you think the cable makes with the horizon on the jeans diagram? \n", "**Modify the code in the cell below and execute it to visualize the angle you think is appropriate.**" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# let's visualize the angle in a concrete situation where poles measure 1.5 meters and are distant from 5 meters\n", "SuspendedObjectsLab().visualize_angle(2); # HERE CHANGE THE VALUE OF THE ANGLE" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Question \n", "\n", "Now, use the python function we have written before to determine which counterweight will give you this angle. \n", "**Modify the code in the cell below and execute it to compute the mass of the counterweight.**" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# we take an angle of XX degrees\n", "alpha = 2 # HERE CHANGE THE VALUE OF THE ANGLE\n", "\n", "# we convert it to radians\n", "alpha_radians = degrees_to_radians(alpha)\n", "\n", "# then we use our function to compute the mass of the counterweight\n", "m_cw = mass_counterweight(alpha_radians)\n", "\n", "# and print the result\n", "print(f\"Mass of the counterweight for an angle of {alpha} degrees ({alpha_radians:.2f} radians): {m_cw:.2f} kg\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Question \n", "\n", "How does this counterweight compares to the value you had chosen at the beginning? \n", "Are you surprised by the result?" ] }, { "cell_type": "raw", "metadata": {}, "source": [ "Just note down your answer here (this cell is for note taking)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "*You can check your answers with the solution available [in this file](solution/LearningPhysicsWithANotebook-solution.ipynb).*" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "---" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# 3. Looking at how the angle $\\alpha$ evolves with the mass counterweight\n", "\n", "Now we want to look at **how the tension evolves** when the angle $\\alpha$ changes. \n", "Thanks to our previously defined Python function, we are going to compute the tension in the cable for 100 different values of $\\alpha$ and plot the result on a graph. \n", "**Execute the code cell below** to see the resulting graph.\n", "\n", "*Note:* \n", "Python code for plotting can be quite verbose and not particularly interesting to look at unless you want to learn how to generate plots in Python. \n", "The good news is that you can **hide** a code cell from the notebook by selecting it and clicking on the blue bar which appears on its left. To make the cell visible again, just click again on the blue bar, or on the three \"dots\" which represent the collapsed cell." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Let's define the boundaries of the graph\n", "a_start = 30 # start the angle at 30° which is the initial angle that our cable makes with the horizon\n", "a_stop = 0 # stop at O° (excluded)\n", "\n", "# Now we generate 50 possible values for the mass of the counterweight\n", "a_deg = np.linspace(start=a_start, stop=a_stop, num=50, endpoint=False)\n", "\n", "# But since our previously defined function works with angles expressed in radians, we first convert our list of angles from degrees to radians\n", "a_rad = degrees_to_radians(a_deg)\n", "\n", "# compute the mass of the counterweight\n", "m_cw = mass_counterweight(a_rad)\n", "\n", "# Then we compute the value of the tension for all the 100 possible angles alpha using our previously defined function\n", "T = 1/2 * m * 9.81 / np.sin(a_rad)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Finally we generate the plot and customize its appearance\n", "#fig = figure(title='Angle as a function of the counterweight mass', x_axis_label = 'Angle ⍺ (°)', y_axis_label = 'T (N)', width=500, height=400, toolbar_location=None)\n", "fig, ax = plt.subplots(1, 2, figsize=(8, 4))\n", "#fig.title.align = \"center\"\n", "#fig.grid.grid_line_color = 'darkgray'\n", "#fig.ygrid.minor_grid_line_color = 'lightgray'\n", "\n", "ax[0].set_title('Mass of the counterweight (kg)')\n", "ax[0].plot(a_deg, m_cw, color=\"red\")\n", "\n", "ax[1].set_title('Tension T (N)')\n", "ax[1].plot(a_deg, T, color=\"blue\")\n", "\n", "plt.show();" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Let's define the boundaries of the graph\n", "m_start = 1 # start the angle at 21.8° which is the initial angle that our cable makes with the horizon\n", "m_stop = 100 # stop at O°\n", "\n", "# Now we generate 50 possible values for the mass of the counterweight\n", "m_cw = np.linspace(start=m_start, stop=m_stop, num=50)\n", "\n", "# Then we compute the value of the tension for all the 100 possible angles alpha using our previously defined function\n", "# But since our previously defined function works with angles expressed in radians, we first convert our list of angles from degrees to radians\n", "a_rad = alpha_from_counterweight(m_cw)\n", "a_deg = radians_to_degrees(a_rad)\n", "\n", "#m_cw = mass_counterweight(alpha_radians)\n", "\n", "\n", "# Finally we generate the plot and customize its appearance\n", "fig = figure(title='Angle as a function of the counterweight mass', x_axis_label = 'M (kg)', y_axis_label = 'Angle ⍺ (°)', width=500, height=400, toolbar_location=None)\n", "fig.title.align = \"center\"\n", "fig.grid.grid_line_color = 'darkgray'\n", "fig.ygrid.minor_grid_line_color = 'lightgray'\n", "fig.line(m_cw, a_deg, color=\"red\", line_width=2)\n", "show(fig)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Let's define the boundaries of the graph\n", "a_start = 21.8 # start the angle at 21.8° which is the initial angle that our cable makes with the horizon\n", "a_stop = 0 # stop at O°\n", "\n", "# Let's define how fine we want the grid on the graph\n", "a_step = 1 # for the angle, we want the grid to be shown every 2°\n", "t_step = 500 # for the tention, we want the grid to be shown every 500N\n", "\n", "# Now we generate 100 possible values for the angle alpha between a_start and a_stop (excluded)\n", "a_deg = np.linspace(start=a_start, stop=a_stop, num=100, endpoint = False)\n", "\n", "# Then we compute the value of the tension for all the 100 possible angles alpha using our previously defined function\n", "# But since our previously defined function works with angles expressed in radians, we first convert our list of angles from degrees to radians\n", "a_rad = degrees_to_radians(a_deg)\n", "t = tension_norm(a_rad)\n", "\n", "# Finally we generate the plot and customize its appearance\n", "fig = figure(title='Tension in the cable', x_axis_label = 'Angle ⍺ (°)', y_axis_label = 'Tension T (N)', x_range=(a_deg[0],0), width=500, height=400, toolbar_location=None)\n", "fig.title.align = \"center\"\n", "fig.grid.grid_line_color = 'darkgray'\n", "fig.ygrid.minor_grid_line_color = 'lightgray'\n", "fig.xaxis.ticker.desired_num_ticks = int(round(a_deg[0]/a_step))\n", "fig.yaxis.ticker.desired_num_ticks = int(round(t[-1]/t_step))\n", "fig.line(a_deg, t, color=\"red\", line_width=2)\n", "show(fig)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Question \n", "For which angle does the tension reach 500 Newtons, approximately? And 1000 Newtons?" ] }, { "cell_type": "raw", "metadata": {}, "source": [ "Note your answer here." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "*You can check your answers with the solution available [in this file](solution/LearningPhysicsWithANotebook-solution.ipynb).*" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To go further, you could transform your code above into a function, which would take `T` as an input parameter and return the value of `T` in 'kilogram-force'.\n", "\n", "
\n", "\n", "*You can check your answers with the solution available [in this file](solution/Physics-solution.ipynb).*" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "---" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# [Optional] What happens to the tension when $\\alpha$ = 0?\n", "\n", "What happens with our piece of Python code when we say that the cable it taut completely horizontal, i.e. the angle $\\alpha$ = 0$^\\circ$, which is actually impossible in real life? \n", "\n", "Question \n", "In the cell where we have computed $T$ above, change the value of `alpha` to $0$ and re-execute the cell. \n", "What happens? " ] }, { "cell_type": "raw", "metadata": {}, "source": [ "Type your answer here." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "
\n", "\n", "*You can check your answers for this activity with the solution available [in this file](solution/Physics-solution.ipynb).*" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "---" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## What have you learned so far?\n", "\n", "**What can you say about the forces exerted on the jeans** when the counterweight changes? Which forces remain the same and which change and how?" ] }, { "cell_type": "raw", "metadata": {}, "source": [ "Note your answer here." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from IPython.display import IFrame\n", "IFrame('https://moodle.epfl.ch/mod/hvp/embed.php?id=1028285', 800, 600)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Think back to the suspended jeans question and **compare your previous answer to what you observe in the virtual lab:** which counterweight would allow to suspend the wet jeans (3kg) on the cable in the desired position?" ] }, { "cell_type": "raw", "metadata": {}, "source": [ "Note your answer here." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "---" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# What have you learned so far?\n", "\n", "Write **2 things you have learned** about the **tension force** in a cable that is used to suspend an object:" ] }, { "cell_type": "raw", "metadata": {}, "source": [ "- \n", "- " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Can you identify **other real-life situations** in which cables are used to suspend objects or in which cables are taut between poles? \n", "Write 2 ideas:" ] }, { "cell_type": "raw", "metadata": {}, "source": [ "- \n", "- " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Once you are finished with the above questions, **check-in with the instructor**." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "---" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Is it possible to pull the cable taut completely horizontally?\n", "\n", "In this section we demonstrate the physical and mathematical reasoning to answer this question.\n", "\n", "### Goal\n", "\n", "For the cable to be taut completely horizontally means that the angle $\\alpha$ that the cable makes with the horizon is 0$^\\circ$. \n", "In other words, the question could be reframed as: which mass $m_{cw}$ should we put as a counterweight to get $\\alpha$ = 0$^\\circ$?\n", "If we can find a 'reasonable' value for the counterweight then it will mean that it is possible to pull the cable taut completely horizontally.\n", "\n", "To answer this question, we therefore look for an expression relating the **mass of the counterweight $m_{cw}$** and the **angle $\\alpha$** that the cable makes with the horizon.\n", "\n", "\n", "### Method\n", "\n", "Given that the system is in static equilibrium, the sum of external forces exerted on the system will be zero, so using Newton's second law should be easy. The force that the counterweight exerts on the system will involve the mass of the counterweight so we should be able to rewrite Newton's second law to get an expression of the form $m_{cw} = ...$.\n", "\n", "### Hypotheses and simplifications\n", "\n", "We make the following assumptions and simplifications:\n", "* the jeans are considered as positioned exactly mid-way between the poles so the tension is equal on both sides of the cable\n", "* we represent the jeans by the point at which they are suspended\n", "* the cable is considered as rigid (not bended), with a negligible mass\n", "* the pulley is considered as perfect, without mass nor friction\n", "* we consider the static equilibrium obtained after changing the weight, once the system is stabilized\n", "\n", "### Resolution\n", "\n", "First, let's draw a diagram and represent the different forces involved.\n", "\n", "\n", "The *forces applied on the jeans* are:\n", "* the weight: $\\vec F_j = m_j \\vec g$ \n", "* the force exerted by the cable on each side of the jeans: assuming the jeans are suspended at the exact center of the cable, then the tension applied on each of the two sides is equally distributed with two tensions of equal magnitude $T$ on each side but with opposite directions on the $x$ axis, which combine into a vertical resulting tension $\\vec T_r$\n", "\n", "From Newton's second law in a static equilibrium we can write: $\\sum \\vec F_j = \\vec 0$ \n", "With the forces on the jeans we get: $\\vec F_j + \\vec T_r = 0$ \n", "\n", "If we project on $x$ and $y$ axes, we get: \n", "$\\left\\{\\begin{matrix} F_{jx} + T_{rx} = 0 \\\\ F_{jy} + T_{ry} = 0\\end{matrix}\\right. $\n", "\n", "Since $\\vec T_r$ is the result of two tensions of same magnitude $T$ on both sides of the jeans but of opposite directions on the $x$ axis, we can decompose $T_{rx}$ and $T_{ry}$ into the $x$ and $y$ components of $T$: \n", "$\\left\\{\\begin{matrix} T_{rx} = T_{x} - T_{x} \\\\ T_{ry} = 2.T_{y} \\end{matrix}\\right. $\n", "\n", "\n", "Now we can use this in our previous equations, which gives: \n", "$\\left\\{\\begin{matrix} F_{jx} + T_{x} - T_{x} = 0 \\\\ F_{jy} + 2.T_{y} = 0\\end{matrix}\\right. $\n", "\n", "\n", "Since the two $T_{x}$ cancel out we cannot know their value yet and so we focus on the second equation: \n", "$\\begin{align} F_{jy} + 2.T_y = 0 \\end{align}$\n", "\n", "The component of the weight on the y axis is $F_{jy} = - m_j.g$, which gives us: \n", "$\\begin{align} - m_j.g + 2.T_y = 0 \\end{align}$\n", "\n", "Using the angle $\\alpha$ we can get the tension $T_y$ expressed as a function of T since $sin(\\alpha) = \\frac{T_y}{T}$, therefore $T_y = T.sin(\\alpha)$\n", "\n", "By replacing $T_y$ by this expression in the above equation we get: \n", "$\\begin{align} - m_j.g + 2.T.sin(\\alpha) = 0 \\end{align}$\n", "\n", "From there we can get $T$, and this is equation number $(1)$: \n", "\n", "$\n", "\\begin{align}\n", "T = \\frac{m_j.g}{2.sin(\\alpha)}\n", "\\end{align}\n", "$\n", "\n", " \n", "\n", "We now want to make the mass of the counterweight appear in this expression. \n", "So we will now look at the forces applied on the *counterweight*.\n", "\n", " \n", "\n", "The forces applied on the *counterweight* are:\n", "* the weight: $\\vec F_{cw} = m_{cw} \\vec g$ \n", "* the force exerted by the cable: a simple pulley simply changes the direction of the tension so the tension applied on the counterweight is therefore of the same magnitude $T$ as before but with a different direction - we will note it $\\vec T$\n", "\n", "From Newton's second law in a static equilibrium we can write: $\\sum \\vec F_{cw} = \\vec 0$ \n", "With the forces involved in our problem : $\\vec F_{cw} + \\vec T = \\vec 0$ \n", "\n", "All forces being vertical, there is no need to project on $x$ so we get: $- F_{cw} + T = 0$ \n", "We replace the weight by its detailed expression: $-m_{cw}.g + T = 0$ \n", "Now we can express $T$ as a function of the other parameters, which is equation number $(2)$: $T = m_{cw}.g$ \n", "\n", " \n", "\n", "Let's now summarize what we have so far with equations $(1)$ and $(2)$: \n", "\n", "$\n", "\\begin{align}\n", "\\left\\{\\begin{matrix}T = \\frac{m_j.g}{2.sin(\\alpha)} \\\\ T = m_{cw}.g\\end{matrix}\\right. \n", "\\end{align}\n", "$\n", "\n", "These two equations combined give us:\n", "\n", "$\n", "\\begin{align}\n", "\\frac{m_j.g}{2.sin(\\alpha)} = m_{cw}.g\n", "\\end{align}\n", "$\n", "\n", "This allow us to find the mass of the counterweight as a function of the *mass of the jeans* and of the *angle that the cable makes with the horizon*: \n", "\n", "
\n", "\n", "$$m_{cw} = \\frac{m_j}{2.sin(\\alpha)}$$\n", "\n", "
" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Conclusion\n", "\n", "When the cable approaches the horizon, $\\alpha$ is really small i.e. really close to zero. \n", "This means that $sin(\\alpha)$ is also close to zero, which means in turn that $m_{cw}$ is very big.\n", "Therefore, **the more we want the cable to be close to the horizon, the bigger $m_{cw}$ we will need!**\n", "\n", "Mathematically speaking, the limit of the expression defining the mass of the counterweight when alpha tends to 0 is:\n", "\n", "$\n", "\\begin{align}\n", "\\lim_{\\alpha\\to0}m_{cw} = \\lim_{\\alpha\\to0}\\frac{m_j}{2.sin(\\alpha)} = +\\infty\n", "\\end{align}\n", "$\n", "\n", "So basically, we would need to put an **infinitely heavy counterweight** to make the angle null and that is why it is impossible to get the cable taut so that it is absolutely straight (the cable would break before that! :-p)...\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " \n", "\n", "### Numerical application\n", "\n", "We have already defined above the constant `jeans_mass` which represents the mass of our jeans (3 kg).\n", "\n", "Let's define a Python function that represents the above equation. \n", "The function takes one input parameters, `alpha`, the angle that the cable makes with the horizon. \n", "It returns the mass of the counterweight as computed with the equation above." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Define the function\n", "def counterweight_mass(alpha):\n", " return jeans_mass / (2 * np.sin(alpha))\n", "\n", "# Display the function\n", "counterweight_mass??" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For an angle of $1.5^\\circ = \\frac{\\pi}{120}$, we need to put a counterweight of:" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Choose a value for angle alpha\n", "alpha = np.pi / 120\n", "\n", "# Computes the mass of the counterweight using our function\n", "mcw = counterweight_mass(alpha)\n", "\n", "# And print the result\n", "print('{:.02f} kg'.format(mcw))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You can check that you get a similar result with the virtual lab above.\n", "\n", "You can also check what happens when you put `alpha = 0`...\n", "\n", " " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## What are the consequences?\n", "\n", "As you can see, **the tension increases very very fast when the cable approaches the horizon**: what the graph shows is that the value of the tension **tends towards $+\\infty$** when the angle $\\alpha$ approaches 0. \n", "**This is what makes it impossible to pull the cable taut completely horizontally.**\n", "\n", "It is important to know that high tension in a cable is very dangerous and can lead to serious accidents, especially when the cable is not well adapted for its intended use (i.e. not strong enough) or when the cable is progressively deteriorating with use. \n", "\n", "Question 3 \n", "Execute the cell below to see the video and watch the first minute (sound is not necessary). \n", "What happens at time 0:53? Why?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from IPython.display import YouTubeVideo\n", "YouTubeVideo('KIbd5zBek5s', 600, 337, start=45, mute=1)" ] }, { "cell_type": "raw", "metadata": {}, "source": [ "Note your answer here." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "
\n", "\n", "*You can check your answers with the solution available [in this file](solution/LearningPhysicsWithANotebook-solution.ipynb).*\n", "\n", "---" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "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.6.9" }, "toc-autonumbering": false }, "nbformat": 4, "nbformat_minor": 4 }