diff --git a/Physics-demo.ipynb b/Physics-demo.ipynb index 04a5414..9178567 100644 --- a/Physics-demo.ipynb +++ b/Physics-demo.ipynb @@ -1,306 +1,103 @@ { "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "
\n", - " Jupyter Notebooks for Teaching and Learning - Journée au vert HEI, February 10, 2020
\n", + " Jupyter Notebooks for Teaching and Learning - Journée du digital HEI, February 10, 2020
\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": [ "# Demonstration with the virtual lab\n", "\n", "The \"Suspended object\" virtual lab below allows to **experiment with different counterweights** to see how it affects the position of the jeans suspended on the cable. \n", "\n", - "Step 1: Ask the clicker question" + "Step 1 \\[Predict\\]: Ask students to predict which counterweight allows to suspend the wet jeans (clicker question)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ - "Step 2: Execute the code cell below (click on it then click on the \"play\" button in the tool bar above) to **launch the virtual lab**. \n", + "Step 2 \\[Observe\\]: Execute the code cell below (click on it then click on the \"play\" button in the tool bar above) to **launch the virtual lab**. \n", "\n", "Ask participants **which value(s) for the counterweight they would be interested to try out** (based on their answer to the clicker question). \n", - "Then test the values suggested by participants and ask them to **observe** the position of the cable.\n", - "\n", - "" + "Then test the values suggested by participants and ask them to **observe**: \n", + "* the position of the cable \n", + "* the angle that the cable makes with the horizon \n", + "* the **forces** that apply on the object (and how they evolve)\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from lib.suspendedobjects import *\n", "SuspendedObjectsLab(demo_mode = True);" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "*If you wonder how the virtual lab works, you can have a look at the code in [this python file](lib/suspendedobjects.py).*\n", "\n", "
\n", "\n", - "Step 3: explain\n", - "\n", - "Ask participants to observe the forces applied on the object.\n", - "1. Select a counterweight of 6 kg.\n", - "2. Select a counterweight of 12kg\n", - "\n", - "\n", - "Step 4: Ask the clicker question again and then the second clicker question for checking understanding.\n", - "\n", - "
\n", - "\n", - "---" - ] - }, - { - "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", - "Using the fact that $\\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} 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", + "Step 3 \\[Explain\\]:\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", + "Highlight: \n", + "* how vectors sum graphically\n", + "* how forces compensate for static equilibrium \n", + "* how the angle influences the vertical and horizontal components of the two tensions\n", "\n", - "
\n", + "Use two specific values to illustrate the differences:\n", + "1. With a counterweight of 6 kg.\n", + "2. With a counterweight of 12kg\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", + "Step 4 \\[Check\\]: Ask the suspended jeans question again and then the second clicker question for checking understanding (clicker questions).\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", "\n", - "You can also check what happens when you put `alpha = 0`...\n", + "# Resources\n", "\n", - " " + "This demonstration implements partly the **Predict-Observe-Explain** pattern: \n", + "White, R. T., & Gunstone, R. F. (1992). Probing Understanding. Great Britain: Falmer Press. \n", + "https://arbs.nzcer.org.nz/predict-observe-explain-poe\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" } }, "nbformat": 4, "nbformat_minor": 4 } diff --git a/Physics-exercise.ipynb b/Physics-exercise.ipynb index 0591874..415d961 100644 --- a/Physics-exercise.ipynb +++ b/Physics-exercise.ipynb @@ -1,704 +1,704 @@ { "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "
\n", - " Jupyter Notebooks for Teaching and Learning - Journée au vert HEI, February 10, 2020
\n", + " Jupyter Notebooks for Teaching and Learning - Journée du digital HEI, February 10, 2020
\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": [ "# Activity 1: Experimenting with the virtual lab\n", "\n", "The \"Suspended object\" virtual lab below allows you to **experiment with different counterweights** to see how it affects the position of the jeans suspended on the cable. \n", "Before starting, it is useful to think about **which value(s) for the counterweight you would be interested to try out** (based on your answer to the clicker question):" ] }, { "cell_type": "raw", "metadata": {}, "source": [ "Note your answer here." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now is time to experiment! **Execute the code cell below** (click on it then click on the \"play\" button in the tool bar above) to launch the virtual lab. \n", "Then **answer the 4 questions in the quiz below the virtual lab**, which are designed to help you observe what happens at specific moments.\n", "\n", "" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from lib.suspendedobjects import *\n", "SuspendedObjectsLab();" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "*If you wonder how the virtual lab works, you can have a look at the code in [this python file](lib/suspendedobjects.py).*\n", "\n", "\n", "## What have you learned so far?\n", "\n", "**Summarize for yourself** one thing that you have understood from experimenting with the virtual lab above." ] }, { "cell_type": "raw", "metadata": {}, "source": [ "Note your answer here." ] }, { "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": { "toc-hr-collapsed": false }, "source": [ "---\n", "\n", "# Activity 2: Looking more closely at the tension in the cable\n", "\n", "The goal of this activity is to **analyze more in depth what happens to the cable** in the jeans problem and try to understand **why it is impossible to pull the cable taut completely horizontally** as observed with the virtual lab above.
\n", "In the mini-lecture, we have seen that, in this situation, the value of the tension in the cable (represented by the plain red arrows in the virtual lab above) is defined by:\n", "\n", "$\n", "\\begin{align}\n", "\\lvert\\vec{T}\\rvert = \\frac{\\frac{1}{2}.m.g}{sin(\\alpha)}\n", "\\end{align}\n", "$, where $m$ is the mass of the suspended object, $\\alpha$ the angle that the cable makes with the horizon and $g$ the gravity of earth.\n", "\n", "In the following we are going to use Python to **compute the tension in the cable** for **different values of the angle $\\alpha$**." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Defining the constants of our physics problem\n", "\n", "In the above equation we have two constants:\n", "- $g$ the gravity of earth, which is 9.81 m/s²\n", "- $m$ the mass of the suspended object, which is 3 kg in the case of the jeans\n", "\n", "**Execute the code cell below** so that these two constants get defined in Python." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Let's define the value of gravity\n", "gravity = 9.81\n", "\n", "# And the mass of the jeans\n", "jeans_mass = 3\n", "\n", "# Display the value of the constants to check they are well defined\n", "print(\"gravity:\", gravity, \", jeans_mass:\", jeans_mass)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Creating a function to compute the tension in the cable\n", "\n", "Now let's define a Python function that represents the equation of the tension and in which we are going to vary $\\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 tension in the cable as computed with the equation: \n", "$\n", "\\begin{align}\n", "\\lvert\\vec{T}\\rvert = \\frac{\\frac{1}{2}.m.g}{sin(\\alpha)}\n", "\\end{align}\n", "$\n", "\n", "**Execute the code cell below** so that this function gets defined in Python." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Let's define the function\n", "def tension_norm(alpha):\n", " return (.5 * jeans_mass * gravity) / np.sin(alpha)\n", "\n", "# And display it to check it is well defined\n", "tension_norm??" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Computing tension in the cable using our function\n", "\n", "Now let's use this Python function to compute the norm of the tension in the cable for an angle of 1.5$^\\circ = \\frac{\\pi}{120}$.\n", "\n", "**Execute the code cell below** to see the result, expressed in Newtons." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# First choose an angle alpha\n", "alpha = np.pi/120\n", "\n", "# Then compute the tension using our equation\n", "T = tension_norm(alpha)\n", "\n", "# And print the result with a pretty format\n", "display(Math(r'$\\lvert\\vec{T}\\rvert = $'+' {:8.0f} $N $'.format(T)))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To get an idea of how big this value is, you can think about our jeans which weight 3 kg: the force exerted by earth gravity on the jeans is $\\lvert\\vec{F}\\rvert = $ 29 $N$ only!" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Question 1 \n", "What is the value of the tension for an angle of 0.5$^\\circ = \\frac{\\pi}{360}$? \n", "In the code cell above, change the value of `alpha` and re-execute the cell to see the result." ] }, { "cell_type": "raw", "metadata": {}, "source": [ "Type the value you obtain here:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "*You can check your answers with the solution available [in this file](solution/Physics-solution.ipynb).*\n", "\n", "## Looking at how the tension in the cable evolves with the angle $\\alpha$\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 = 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 2 \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/Physics-solution.ipynb).*\n", "\n", "## 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)" ] }, { "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/Physics-solution.ipynb).*\n", "\n", "---" ] }, { "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": [ "---\n", "\n", "# Additional exercises (optional)\n", "\n", "## Expressing the tension in 'kilogram-force'\n", "To have a better intuition about how big the tension is, people like to express it in kilograms. The idea is to make a parallel with the force exerted by gravity i.e. the weight, $\\vec{F} = m.\\vec{g}$, and to compute which mass $m$ would create an equivalent force. \n", "To get the value in 'kilogram-force' of a tension, you divide its value in Newtons by the value of gravity: \n", "\n", "$\n", "\\begin{align}\n", "T' = \\frac{T}{g}\n", "\\end{align}\n", "$" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Question 1 \n", "Complete the code in the cell below to compute the value in 'kilogram-force' of the tension we have computed above. Then execute the cell to see the result." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# TODO: replace the \"0\" in the line below with the expression of the equation above\n", "T_prime = 0\n", "\n", "# pretty printing of the result\n", "display(Math(r'$\\lvert\\vec{T}\\rvert = $'+' {:8.0f} kg$_F$'.format(T_prime)))" ] }, { "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": [ "## 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 2 \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).*\n", "\n", "---" ] }, { "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", "Using the fact that $\\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} 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", " " ] } ], "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" } }, "nbformat": 4, "nbformat_minor": 4 }