NTNUJAVA Virtual Physics Laboratory

Easy Java Simulations (2001- ) => Electromagnetism => Topic started by: Fu-Kwun Hwang on June 08, 2005, 09:13:39 am

Title: new version of charged particles and walls
Post by: Fu-Kwun Hwang on June 08, 2005, 09:13:39 am
1. Select positive/negative charge and click inside the simulation area to add particles at that
point. (Added particles can be fixed position or freely moving particles).
You can add rectangle wall (provide x,y as top-left corner and width/height (w/h) values)
or circular wall (provide x,y as center and R as radius)
Change Ex or Ey if you need uniform electric field.
Title: Re: new version of charged particles and walls
Post by: thmz on March 01, 2009, 12:21:51 am
Wonderful simulation. Thanks for sharing it. A few questions and notes.
 
Thanks for all of what you do.
TM
Title: Re: new version of charged particles and walls
Post by: Fu-Kwun Hwang on March 01, 2009, 01:29:25 am
I just modified the above simulation so that you can change mass for each particles. (But the size is not changed.) Click change mass checkbox, than every mass being clicked will be change to the mass in the box. When the checkbox is not checked. The mass being clicked will be displayed in the text field.

You should be able to save the state into memory. If you download it and run it as a java application. You can save the state to a file.

The above simulation was built for arbituary walls.
The walls are consists with segment between adjacent points.
So that the slope of the segment can be used to calculate the collision between particles and walls.
The size of particles are either 4 or 5. It is useless to have circles which is too small to trap particles inside.

If you need a bunchs of circular walls. I believe you have another different situation. May be you want charticles to collide with  small circular walls. That is a different simulation.
You can check out particle model for solid/liquid/gas states (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=296.0) or Collision 2D  (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=120.0)
(However, the above simulations are not for charged particles).

You can download EJS source and modify the code to suit your need! Everything can be changed!

Title: Re: new version of charged particles and walls
Post by: tmzoughi on March 01, 2009, 02:57:58 am
Thanks. Actually, I just came back here to post that I ended up doing that, downloading EJS, and modifying the file. One interesting thing I tried was to dump 20 mass 1 negative charges, and 10 mass 100, and charge 2, positive charges. It was neat the way they came together.
I still could not get it to open and save files. I must be missing something. Thanks for all of your help.
Title: Re: new version of charged particles and walls
Post by: gabrielcox on May 02, 2018, 08:58:11 pm
Thanks a lot for explaining this topic of physics. This was really difficult for me. I was looking for some information on getacademichelp.com (http://getacademichelp.com). But you explained it really good.