NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Information about this web site => Request for physics Simulations => Topic started by: fxsuprapto on February 09, 2008, 10:22:09 am



Title: Clock simulation
Post by: fxsuprapto on February 09, 2008, 10:22:09 am
Hi Guru,
I have a problem to teach my little daughter about how to 'read' time.
Especially to give her understanding the difference between digital and analog clock.

What I'm thinking is a small simulation program where she can play and learn easily.
Have search in this website and could not find one.
I'll not ask you to create the program, that will waste your valueable time.
But in case you already have, would you please upload?

Thankyou very much.

Cheers,
fx


Title: Re: Clock simulation
Post by: Fu-Kwun Hwang on February 09, 2008, 02:27:11 pm
I did have an analog clock. But it did not have digital display and it only for display purpose.
Because you ask for teaching purpose, so I modified the code and make it draggable.
I hope this is what you want.
You can drag the the arrow (for minute and hour) to change the time or change it with slider bar.
Click "show" check box to display the time in digital format.


Title: Re: Clock simulation
Post by: fxsuprapto on February 14, 2008, 06:14:05 am
Wow.... I do appreciate your help.
Unfortunately I'm in a business trip, must wait until sometime next next week  :'(

But, this one is really what I'm thinking of....... thank you very much  :)




Title: Re: Clock simulation
Post by: Charyze on July 25, 2008, 08:38:42 pm
Hi Sir Fu-Kwun Hwang, can you pls. send me (jubycharyze_merca@yahoo.com) the source code of this clock simulation that you made. this  would be a big help to us for our Modeling and Simulation subject. we were asked to find some downloadable simulators(with source code) here in the net. i am hoping for your response. Thank you!  :)


Title: Re: Clock simulation
Post by: Fu-Kwun Hwang on July 25, 2008, 09:06:20 pm
Click the download line just below the applet and you will get the EJS source code.
You can open it in EJS. It is the same for all the simulations created with EJS at this web site.


Title: Re: Clock simulation
Post by: Charyze on July 25, 2008, 09:40:53 pm
thank you sir  :)
but unfortunately, i just cant figured out where i can see the source code there,  and also i cant open the .xml file when i downloaded it.  :(


Title: Re: Clock simulation
Post by: Fu-Kwun Hwang on July 26, 2008, 04:52:57 pm
You need to install EJS and open the xml file with EJS.
Official web site for EJS (http://fem.um.es/EjsWiki/)


Title: Re: Clock simulation
Post by: sevin.mostafa on October 19, 2009, 02:55:17 am
thanks for all dear....


Title: Re: Clock simulation
Post by: lookang on January 26, 2017, 11:03:12 am
i have created a brand new clock HTML5 version

http://iwant2study.org/ospsg/index.php/interactive-resources/mathematics/measurement-and-geometry/measurement/2-time/425-clockgeogebrawee

or

http://iwant2study.org/ospsg/index.php/425

enjoy!

i also fixed my minute hand drag problem based on this XML version

ctam = Math.atan2(mx,my);
var mxtest = Math.sin(ctam); //new position angles
var mytest =Math.cos(ctam);
if ((vmtest-vm)<-30){ //postive direction example 1 - 59
    detect=1;
// t = Math.floor(t/3600)*3600+3600+ vmtest*60;
// detect=0; // make it do once only
  }
 else if ((vmtest-vm)>30){ //negative direction example 59 - 1
    detect=-1;
// t = Math.floor(t/3600)*3600-3600+ vmtest*60;
// detect=0; // make it do once only
  }
  else {
    detect=0;
  
    }
    
  t = Math.floor(t/3600)*3600+ detect*3600+ vmtest*60; // assign value of t based on vmtest

Thank you Prof Hwang!