rallain https://scienceblogs.com/author/rallain/feed en Wired Science Blogs https://scienceblogs.com/dotphysics/2010/09/14/wired-science-blogs <span>Wired Science Blogs</span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"><p>Maybe you have already seen an announcement, or maybe this is the first time you heard that <a href="http://wired.com">wired.com</a> is starting a <a href="http://www.wired.com/wiredscience/2010/09/new-wired-science-blogs-network/">new science blogs section</a>. Oh yeah, and they invited me to join. So, I did.</p> <p>This brings a couple of important notes.</p> <p>First, this will obviously be my last post at <a href="http://scienceblogs.com">scienceblogs.com</a>. You might want to change your blogroll and rss reader to the new address:</p> <p><a href="http://www.wired.com/wiredscience/dotphysics">http://www.wired.com/wiredscience/dotphysics</a></p> <p>And RSS feed at <a href="http://www.wired.com/wiredscience/category/dot-physics/feed">http://www.wired.com/wiredscience/category/dot-physics/feed</a></p> <p>Note that other than the address and different banner, everything will pretty much be the same.</p> <p>Second, I would really like to thank <a href="http://scienceblogs.com">ScienceBlogs</a> for the opportunity to be a part of such a nice group of bloggers. Really, I have learned a lot. Also, I want to be clear that I have no problems with <a href="http://scienceblogs.com">ScienceBlogs</a>. Why move then? I think that being at <a href="http://wired.com">wired.com</a> will give me different opportunities. One of my goals as a blogger is to bring the cool stuff in physics to lots of people. ScienceBlogs is great, but it seems like it is aimed more towards a science audience than wired.com.</p> <p>Anyway, I am pumped up about the move. Hopefully, I will see you over there. I assume there will be some sort of official announcement at <a href="http://wired.com/wiredscience">wired.com/wiredscience</a>.</p> </div> <span><a title="View user profile." href="/author/rallain">rallain</a></span> <span>Tue, 09/14/2010 - 08:03</span> Tue, 14 Sep 2010 12:03:29 +0000 rallain 108212 at https://scienceblogs.com What the heck is this? (4) https://scienceblogs.com/dotphysics/2010/09/10/what-the-heck-is-this-4 <span>What the heck is this? (4)</span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"><p>Here is the next item.</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-c456953c7af61f93999a62663b0199c5-2010-09-07_untitled_4.jpg" alt="i-c456953c7af61f93999a62663b0199c5-2010-09-07_untitled_4.jpg" /></p> <p>There is a threaded plug on the top. I took it off so you could see inside. The whole thing is pretty heavy.</p> <p>Good luck, and let's be careful out there.</p> </div> <span><a title="View user profile." href="/author/rallain">rallain</a></span> <span>Fri, 09/10/2010 - 02:16</span> Fri, 10 Sep 2010 06:16:53 +0000 rallain 108211 at https://scienceblogs.com Watermelon Collisions - ouch https://scienceblogs.com/dotphysics/2010/09/09/watermelon-collisions-ouch <span>Watermelon Collisions - ouch</span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"><p>Through random surfing, I found this clip from The Amazing Race (which is apparently some type of reality show). Don't really know the set up except that it appears some girl is trying to launch watermelons with a slingshot. This looks bad, but she seems to not be seriously injured.</p> <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/emLIgpdbSHw?fs=1&amp;hl=en_US" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed src="http://www.youtube.com/v/emLIgpdbSHw?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object><p>Watermelon smashed on face. Wow. What can I we calculate here? Bring in the video analysis.</p> <h3>How fast was the watermelon going?</h3> <p>First, this is not a very good quality video. The frame rate sucks and there is a very slight panning and zooming (which I will ignore) Second, I really don't have anything to scale the video so I just assumed the girl-launcher was about 1.5 meters tall. Just a guess. <a href="http://www.cabrillo.edu/~dbrown/tracker/">Using Tracker Video analysis</a>, I get the following data (where the x-direction is along the direction of motion of the melon):</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-090c80725805a3e03616b4a2388fc93b-2010-09-09_data_tool.jpg" alt="i-090c80725805a3e03616b4a2388fc93b-2010-09-09_data_tool.jpg" /></p> <p>This shows the motion of the melon both while being launched and when coming back. The first thing I did was to fit a parabola to the very beginning motion. This will give me the initial acceleration with a value of about 120 m/s<sup>2</sup>. Zowza.</p> <p>I can also get an estimate for the initial and final velocity by fitting a linear function to the data. Note - the melon is actually accelerating (due to the gravitational force) but it is moving so fast, I can ignore this. Doing so, I get a launch speed of about 15 m/s and a returning speed of also about 15 m/s (this is good). First, if the melon gets stuck in the launcher then it should have the same return speed that it had launching (energy conservation). Also, 15 m/s seems like a reasonable speed (around 33 mph).</p> <h3>What about the impact?</h3> <p>This is a little bit more complicated. First, there is the initial impact and then there is the recoil of the head. Here is a plot of the head as a function of time (mostly in the direction of recoil)</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-3d59a00838e637a3fd84ee414eb7be3d-2010-09-09_data_tool_1.jpg" alt="i-3d59a00838e637a3fd84ee414eb7be3d-2010-09-09_data_tool_1.jpg" /></p> <p>I guess the first thing to do would be to estimate the acceleration of the head. This is where you would get an injury, if the acceleration was too high. Really, there is only a couple of frames with the head getting hit. I don't think I can get that from video. But I can get it, oh yes, I can. All I need from the video is the recoil distance. Let me say that the head recoils a distance of 0.2 meters. The other thing I need to know is the final speed of the melon. No clue here. Let me just say that it is going half as fast as it was when it hit (the pieces of the melon are still moving after the collision).</p> <p>Here is a diagram of the melon at the beginning and at the end of the collision:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-298dda2faa8d8821bc8e53b53086ffa6-2010-09-09_untitled_8.jpg" alt="i-298dda2faa8d8821bc8e53b53086ffa6-2010-09-09_untitled_8.jpg" /></p> <p>Since everything is in the same direction, I can use the scalar-kinematic equation:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-acec13b6e51e9e377ced701a05a068bb-2010-09-09_la_te_xi_t_1_22.jpg" alt="i-acec13b6e51e9e377ced701a05a068bb-2010-09-09_la_te_xi_t_1_22.jpg" /></p> <p>Using an initial and final velocity of 15 m/s and 7.5 m/s as well as a distance of 0.2 meters, I get an acceleration of 422 m/s<sup>2</sup> (oh, this is the average acceleration). This is about 43 g's. Clearly enough to smash the melon. What about the head? Does that mean the head had the same acceleration? No. First, it has a different mass. Second, it is connected to the rest of the body so that there are other forces on it.</p> <p>Perhaps with a better quality video, I could get a little more detail.</p> </div> <span><a title="View user profile." href="/author/rallain">rallain</a></span> <span>Thu, 09/09/2010 - 09:37</span> Thu, 09 Sep 2010 13:37:39 +0000 rallain 108210 at https://scienceblogs.com Happy g day https://scienceblogs.com/dotphysics/2010/09/08/happy-g-day <span>Happy g day</span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"><p>Actually, it should be called Happy "Magnitude of the local Earth gravitational field" day. You know, 9.8 N/kg on September 8 (9/8). Get it? Well, the idea was for the <a href="http://www.selu.edu/chem">physics students and faculty</a> to build some stuff to do outside - projectile motion type stuff. Well, we had the idea a while ago and then kind of forgot about it.</p> <p>In order to just get something done, I set up the "shoot the falling target" demo. (previously known as shoot the monkey). Here is a quick video demo (seriously - first take too).</p> <object width="500" height="306"><param name="movie" value="http://www.youtube.com/v/28SegKEokq4?fs=1&amp;hl=en_US" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed src="http://www.youtube.com/v/28SegKEokq4?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="306"></embed></object><p>What is going on here and what does this have to do with g? Well, it doesn't really have anything to do with g, but it is a cool demo (meaning this demo would still work on the moon). The basic idea is that you aim a projectile launcher straight at a hanging target. When the ball is launched, the target drops and the ball collides with the target in mid-air.</p> <p>Why does this work? Let me start with a diagram.</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-e7e2e6afa6eecc93571b0eeee5c797ba-2010-09-08_untitled_5.jpg" alt="i-e7e2e6afa6eecc93571b0eeee5c797ba-2010-09-08_untitled_5.jpg" /></p> <p>I guess it is clear, but the vector v<sub>0</sub> is the initial velocity of the ball aimed at an angle θ at a target that is a distance s horizontally away and a height h above the launcher. But why do they hit? Let me start with the ball. (<a href="http://scienceblogs.com/dotphysics/2008/09/basics-projectile-motion.php">here is a quick projectile motion review</a>) The ball's motion can be broken into an x-direction motion and a y-direction motion with the following initial velocities:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-6dbaa65c405621d05031ebc34dff2af0-2010-09-08_la_te_xi_t_1_3.jpg" alt="i-6dbaa65c405621d05031ebc34dff2af0-2010-09-08_la_te_xi_t_1_3.jpg" /></p> <p>Two quick notes: I am using v<sub>0</sub> to represent the magnitude of the initial launch speed. Also, the x-velocity does not change (no forces in the x-direction) so that I can just call it v<sub>x</sub> instead of v<sub>x0</sub> (of course, the y-velocity does change). Using those velocities, I can get position-time functions for both directions.</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-dbcb64552f618e3b90d8304208d14210-2010-09-08_la_te_xi_t_1_6.jpg" alt="i-dbcb64552f618e3b90d8304208d14210-2010-09-08_la_te_xi_t_1_6.jpg" /></p> <p>There is the "g"! Also, I am assuming the ball launches at time t= 0 seconds from a position x<sub>0</sub> and y<sub>0</sub>. Now, what about the target? The target also starts falling at t = 0 seconds, but its initial position is (x<sub>0</sub> + s,y<sub>0</sub> + h) as seen in the diagram. There is no x-direction motion for the target, so I can just write:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-242d3878678b435d39f4731c5d5dc2e8-2010-09-08_la_te_xi_t_1_7.jpg" alt="i-242d3878678b435d39f4731c5d5dc2e8-2010-09-08_la_te_xi_t_1_7.jpg" /></p> <p>I am calling y<sub>m</sub> is the y position of the target as a function of time. The target's initial velocity is zero. First question: what time will the ball be at the x-coordinate of the target? Going back to the function for the x-position of the ball,</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-37daccf085e6c2c6383af674f311ba1e-2010-09-08_la_te_xi_t_1_8.jpg" alt="i-37daccf085e6c2c6383af674f311ba1e-2010-09-08_la_te_xi_t_1_8.jpg" /></p> <p>And what will be the vertical position of the ball at this same time?</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-624615bbbddc89b5585e38db166df5b8-2010-09-08_la_te_xi_t_1_9.jpg" alt="i-624615bbbddc89b5585e38db166df5b8-2010-09-08_la_te_xi_t_1_9.jpg" /></p> <p>What about the target? Where will the target be at this same time?</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-37a59f534c9d6fb7fc6879706d6a5b7a-2010-09-08_la_te_xi_t_1_10.jpg" alt="i-37a59f534c9d6fb7fc6879706d6a5b7a-2010-09-08_la_te_xi_t_1_10.jpg" /></p> <p>Notice that the only difference between the y position of the target and the ball is that the ball has a "s tan(θ)" where the target just has an h term. Oh but wait. Look back at the original diagram and you will see that:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-6302a9764005fc8279e20f82255efb67-2010-09-08_la_te_xi_t_1_11.jpg" alt="i-6302a9764005fc8279e20f82255efb67-2010-09-08_la_te_xi_t_1_11.jpg" /></p> <p>What does this mean? This means that at the time when the ball reaches the x-position of the target <strong>the ball and the target have the same y-position</strong>. If two things are at the same place at the same time, they hit. Boom.</p> <p>Notice one cool thing - the value of the magnitude of the initial velocity does not matter (unless the ball hits the floor before it gets to the target). The only important thing is that the ball is aimed at the target. This means that θ for the velocity vector is the same θ for the geometrical set up of the target.</p> <p>Wait! There is more! How about a nice python-generated graph? This is pretty simple to set up really. In python, I will model the shot ball and the falling target.</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-c9de396761bdea3c2f8641bae3ae7b32-2010-09-08_untitled_6.jpg" alt="i-c9de396761bdea3c2f8641bae3ae7b32-2010-09-08_untitled_6.jpg" /></p> <p>That is with a launch speed of 6.5 m/s. What if I increase the speed to 8 m/s?</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-7bd9ec7033af9b4e4b2da79e48e8be6e-2010-09-08_shootmonke_2png.jpg" alt="i-7bd9ec7033af9b4e4b2da79e48e8be6e-2010-09-08_shootmonke_2png.jpg" /></p> <p>You can't really see that the two paths cross at the same time. Let me draw fewer points.</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-42e5f5092769b3ac660f7c72457866bc-2010-09-08_untitled_7.jpg" alt="i-42e5f5092769b3ac660f7c72457866bc-2010-09-08_untitled_7.jpg" /></p> <p>There, that is with a time step of 0.1 seconds. The points are numbered and you can see that the two points labeled 4 are right next to each other.</p> <p>That is it for g-day. I will have bigger plans for next year.</p> </div> <span><a title="View user profile." href="/author/rallain">rallain</a></span> <span>Wed, 09/08/2010 - 06:36</span> Wed, 08 Sep 2010 10:36:29 +0000 rallain 108209 at https://scienceblogs.com What the heck is this answer 3 https://scienceblogs.com/dotphysics/2010/09/07/what-the-heck-is-this-answer-3 <span>What the heck is this answer 3</span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"><p>Congratulations Fran. Not only did she answer the "What the heck is this?" correctly, she was the first commenter.</p> <p>Here is the original item:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-7b17a3fe03332f4accc11f1d746edcd6-2010-09-07_untitled_2.jpg" alt="i-7b17a3fe03332f4accc11f1d746edcd6-2010-09-07_untitled_2.jpg" /></p> <p>It is of course a gas discharge tube. You put these tubes in there (as shown above) with helium or neon or whatever in there and it excites the gas to give off light.</p> <p>Honestly, we have like 10 of these things laying around. Some of them are newer and say "Danger 5000 volts"), but these older ones say nothing. Here is an example of one of the first ones I saw.</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-dca4b15173280af2bb620f923cc461e1-2010-09-07_picasa_3_5.jpg" alt="i-dca4b15173280af2bb620f923cc461e1-2010-09-07_picasa_3_5.jpg" /></p> <p>I didn't figure out what it was for a while because most of the ones we have don't have those metal clips that hold the tube - just two posts sticking up.</p> <p>This seems like a super dangerous design. For comparison, here are two other models (that we actually use).</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-d5279d26ae785270dfd1209589c1aaa2-2010-09-07_untitled_3.jpg" alt="i-d5279d26ae785270dfd1209589c1aaa2-2010-09-07_untitled_3.jpg" /></p> <p>The one on the left is the older one (isn't it obvious). You could stick your fingers in the two white tube holders and shock yourself, but you would have to try. The newer one is pretty much safe for toddlers. The only dangerous part of the newer one is that you could drop it on your foot. Of course you can't even change the bulb.</p> </div> <span><a title="View user profile." href="/author/rallain">rallain</a></span> <span>Tue, 09/07/2010 - 04:37</span> Tue, 07 Sep 2010 08:37:47 +0000 rallain 108208 at https://scienceblogs.com The Curving Soccer Ball https://scienceblogs.com/dotphysics/2010/09/07/the-curving-soccer-ball <span>The Curving Soccer Ball</span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"><p>You can call it football if it makes you happy. Anyway, this is a popular story going around. The physics of the magic curving soccer kick. Here are two ends of the spectrum.</p> <p>First, there is the lower, easier to consume version from <a href="io9.com">io9.com</a></p> <blockquote><p><a href="http://io9.com/5628135/physics-forced-to-come-up-with-whole-new-equation-to-explain-impossible-soccer-kick">Physics forced to come up with whole new equation to explain "impossible" soccer kick</a></p></blockquote> <p>I will summarize this article for you:</p> <blockquote><p><em>"Have you seen these crazy soccer kicks where the ball curves? It happens because the ball spins and physics. Here is a video"</em></p></blockquote> <p>Oh, and they have a diagram - which doesn't seem to come from the original paper and they also have some nifty real-life soccer videos. I think this story is a little too light on the details. They could have done just a little bit more to make this a much better article. Essentially they said that the ball curves because of magic (but magic is physics).</p> <p>Then, there is the original article on the motion of spinning objects (which talks about soccer at the end) from the <a href="http://iopscience.iop.org/1367-2630">New Journal of Physics - IOP</a>:</p> <blockquote><p><a href="http://iopscience.iop.org/1367-2630/12/9/093004/fulltext#nj349541s4">The spinning ball spiral - Guillaume Dupeux, Anne Le Goff, David Quéré and Christophe Clanet</a></p></blockquote> <p>Let me select one tiny part of the paper to show you: (they used pictures for some of the variables, so some of this might not appear exactly as the author intended - but you will get the idea):</p> <blockquote><p>"The motion of the sphere of mass M is described in the Serret-Frenet coordinate system introduced in figure 2. We first focus on the direction . The Reynolds number Re = ÏU0 R/η is of the order of 104, which implies a drag F1/2ÏU2ÏR2·CD, with CD0.4 [28]. The equation of motion along thus is written as"</p></blockquote> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-d6cd48f34558d335759edd1b4396d378-2010-09-05_the_spinning_ball_spiral.jpg" alt="i-d6cd48f34558d335759edd1b4396d378-2010-09-05_the_spinning_ball_spiral.jpg" /></p> <p>They lost me at "Serret-Frenet" coordinate system. So, this doesn't appear to be consumable for the more general audiences.</p> <p><strong>Update:</strong> While looking for some soccer ball data, I found a third article. The first was too cold, the second was too hot, but this one was just right for Goldilocks. This is from <a href="http://physicsworld.com">physicsworld.com</a>.</p> <blockquote><p><a href="http://physicsworld.com/cws/article/print/1533">The physics of football - Takeshi Asal</a></p></blockquote> <p>Like I said, I think this last article gives a better mix of understandablity and physics.</p> <h3>The missing parts</h3> <p>I am going to try to fill in the middle between the <a href="io9.com">io9.com</a> article and the original article. I might fail, but I am going to try. (even though the third article did a pretty good job)</p> <p>So, you kick a ball. What forces act on the ball? Well, the easy thing is to say "gravity and stuff that touches the ball". In this case, the only thing the ball touches is the air. The air does indeed exert a force on the ball. The force the air exerts on the ball is ultimately due to collisions with the air particles and the ball. If the ball is spinning and non-smooth, there can be complex interactions. For this case, I will break this air force into two components.</p> <ul><li>Air drag. If you have read this blog, you should be familiar with this model of air drag that says the force is proportional to the magnitude of the velocity squared and some other stuff (density of air, cross sectional area, and shape of the object).</li> <li>Magnus force. This is the force exerted on a moving and spinning object in a fluid or gas. <a href="http://en.wikipedia.org/wiki/Magnus_effect">Wikipedia's page on the magnus effect is pretty ok.</a></li> </ul><p><br /></p> <p>There is also the gravitational force. But, let me just look at the ball from the top view. The key point of all of this is that if there were no spin effect or air drag, the ball would just move in a nice parabola. From the top, this would look like a straight and constant speed trajectory. If you exert a force perpendicular to the direction of motion, the ball will turn. If you exert a force in the opposite direction of the motion, the ball will slow down. These two things together make the ball do what it does.</p> <p>Here is a force diagram of the ball as seen from the top (so you don't see the gravitational force):</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-d5037178b11e6cd0ccd962e355404648-2010-09-06_untitled_1.jpg" alt="i-d5037178b11e6cd0ccd962e355404648-2010-09-06_untitled_1.jpg" /></p> <p>Why does this spinning cause a sideways force? Well, the idea is that the rough surface of the ball moves air near its surface. This means that on one side of the ball, the air is moving faster than the other side. On the faster moving air side, the air is moving more in a direction parallel to the motion of the ball. This means that an air particle is less likely to collide on the side of the ball and push it that way. The result is that there is more collisions on the slower side of the ball.</p> <h3>Modeling air interaction</h3> <p>Here is the model that is commonly used for the air drag force:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-bea1ee258af300e5f464160f12108e86-2010-09-06_la_te_xi_t_1.jpg" alt="i-bea1ee258af300e5f464160f12108e86-2010-09-06_la_te_xi_t_1.jpg" /></p> <p>Where the v-hat is a unit vector in the direction of the velocity of the ball. This along with the negative sign means that the air drag force is in the opposite direction as the velocity.</p> <p>The magnus force can be written as:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-0172f4d985ea3c24213f09f8a6c665fd-2010-09-06_la_te_xi_t_1_1.jpg" alt="i-0172f4d985ea3c24213f09f8a6c665fd-2010-09-06_la_te_xi_t_1_1.jpg" /></p> <p>S is some constant for the air resistance of the ball (a basketball and a soccer ball would have different values). The vector ω is the vector representing the angular velocity of the ball. For the diagram shown above, the vector ω would be perpendicular to the plane of the computer screen and coming out of the computer screen. The mangus force is related to the cross product of ω and the velocity. (<a href="http://scienceblogs.com/dotphysics/2010/07/right_hand_rule_dont_hurt_your.php">here are some cross product tips</a>).</p> <p>Why don't you always notice these forces? If the speed is slow and the mass is large, then the air drag and magnus forces will be small compared to the gravitational force. The motion for these cases will be dominated by the gravitational interaction. But with a high speed kick from a soccer ball (that has a relatively low mass) with a high angular spin, the effects can be noticed.</p> <p>Let me model a high speed soccer ball in <a href="http://vpython.org">vpython</a>. The original research paper gives some nice parameters that I will need for a soccer ball.</p> <ul><li>Radius = 0.105 meters</li> <li>density = 74 times the density of air (if I understand the table correctly)</li> <li>S = 0.21 - I am pretty sure the S in this paper is the same S in the magnus force described above. - forget this S</li> </ul><p>After playing around (and finding that third article) I am pretty sure the S above is not the same S as in the wikipedia page. The physicsworld article gives the following useful info:</p> <ul><li>Ball speed = 25-30 m/s</li> <li>angular velocity = 8 - 10 rev/sec</li> <li>Lift force (magnus force) of about 3.5 N</li> <li>horizontal ball deviation of about 4 meters</li> <li>ball mass of 410-450 grams (which agrees with my previous density)</li> <li>ball acceleration of about 8 m/s<sup>2</sup> - not sure if this is just the linear acceleration or the total magnitude of the acceleration and at the beginning or average?</li> </ul><p>If I assume the magnus force is S times the cross product of the angular and linear velocity, I can work backwards to find S (from the physicsworld data) in the case that the velocity and angular velocity are perpendicular.</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-1df6529b0d2accbd0961fd322e5818ad-2010-09-07_la_te_xi_t_1_2.jpg" alt="i-1df6529b0d2accbd0961fd322e5818ad-2010-09-07_la_te_xi_t_1_2.jpg" /></p> <p>Now for some python (here is my sloppy code -<br /></p><div style="align: right;"><a href="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-7e839630a1ed07fb7b41815c56daebc0-magnus_force.py">magnus_force.py</a>). I will make one assumption - the angular velocity of the ball is constant (which obviously will not be true). <p>Here is what I get for the trajectory of the ball (as seen from above).</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-cd9bc4b6974afa1339bd6115498115b4-2010-09-07_figure_1.jpg" alt="i-cd9bc4b6974afa1339bd6115498115b4-2010-09-07_figure_1.jpg" /></p> <p>That is more than 4 meters deflection - but maybe they are assuming you aim to the left a little or something.</p> <p>How about a plot of the total acceleration (magnitude) as a function of time.</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-133d1b583443a99d1a0cac68820a1742-2010-09-07_figure_1_1.jpg" alt="i-133d1b583443a99d1a0cac68820a1742-2010-09-07_figure_1_1.jpg" /></p> <p>This gives an acceleration of around 8 m/s<sup>2</sup> around the end of the motion. Maybe this is what the physicsworld author meant. Oh well, that is enough for this. I know there is one problem. I assumed a constant coefficient of drag, but it seems that this might not be true.</p> </div></div> <span><a title="View user profile." href="/author/rallain">rallain</a></span> <span>Tue, 09/07/2010 - 04:11</span> Tue, 07 Sep 2010 08:11:59 +0000 rallain 108207 at https://scienceblogs.com What the HECK is that? Number 3. https://scienceblogs.com/dotphysics/2010/09/03/what-the-heck-is-that-number-3 <span>What the HECK is that? Number 3.</span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"><p>Please note the official change of the title of this game, it is no longer "what is this".</p> <p>Here is the item:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-97bb10d88123e124f9fb5fb553dedeb5-2010-09-02_picasa_3.jpg" alt="i-97bb10d88123e124f9fb5fb553dedeb5-2010-09-02_picasa_3.jpg" /></p> <p>I suspect someone will know what this is. Honestly, I didn't figure it out right away. However, I have found that the readers as a group generally are more knowledgeable than me by myself.</p> <p>Oh, I don't think there is really much description to add here. I included a meter stick for scale.</p> <p><strong>P.S.</strong> How come a device for measuring temperature is a thermometer and a device for measuring electric potential is a voltmeter? Shouldn't the meterstick be called either a length-meter or a meter-meter? If you use the Queen's English, I guess that would be metre-metre.</p> </div> <span><a title="View user profile." href="/author/rallain">rallain</a></span> <span>Fri, 09/03/2010 - 02:11</span> Fri, 03 Sep 2010 06:11:17 +0000 rallain 108206 at https://scienceblogs.com Some Python notes https://scienceblogs.com/dotphysics/2010/09/02/some-python-notes <span>Some Python notes </span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"><p>Yes, I love <a href="http://scienceblogs.com/dotphysics/python">python</a>. However, I am no expert. Most of the stuff I write in python is dirty and ugly code. Sometimes I figure out new things (things that programmers already know) and sometimes I forget these things. So, here are a few tips and tricks that I use from time to time. Really, I am writing this for future Rhett when he does a google search for "how do you save data to a file in python".</p> <h3>Saving data to a file</h3> <p>Suppose I am modeling a basketball falling through the air. I want to plot this data, so I save position and time data in lists. For example: <a href="http://www.scipy.org/Cookbook/InputOutput">Here is the info from scipy.org that covers this same stuff</a>.</p> <blockquote><p>x = [0.1, 0.2, 0.3, 0.41, 0.52]<br /><br /> t=[1, 2, 3, 4, 5]</p></blockquote> <p>In this case, there really isn't a problem. However, what if I have 1000 data points in each list and I want to use it again? If the program only takes a second to run, I will just re-create that data. Sometimes this is not feasible. What if I want to model throwing a basketball 1000 times and each time it takes about 1 second to calculate. 1000 seconds is not too long to wait, not too long unless you are impatient like me. Ok, how do you save this sucker as a file?</p> <p>Here is a super-simple sample:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-3556d4ee7a86fc9cfec0f0e5c256c5ff-2010-09-02_python_sample.jpg" alt="i-3556d4ee7a86fc9cfec0f0e5c256c5ff-2010-09-02_python_sample.jpg" /></p> <p>Of course, the key here is the "savetxt" function. If you don't import the pylab module, it might not work. I think the savetxt function is part of numpy (which is in pylab) - just load pylab to be safe. Also, the file is saved to the same folder as your python script is in. The default settings for the savetxt function makes a space delimited file - you can change that if you want a comma delimiter, just add this:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-76c92bbe9881b71cc9bb8688c19e3fa4-2010-09-02_delimiter.jpg" alt="i-76c92bbe9881b71cc9bb8688c19e3fa4-2010-09-02_delimiter.jpg" /></p> <p>One more note: Python is ruthlessly obedient. If you just spent 20 hours running a program and you save the file as temp_data.txt. Then later you run something and save it as temp_data.txt - done. It just overwrote your previous data. You can't blame python, it is just doing what you told it to do.</p> <p>What about getting the data back? Here is another sample that takes the data from the file created by the previous program and plots it.</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-3a78e9482df9ac79b9da56f0a625aa2c-2010-09-02_get_data.jpg" alt="i-3a78e9482df9ac79b9da56f0a625aa2c-2010-09-02_get_data.jpg" /></p> <p>The genfromtxt function basically is the inverse function of savetxt function. Notice that I had a list of lists for my data - I separated this into two separate lists for plotting (<em>gotta keep em separated</em>).</p> <h3>Functions</h3> <p>Everyone uses functions. But what if you want to make one yourself? It really isn't too difficult. Let me start with a sample program. Suppose I want to use the same program as above, but I want to see what happens as I change the acceleration. One simple (and ugly) way would be to just keep copying the code from above how ever many times you want to change the acceleration. Another way would be to make a function that takes an acceleration and creates the data. Then you could just call this function as many times as you like.</p> <p>Just to make this simple, suppose I want to look at the distance the object travels after 3 seconds as a function of acceleration.</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-2365b04562b642770a0a1555cdb3585d-2010-09-02_sample_function.jpg" alt="i-2365b04562b642770a0a1555cdb3585d-2010-09-02_sample_function.jpg" /></p> <p>Here, I created a function calc_dist(). It takes one parameter - the acceleration (which I labeled as ac so it wouldn't get messed up with the variable a). The function is essentially the same as the previous program - but the key is the return. At the end of the function, what do you want it to give back? For this case, I have it just returning the final distance. It is possible to return any number of things. Suppose I wanted to also return the time (even though I already know that). At the end of the function, I would just put:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-c36dd1572507dd5466aab337bbbcf000-2010-09-02_return.jpg" alt="i-c36dd1572507dd5466aab337bbbcf000-2010-09-02_return.jpg" /></p> <p>When I call this function, I could say result=calc(a), but result would be a list such that result[0] would be the position and result[1] would be the time.</p> <p>The key thing to remember is to not make variables that appear both in the function and outside the function. This is bad. This is like crossing the streams from the Ghostbusters' proton packs. Why are they called proton packs anyway?</p> <h3>Going through a list</h3> <p>I actually already used this idea above. What if I have a list of positions, and I want to print them:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-87198883a6317c4c73cbe5a1d2a4e8b0-2010-09-02_golist.jpg" alt="i-87198883a6317c4c73cbe5a1d2a4e8b0-2010-09-02_golist.jpg" /></p> <p>The old Rhett would have made a variable n = 0 and then said something like "while n &lt; 10:" and then in the loop have n = n +1. This python way is much easier. The 'len' is the length of the list and range says how high n should go. You don't have to increment n yourself, python does it for you.</p> <p>Oh, notice that I reference data[n][0]? Since data is a list of list - actually it looks like this:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-ef5c4e26d725219eb3b29a909a84a141-2010-09-02_lists.jpg" alt="i-ef5c4e26d725219eb3b29a909a84a141-2010-09-02_lists.jpg" /></p> <p>The element data[3][0] would be the 4th in the list with the first element in that 4th thing - remember python starts with 0 being the first element.</p> <h3>Histograms and Random Numbers</h3> <p>Histograms are useful - and super easy to make with MatPlotLib (which is in the pylab module). Here is a sample program:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-96f4a91f70f247127803cdfd9f5df113-2010-09-02_normalhisto.jpg" alt="i-96f4a91f70f247127803cdfd9f5df113-2010-09-02_normalhisto.jpg" /></p> <p>Here is the output from that program:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-09508e7e374b097f5b0fd45dfb55b25c-2010-09-02_figure_1.jpg" alt="i-09508e7e374b097f5b0fd45dfb55b25c-2010-09-02_figure_1.jpg" /></p> <p>This really shows two useful functions:</p> <ul><li>hist(): this is just like the plot function (and it is in pylab). Just pass the list of data to the function and it will make a histogram. Boom. That simple. If you like, you can tell it how many bins to make (in this case I said 10 - which happens to be the default). I also made the bars green (I don't know why, but blue always shows up funny on the webpage). Also, I turned on the grid. <a href="http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.hist">This is the matplotlib documentation on histograms.</a></li> <li>nomralvariate(): This function produces a random number from the normal distribution. If I just used the "random()" function, the histogram would be boring and flat. The normalvariate function is not in pylab, so you have to load the random module. The main arguments it takes are the average and the standard deviation of the distribution you want. <a href="http://docs.python.org/library/random.html">Here is a description of other functions in the random module.</a></li> </ul><p>Oh, and you are welcome future Rhett. I hope you still have at least a little bit of hair.</p> </div> <span><a title="View user profile." href="/author/rallain">rallain</a></span> <span>Thu, 09/02/2010 - 14:25</span> Thu, 02 Sep 2010 18:25:08 +0000 rallain 108205 at https://scienceblogs.com Could I build a lightning detector? https://scienceblogs.com/dotphysics/2010/09/02/could-i-build-a-lightning-dete <span>Could I build a lightning detector?</span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"><p>A while ago, we had a ton of lightning. As a bonus, it always happened in the middle of the night. I love sleeping where it sounds like I am on the front line in WWI - no, I don't. But, while lying awake waiting for the next BOOM I thought of something. Instead of just counting the time between flash and boom, maybe I could make a lightning detector.</p> <p>For mere mortals, the first step might be to google "lightning detector". I don't want to do that. What fun would that be? I did look up something. The current in a typical lightning strike is on the order of 30,000 amps. How could I detect this.</p> <p>I can think of two things. Could I detect the magnetic field from this current more than 10 miles away? Or maybe I could detect the change in magnetic flux through a loop of wire. For the second method it depends on the time rate of change of the magnetic field and the electric potential it would generate around a loop.</p> <h3>Modeling Lightning</h3> <p>Let me pretend that lighting is a current that flows in a straight line (a huge wire in the sky). A single current creates magnetic fields that makes a circular vector field around the current. Here is a picture. (I will just use this <a href="http://en.wikipedia.org/wiki/File:Manoderecha.svg">lovely picture from wikipedia</a>) </p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-c5dfee5c23b6a5e539940f7000f8786e-2010-09-01_untitled.jpg" alt="i-c5dfee5c23b6a5e539940f7000f8786e-2010-09-01_untitled.jpg" /></p> <p>The magnitude of this magnetic field (for a long straight wire) changes with distance from the wire as:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-c33f1168dd191e30b6629e79055ec40f-2010-09-01_la_te_xi_t_1.jpg" alt="i-c33f1168dd191e30b6629e79055ec40f-2010-09-01_la_te_xi_t_1.jpg" /></p> <p>Here μ<sub>0</sub> is a constant and <em>r</em> is the distance from the "wire" to the location of interest. So, if I am 10 miles from a lightning strike, what kind of magnetic field could I even detect? This would be a magnetic field of 4 x 10<sup>-7</sup> Tesla. Is that a large magnetic field? How about another example. What if I am 10 cm away from a wire with 1 amp of current? That would create a magnetic field of 2 x 10<sup>-6</sup> Tesla. So, maybe it would be possible to detect this magnetic field (I will have to play with some detectors to try this).</p> <p>The other question to address is time. How long does this current last? If it is super quick, I might not be able to even detect the magnetic field. This is directly tied to the other detection method - detecting an electric potential that goes with a changing magnetic field. I am not going to go into all the details (for now), but if you have a changing magnetic field and a loop of wire then the change in potential around that loop would be:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-cf1e76c9eb075aef9c10294a82120243-2010-09-01_la_te_xi_t_1_1.jpg" alt="i-cf1e76c9eb075aef9c10294a82120243-2010-09-01_la_te_xi_t_1_1.jpg" /></p> <p>Here:</p> <ul><li>N is the number of turns in the coil that makes up the loop</li> <li>B is the magnetic field vector</li> <li>n-hat is the unit vector that shows the orientation of the loop - it points perpendicular to the area of the loop</li> <li>A is the area of the loop</li> </ul><p>Suppose the area does not change. Also suppose that the magnetic field makes an angle θ with respect to the n-hat vector. This means that:</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-b6dd9fbecce2514a9bee3b91b689b0f8-2010-09-01_la_te_xi_t_1_2.jpg" alt="i-b6dd9fbecce2514a9bee3b91b689b0f8-2010-09-01_la_te_xi_t_1_2.jpg" /></p> <p>I honestly have no idea how long this lightning takes to happen. Also, this would give me the average change in electric potential - there are could be a spike depending on how quickly the magnetic field changes. Let me just suppose that Δt is around 0.1 seconds (just a guess) and my loop is a circle with a radius of 10 cm with 100 loops. What would the change in potential in the loop due to the lightning strike be? (assume best orientation of coil to lightning)</p> <p><img src="http://scienceblogs.com/dotphysics/wp-content/blogs.dir/342/files/2012/04/i-87a5e6fc14adbe87a151ef311f8a39a3-2010-09-02_la_te_xi_t_1_3.jpg" alt="i-87a5e6fc14adbe87a151ef311f8a39a3-2010-09-02_la_te_xi_t_1_3.jpg" /></p> <p>Ok, that is pretty low. Granted, my value for the change in time might be way off. But if it is not, even increasing the area and the number of loops both by a factor of 10 would still give a potential of around 10<sup>-3</sup> volts.</p> <p>There is another way to detect lightning - by the electromagnetic signal given off during the strike. <a href="http://www.google.com/search?q=build+a+lightning+detector">If you google for "build a lightning detector"</a>, you will find lots of info on these. Ok, but there is a problem. These all detect lightning, but I want to know where the lightning happens. I guess you could build two EM style lightning. If I want to know WHERE, I will need two detectors no matter which way I detect the lightning.</p> <p>Enough rambling. I guess I should set up some small scale experiments.</p> </div> <span><a title="View user profile." href="/author/rallain">rallain</a></span> <span>Thu, 09/02/2010 - 05:50</span> Thu, 02 Sep 2010 09:50:54 +0000 rallain 108204 at https://scienceblogs.com Another look at evaluating teachers https://scienceblogs.com/dotphysics/2010/09/02/another-look-at-evaluating-tea <span>Another look at evaluating teachers</span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"><p>The first thing that I saw was <a href="http://www.nola.com/education/index.ssf/2010/08/new_teacher_evaluation_method.html">this article from nola.com</a> (The Times-Picayune) <a href="http://www.nola.com/education/index.ssf/2010/08/new_teacher_evaluation_method.html">"New teacher evaluation method being proposed in Jefferson Parish"</a>. Let me summarize this article.</p> <p>Basically, one of the local School Board wants to use a learning tool (Interval Testing) as a teacher evaluation tool. The Interval Testing program gives students spaced out evaluations through out the year to help them (and teachers) assess the preparedness of the students. These are non graded assessments and have been shown to help students. Note - the purpose of the implementation of Interval Testing is to increase student performance on standardized tests.</p> <p>The school board's idea is to then take those Interval Testing scores to determine the effectiveness of the teachers.</p> <p>Is it just me? Or is this stuff getting out of control? If you turn these learning tools into evaluation tools, don't you think the teachers will have more incentive to make sure the students score high (especially on later tests) rather than use them for learning? This is a bad idea.</p> <p>Next - <a href="http://scienceblogs.com/principles/2010/09/teacher_evaluation_and_test_sc.php">Chad at Uncertain Principles</a> talks about another collection of teacher evaluation problems.</p> <p>I think there are really two things going on here. First, like Chad says, evaluating teachers is a difficult task. Evaluators want some quantitative, non-subjective measurement tool (which doesn't exist). Second, evaluating the teachers by looking at evaluations of students just seems like a plan for doomedness.</p> <p>Instead of giving some insightful commentary on the whole issue, I will present what I think the people involved in this are thinking:</p> <p><strong>Students:</strong> We have more homework? Why? What about this standardized test at the end of the year? I only need a passing grade to move to the next grade-level, right? It doesn't change my grades, right? Are we having spaghetti in the cafeteria?</p> <p><strong>Teachers:</strong> I can't wait for this end of year testing to be over. That way we can cover some cool and interesting topics that will really get the students pumped up about science (or math, or history, or literature, or art...). Oh, these non-graded assessments to help students learn sure are working well. It's great that they and I can see where their problems are. </p> <p><strong>Evaluators of teachers:</strong> (I put in this category principals and school board people and the like) How do we make sure these teachers are doing their job? There should be some number we can associate with each teacher to rate them. How about their height? That is a number. No wait, maybe that doesn't make sense. Oh, what about about evaluating the teachers by evaluating the students. Students get grades - right? Just use that. Or height, I still like height. Tall teachers are good teachers, my momma used to say.</p> <p>But why should it stop here? Shouldn't the School Board be evaluated on how the teacher evaluations change? If they don't show that teacher evaluations are increasing, they should get a poor evaluation.</p> <p>Really this comes down to the same thing as my problem with grades. There are two things in education, learning and evaluation. If you aren't careful and you mix the two up, bad stuff happens. So, am I saying that teachers should not be evaluated? Wouldn't they just play minesweeper all day then? How can students learn if you don't make them learn with a grade?</p> <p>I propose that the principals and other evaluators just subjectively estimate the effectiveness of the teachers. School boards should trust the principals (I keep wanting to type principles - I blame Chad) to effectively evaluate the teachers.</p> </div> <span><a title="View user profile." href="/author/rallain">rallain</a></span> <span>Thu, 09/02/2010 - 04:20</span> Thu, 02 Sep 2010 08:20:30 +0000 rallain 108203 at https://scienceblogs.com