NTNUJAVA Virtual Physics LaboratoryEnjoy the fun of physics with simulations! Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
March 21, 2018, 12:20:47 am

Wisdom is to teach our students how to teach themselves. ...Wisdom

 Pages: [1]   Go Down
 Author Topic: Ball Rolling  (Read 2659 times) 0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
HornDog
Newbie

Offline

Posts: 2

 « Embed this message on: August 21, 2013, 01:36:02 am » posted from:MANCHESTER,ENGLAND,UNITED KINGDOM

Hi, I hope I can give as much information as necessary to help me out. I have a better than average Mathematical ability and am an extremely competent software engineer, but have limited knowledge in physics. My attempts so far to model the behavior below have had better success than I would have expected, but I really need to do this 'properly'!.

I am creating an application whereby a ball is rolling across a 2d surface (imagine a ball on a table, being looking down upon birds eye view).

This surface is not flat, at any location I can tell you how much angle there is relative to ground (assuming the ground is flat) - I can give two angles, the X and Y.

The ball will be 'free rolling' I think that is the correct term in that it will never slip, slide, bounce, fly! I simply want to give it a push in direction D and it roll merrily along the contours of the surface until such a point that friction (if thats the right term?) slows the ball down to a stop.

My original model was very basic with an xspeed and yspeed, these being accelerated by a fraction of a gravity value that was higher or lower depending on the amount of X or Y slope. I then simply subtracted a 'drag' value that was acting against the X and Y speeds.

It works, but I do get some odd results, I think down to the fact that the drag is not relative to the amount of X or Y speed - in otherwords you might not be travelling in X at all, but drag starts accelerating you again. Not totally sure to be honest, but I am at the point of seeking help!

This forum looks like a good place to start, I am sure I have probably not been very clear on the above - so please ask away.

D
 Logged
lookang
Hero Member

Offline

Posts: 1782

http://weelookang.blogspot.com

 « Embed this message Reply #1 on: August 29, 2013, 08:29:18 am » posted from:SINGAPORE,SINGAPORE,SINGAPORE

i have some model here that u can change to want u want

http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1840.0

a car rolling down a slope and colliding with bumper with coefficient of restitution e = 0.2
http://weelookang.blogspot.com/2010/06/ejs-open-source-multi-objects-rolling.html
https://dl.dropbox.com/u/44365627/lookangEJSworkspace/export/ejs_users_sgeducation_lookang_Car6web.jar
author:Ejs Open Source Rocket Car on an Inclined Plane Java Applet is by Wolfgang Christian, Francisco Esquembre, and Mario Belloni using the Easy Java Simulations (Ejs) modeling tool, now remixed by lookang

enjoy!
 Logged
 Pages: [1]   Go Up
Wisdom is to teach our students how to teach themselves. ...Wisdom