### Author Topic: Ejs Open Source Rolling Solid & Hollow Sphere with Slipping java applet  (Read 13264 times)

#### lookang

• Moderator
• Hero Member
• Posts: 1774
• http://weelookang.blogspot.com
##### Ejs Open Source Rolling Solid & Hollow Sphere with Slipping java applet
« on: September 22, 2010, 07: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.

Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
• Please feel free to post your ideas about how to use the simulation for better teaching and learning.
• Post questions to be asked to help students to think, to explore.
• Upload worksheets as attached files to share with more users.
Let's work together. We can help more users understand physics conceptually and enjoy the fun of learning physics!

Description:
Slipping and Rolling Sphere
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
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:
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.
« Last Edit: March 22, 2018, 01:19:55 pm by lookang »

#### lookang

• Moderator
• Hero Member
• Posts: 1774
• http://weelookang.blogspot.com
##### Re: Ejs Open Source Rolling Solid & Hollow Sphere with Slipping java applet
« Reply #1 on: September 22, 2010, 07: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
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
9 made visual of tangential velocity and linear velocity shorter to fit into the view by divide by 10
11 fix bug the trace is position correctly now at the fixed point on the rim of the object
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
« Last Edit: September 28, 2010, 09:37:58 am by lookang »

#### lookang

• Moderator
• Hero Member
• Posts: 1774
• http://weelookang.blogspot.com
##### Re: Ejs Open Source Rolling Solid & Hollow Sphere with Slipping java applet
« Reply #2 on: September 22, 2010, 10: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
« Last Edit: September 23, 2010, 08:48:14 am by lookang »

#### ahmedelshfie

• Hero Member
• Posts: 930
##### Re: Ejs Open Source Rolling Solid & Hollow Sphere with Slipping java applet
« Reply #3 on: September 23, 2010, 01: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.
« Last Edit: September 23, 2010, 01:31:05 am by ahmedelshfie »

#### lookang

• Moderator
• Hero Member
• Posts: 1774
• http://weelookang.blogspot.com
##### Re: Ejs Open Source Rolling Solid & Hollow Sphere with Slipping java applet
« Reply #4 on: September 25, 2010, 09: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!
« Last Edit: September 27, 2010, 09:31:25 am by lookang »