Author Topic: Ejs Open Source Ideal Gas Model with Maxwell Distribution of Speed Java Applet  (Read 11533 times)

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1774
  • http://weelookang.blogspot.com
    • lookang web
Ejs Open Source Ideal Gas Model with Maxwell Distribution of Speed Java Applet by Wolfgang Christian
name change is for google better search result for "Maxwell Distribution of Speed"

This is a legally remix applet license under GNU General Public License (GPL) version 2 http://www.opensourcephysics.org/misc/copyright.html , but please note that the narratives of books, manuals, and curricular material associated with this code are copyrighted by the authors and/or publishers which are not here anyway :)
Ejs Open Source Ideal Hard Disk Gas Model by Wolfgang Christian java applet remixed by lookang
Reference:
Ejs Open Source Ideal Hard Disk Gas Model by Wolfgang Christian http://www.compadre.org/osp/items/detail.cfm?ID=7573

i don't think i got the physics codes correctly implemented for e !=1

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: June 17, 2010, 02:50:25 pm by lookang »

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1774
  • http://weelookang.blogspot.com
    • lookang web
Re: Ejs Open Source Ideal Hard Disk Gas Model by Wolfgang Christian
« Reply #1 on: March 18, 2010, 05:36:45 pm »
changes made to learn from the open source physics codes.

1. made n selectable by defining nmax and insert as the n maximum limit
2. made v0 selectable by changing the codes
3. made arrows array to be drawn to understand where the particles are heading
4. made text array to allow eye balling what each particle is doing
5 change some minor values to make cellSize selectable as well.
6 added e coefficient of restitution but the codes does not work well when e = 0 probably due to the collision detection codes, goes to a deep loop when too much particles are near each other and the model is not too correct as it behaves strangely, the particles all move to one side?

Enjoy!
« Last Edit: March 21, 2010, 11:20:24 pm by lookang »

ahmedelshfie

  • Hero Member
  • Posts: 930
Re: Ejs Open Source Ideal Hard Disk Gas Model by Wolfgang Christian
« Reply #2 on: April 26, 2010, 09:31:24 pm »
Is very interesting simulation prof lookang any way
I modified interface  ;)

Hard Disk Gas model displays a two-dimensional gas made out of hard disks.
Particles are initialized with a speed v=1 in a random direction and move with constant velocity until a collision occurs. 
You can modify this simulation if you have Ejs installed by right-clicking within the plot and selecting "Open Ejs Model" from the pop-up menu item. 

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!