NTNUJAVA Virtual Physics LaboratoryEnjoy the fun of physics with simulations! Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
June 24, 2018, 10:05:58 pm

To live close to great minds is the best kind of education. ..."John Buchan (1875~1940 Scotticsh historian, Governor General of Canada)"

 Pages: [1]   Go Down
 Author Topic: Air Drag  (Read 5758 times) 0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
ahmedelshfie
Ahmed
Hero Member

Offline

Posts: 954

 « Embed this message on: October 27, 2010, 11:40:20 pm » posted from:SAO PAULO,SAO PAULO,BRAZIL

Hello prof
Could some help about Air Drag applet,have some bugs i tried solve but didn't have luck!
Have wrong in K1,K2 and graphic not totally right have many wrongs.
When i set value in k1 or k2 or both applet move so fast with a big error!
Help prof
Thanks

 Air Drag.gif (18.17 KB, 940x437 - viewed 306 times.) *** There are 1 more attached files. You need to login to acces it! Logged
Fu-Kwun Hwang
Hero Member

Offline

Posts: 3080

 « Embed this message Reply #1 on: October 29, 2010, 05:00:54 pm » posted from:,,Taiwan

Please at least provide the parameters which you think it does not function preporly.
Is it the same in my original applet or it only shown in your modified version?
 Logged
ahmedelshfie
Ahmed
Hero Member

Offline

Posts: 954

 « Embed this message Reply #2 on: October 29, 2010, 05:25:24 pm » posted from:SAO PAULO,SAO PAULO,BRAZIL

Hi prof
As long time ago you help me modified your original applet but,
Have many days i was check applet together teacher physic, i find many bugs i tried to solve this bugs.
Have bugs in k1,k2,graphic of x,y
Because it i ask if you could check applet and help me solve this bugs.
Thanks prof
 Logged
Fu-Kwun Hwang
Hero Member

Offline

Posts: 3080

 « Embed this message Reply #3 on: October 29, 2010, 05:47:07 pm » posted from:,,Taiwan

Would you explain what do you mean by something wrong in graphic of x-y
and what kind of bug in k1,k2?
What kind of values you have tried which you think it move too fast?

I need to know the parameters you have tried which you suspect there is something wrong,
so that I can re-product the same result you found.
 Logged
ahmedelshfie
Ahmed
Hero Member

Offline

Posts: 954

 « Embed this message Reply #4 on: October 29, 2010, 06:02:07 pm » posted from:SAO PAULO,SAO PAULO,BRAZIL

About bugs K1,K2 normally when i run applet appear value of k1,k2 zero but when i change
Value for example k2 i change value to 1,000000 to click Play so the mass move so fast and appear
Error in x,y value beside time, about graphic when i run applet still applet finish running i look to value of x,y
And check graphic of x and y i find different but i think wrong only in y, last thing is the mass after i set value of angle and velocity
I run applet so mass move normally still end when touch another point on other side must stop but not stop continue move but no always some times stop i think is like relationship between value of angle and velocity.
 Bug.gif (17.91 KB, 968x411 - viewed 452 times.) « Last Edit: October 29, 2010, 06:08:32 pm by ahmedelshfie » Logged
Fu-Kwun Hwang
Hero Member

Offline

Posts: 3080

 « Embed this message Reply #5 on: October 29, 2010, 08:21:24 pm » posted from:,,Taiwan

There is nothing wrong with the code.

It is because you have too large value for k1,k2

The resistor force is assume to be $F=K1*V+K2*V^2$ and the mass is assumed to be 1.
K1 and K2 has to be much smaller than 1.
for k2=0.1 it is not an object moving in air. It is an object moving in densed fluid.
 Logged
motazibrahim
Newbie

Offline

Posts: 2

 « Embed this message Reply #6 on: November 05, 2010, 01:48:18 am » posted from:SAO PAULO,SAO PAULO,BRAZIL

Thank you prof for help, so every thing alright and not have any wrong like i think.
This a count my brother i was check is still work or no
Ahmed
Thanks
 « Last Edit: November 05, 2010, 01:52:02 am by motazibrahim » Logged
 Pages: [1]   Go Up
To live close to great minds is the best kind of education. ..."John Buchan (1875~1940 Scotticsh historian, Governor General of Canada)"