Enjoy the fun of physics with simulations!

Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Title: Ejs Open Source Rolling Solid & Hollow Sphere with Slipping java appletPost by: lookang on September 22, 2010, 06:44:24 pm
Ejs Open Source Rolling Solid & Hollow Sphere with Slipping java applet
reference:http://iwant2study.org/ospsg/index.php/interactive-resources/physics/02-newtonian-mechanics/05-circle/665-rotatediskwee by Hwang Fu Kwun, Loo Kang Wee and Fremont Teng http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=150.msg6487#msg6487 by Hwang Fu Kwun original http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1801.0 by Hwang Fu Kwun original layout by Ahmed. [ejsapplet] Description: Slipping and Rolling Sphere taken and adapted to sphere from http://www.compadre.org/osp/items/detail.cfm?ID=8606 The EJS Slipping and Rolling Sphere Model shows the motion of sphere rolling on a floor subject to a frictional force as determined by the coefficient of friction μk. The simulation allows the user to change the initial translational and rotational velocities of the wheel, v_i and ω_i, and the radius, mass and mass distribution momentum of inertia cofficeient, R, m, and C of the wheel. By controlling these variables, the dynamics of the wheel can be changed to show the slipping, then rolling without slipping, of the wheel. Slipping and Rolling Object (Sphere or Cylindrical) Theory taken and adapted to sphere from http://www.compadre.org/osp/items/detail.cfm?ID=8606 The theory behind the simulation of the rolling and slipping sphere is relatively straightforward, but substantially differs from its simpler cousin: the rolling without slipping sphere. When a sphere rolls without slipping, v = ωR, where v is the linear or translational velocity of the wheel, ω is the angular or rotational velocity of the wheel, and R is the wheel’s radius. When this condition is maintained, the relative velocity between the bottom of the wheel and the ground is zero. This condition, therefore, also means that the frictional force that acts must be static friction which cannot do any work on the wheel, and energy methods can be used to analyze the motion. For rolling with slipping, the force acting on the wheel is kinetic friction which must be treated both as a force, F, acting on the center of mass of the wheel and as a torque, τ, acting at the point of contact between the wheel and the ground. During this motion, both the force and the torque are constant and therefore the velocity and the angular velocity can be determined with the constant acceleration kinematics equations: v = v0 +(F/m)t and ω = ω0 +(τ/I)t, respectively The rotational and translational motions are then independent until v = ωR when the wheel begins to roll without slipping. The time when this occurs can be found with these kinematics equations solving for when v = ωR. The simulation has these theoretical details explicitly encoded in it. Specifically: The translation and rotational motions each have their own differential equation (ODE) describing the motion (dx/dt = v, dv/dt = F/m, dθ/dt = ω, and dω/dt = τ/I). These two motions can be coupled in the same way that two-dimensional motion in x and y can be coupled, but the dynamics can be understood separately. EJS makes it easy to model the coupled problem without messy mathematical manipulations with a lot of trigonometric functions. The Evolution page in EJS allows one to easily transform from the space to the body frame by changing the transform vectors. See the Evolution workpanel in EJS for details. EJS differential equation solver (ODE) events allow us to determine precisely when slipping stops, v = ωR, and to switch the equations of motion from rolling with slipping (constant acceleration and constant angular acceleration) to rolling without slipping (constant velocity and constant angular velocity). See the ODE events page in EJS for details. Exercises: taken and adapted to sphere from http://www.compadre.org/osp/items/detail.cfm?ID=8606 Questions 1. For an initially translating, but not rotating, wheel, draw a free-body diagram and determine the acceleration and the angular acceleration of the wheel for the time it is translating and slipping. Your answers should be written in terms of μk, v_i, C kw, m, and R. 2. For the scenario in (1), (a) determine the time the wheel is slipping, (b) determine the distance the wheel travels while slipping, (c) determine the final translational and rotational velocities when the slipping stops. Check your answer against the simulation. 3. Redo questions (1) and (2) for an initially rotating (with backspin), but not translating, wheel. Check your answer against the simulation. 4. Redo questions (1) and (2) for an initially rotating (with backspin), and initially translating, wheel. Check your answer against the simulation. Show that the condition for the wheel to end up stationary is that v_i = -v*ω_i*R*kw. Title: Re: Ejs Open Source Rolling Solid & Hollow Sphere with Slipping java appletPost by: lookang on September 22, 2010, 06:52:00 pm
changes
0 was browsing around from http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1949.msg7179;topicseen#msg7179 Hwang Fu Kwun original, layout by Ahmed. 1. redesign from http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=150.msg6487#msg6487 by Hwang Fu Kwun original 2 add tangential velocity visual and bar 3 made the Radius work 4 color adapted from http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1949.0 and own design 5 fix bug in equation d(omega)/dt = kv*kw*mu*g/R, kw missing 6 add initial button to allow viewing of solid and hollow sphere one run after another for clearer visual of the graphs 2 plots 7 add bars for values 8 add text to illustrate exactly when the slipping stops adapted from http://www.compadre.org/osp/items/detail.cfm?ID=8606 9 made visual of tangential velocity and linear velocity shorter to fit into the view by divide by 10 10 add table instead of line 11 fix bug the trace is position correctly now at the fixed point on the rim of the object 12 add time 13 add symbols $theta$ etc 28sept2010 14 add velocity at the contact = vx - omega*R http://www.compadre.org/osp/items/detail.cfm?ID=7896 Ejs Coin Rolling with and without Sliding Model written by Juan Aguirregabiria edited by Wolfgang Christian Title: Re: Ejs Open Source Rolling Solid & Hollow Sphere with Slipping java appletPost by: lookang on September 22, 2010, 09:03:31 pm
can check why the applet does not show up in web?
i am using Ejs 4.2.7, the latest 4.3.1 cannot compile the $alpha$ properly Title: Re: Ejs Open Source Rolling Solid & Hollow Sphere with Slipping java appletPost by: ahmedelshfie on September 23, 2010, 12:23:39 am
I tried access applet and test using Firefox, Internet Explorer and Google Chrome, but no access on NTNU didn't know where error.
About Symbols like $theta$ by EJS 4.3.1 the same error not work can't compile Symbols. ( Symbols worked very well by EJS 4.3.0)However prof hwang i think can find where is error. I just report my test. Title: Re: Ejs Open Source Rolling Solid & Hollow Sphere with Slipping java appletPost by: lookang on September 25, 2010, 08:20:14 pm
i tried the export as web applets and found it didn't load.
after investigating, it will load if the panel of bar values are removed. i suspect it was the row of bar values in the panel. after i change x bar to a x slider and recompile, it works now. it was not the java version or Ejs version, it was the way Ejs assemble the java codes in the applet and it happened a row of bar values made the applet cannot web load it works now :) enjoy! |