Author Topic: Primary School remix for Pendulum  (Read 11303 times)

TheMattHatter

  • Newbie
  • *
  • Posts: 5
Primary School remix for Pendulum
« on: January 11, 2012, 12:15:28 pm »
Primary School remix for Pendulum by MattHatter

reference:

Hi Prof Hwang, this account cannot upload jar files?
the option is not enabled for MattHatter
thanks!

option appears in edit mode but ot first post
for your info

Hi Prof Hwang
the jar cannot be uploaded, strange!
« Last Edit: January 11, 2012, 12:19:48 pm by TheMattHatter »

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Re: Primary School remix for Pendulum
« Reply #1 on: January 11, 2012, 01:55:01 pm »
Upload new EJS jar file.
testing for Mat.

didn't work too


anyway the sharing
http://weelookang.blogspot.com/2012/01/sharing-at-s5-cluster-open-source.html
« Last Edit: January 11, 2012, 02:00:11 pm by lookang »

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Primary School remix for Pendulum
« Reply #2 on: January 15, 2012, 12:55:13 pm »
I can find your previous uploaded file in the server. However, part of the jar file were not unzip successfully.
Could you please try to upload the jar file again. I will try to find out what might be wrong.

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Re: Primary School remix for Pendulum
« Reply #3 on: January 15, 2012, 11:15:44 pm »
reupload as requested by i cannot change the folder to lookang from the original mathatter

strangely the jar file dint upload the source xml.

i will ask mat when i see him to reload the jar again

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Primary School remix for Pendulum
« Reply #4 on: January 16, 2012, 02:48:07 pm »
I can not find .xml or .ejs from the above jar file( ejs_Pendulumweemat.jar ).

I only found EJSSimulationList.xml

It seems that the jar file was not generate for one particular simulation, but a list of simulations.

I would suggest the user load the original ejs source and re-generate the jar file ,then upload it again.

TheMattHatter

  • Newbie
  • *
  • Posts: 5
Re: Primary School remix for Pendulum
« Reply #5 on: January 16, 2012, 04:20:34 pm »
jar is recheck to contain the source

Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
  • 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!

TheMattHatter

  • Newbie
  • *
  • Posts: 5
Re: Primary School remix for Pendulum (Request for help Prof Fu-Kwun)
« Reply #6 on: January 27, 2012, 11:48:47 am »
Hi Prof Fu-Kwun Hwang,

I'd like to share this simulation which I've been working on with Loo Kang. But I need your help to modify the formula/code such that when the wrecking ball hits the building, it stops.

I've designed a lesson around this simulation whereby students play a demolision contractor and are supposed to describe how energy is converted from one form to another when the ball hits the building.

Thank you!
« Last Edit: January 27, 2012, 11:51:05 am by TheMattHatter »

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Primary School remix for Pendulum
« Reply #7 on: January 27, 2012, 10:33:41 pm »
Just modified the code in the event:
//if (x>-0.18-xbuilding+1.0e-5) return theta; // check y > yground do nothing
//else return 1.0e-5; // y>yground return y when y?yground to the limit of the ground to tolerance
return theta;

And it should work fine. I guest that you have other model in mind (need to be implemented) to take care of the collision.

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Re: Primary School remix for Pendulum
« Reply #8 on: January 28, 2012, 11:27:44 pm »
got it!
thanks for the tip!

 if(Building==true&&theta-thetabuilding>0)return theta-thetabuilding;
 else if(Building==true&&theta-thetabuildingleft<0)return theta-thetabuildingleft;
return 0; // time continues

Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
  • 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!
« Last Edit: January 28, 2012, 11:31:15 pm by lookang »

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Primary School remix for Pendulum
« Reply #9 on: January 28, 2012, 11:41:27 pm »
It is better to change the last line:

 return 0; to return 1; // or something else which is larger than 0 for time continue

TheMattHatter

  • Newbie
  • *
  • Posts: 5
Re: Primary School remix for Pendulum
« Reply #10 on: January 30, 2012, 11:09:04 am »
Thank you Prof! This is great!

TheMattHatter

  • Newbie
  • *
  • Posts: 5
Re: Primary School remix for Pendulum
« Reply #11 on: January 30, 2012, 11:41:01 am »
Latest file, please let me know if you'd like to view the lesson built on this app and I'll share the Google site with you. Cheers!

Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
  • 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!
« Last Edit: January 30, 2012, 11:47:58 am by TheMattHatter »