NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
April 19, 2014, 04:25:32 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Youe can not help men permanently by doing for them what they could and should do for themselves. ..."Abraham Lincoln(1809-1865, US President 1861-1865"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: Ejs open source Magnetic Field due to moving charges & current java applet  (Read 10128 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1726


http://weelookang.blogspot.com


WWW
«
Embed this message
on: August 28, 2009, 02:15:40 pm » posted from:-,-,SINGAPORE

Ejs open source Magnetic Field due to moving charges & current java applet
Magnetic field due to moving charges and electrical currents

This version here is slightly edited/remixed by lookang. Credits goes to the following people
Reference:
http://www.compadre.org/OSP/document/ServeFile.cfm?ID=8311&DocID=916#Doc916
written by Wolfgang Christian and Fu-Kwun Hwang
technical implementer: Robert Mohr
The EJS Magnetic Field from Loops model computes the B-field created by an electric current through a straight wire, a closed loop, and a solenoid. Users can adjust the vertical position of the slice through the 3D field.

Rationale for remix:
was trying to remix into http://www.walter-fendt.de/ph14e/mfwire.htm for students to make sense and open source Ejs allows others to build and customize other works for their learning purposes.
To allow for students to
draw the pattern of the magnetic field due to currents in straight wires and in solenoids and state the effect on the magnetic field of changing the magnitude and/or direction of the current

Embed a running copy of this simulation

Embed a running copy link(show simulation in a popuped window)
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!


* magneticfield.PNG (75.57 KB, 1023x768 - viewed 126 times.)

*** There are 1 more attached files. You need to login to acces it!
« Last Edit: November 10, 2010, 11:16:23 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1726


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #1 on: August 28, 2009, 02:17:59 pm » posted from:-,-,SINGAPORE

changes made:

1. added codes for step back icon button // actually this 2 codes has been created with ability to be added to any Ejs applet as default controls. Super cool!
if ( dt<0 ) {
  _step();
}
else if ( dt>0) {
   dt = - dt;
  _step();
  }
2. modify codes for forward step icon button // actually this 2 codes has been created with ability to be added to any Ejs applet as default controls. Super cool!
if ( dt>0 ) {
  _step();
}
else if ( dt<0) {
   dt = - dt;
  _step();
  }
3. reverse the orientation of the blue current arrow to reflect the true direction of current.
4. made the current arrows all GREEN for ease of association and clear distinction from the colors of the magnetic flux
5. added current slider I so that allow inquiry of current direction change, thanks to prof hwang codes here http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=181.0
6. repositioned the start of the current vector to be on the wire
7. moved the slider z slice to be on the right for ease of association of intent of z slice
8. added text hints + and - of the polarity of the wires
Sept 10 2009
9. show pole label when solenoid is formed north and south with the current direction



TO DO
one day if i got the codes to do it.
add a 3D object of a hand to illustrate the Maxwell's Right Hand Grip Rule?
 
a 3D object of a hand gripping

show pole label when solenoid is formed?


*** There are 2 more attached files. You need to login to acces it!
« Last Edit: September 10, 2009, 05:11:27 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1726


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #2 on: September 04, 2009, 11:48:08 am » posted from:Singapore,,Singapore

Magnetic Field from Loops
The EJSMagnetic Field from Loops model computes the B-field created by an electric current through a straight wire, a closed loop, and a solenoid. The user can adjust the vertical position of the slice through the 3D field.
Watch the simulation as the field changes from the field around a long straight current-carrying wire to the field near a coil. Explain what happens to the field. Inside a coil of many loops, why is the field fairly uniform near the center (think about vector addition and what vectors would be adding together near the center).
There is an arrow on each end of the wire which represents current (green). Is your idea in agreement with the simulation? What would be the direction of the electrons in the wire?


The simulation also shows the magnetic flux. What is flux? Therefore, what do the different colors represent and why (i.e is pink higher flux than yellow or vice versa)? and what does "higher flux" mean in terms of the geometry and field strength?)?

Credits:
The Magnetic Field from Loops simulation was created by Fu-Kwun Hwang using the Easy Java Simulations (EJS) modeling tool and was adapted to EJS version 4.1 by Robert Mohr and Wolfgang Christian at Davidson College. Additional exercises written by Anne J. Cox. You can examine and modify the model for this simulation if you have Ejs installed by right-clicking within the simulation frame and selecting "Open Ejs Model" from the pop-up menu. Information about EJS is available at: and in the OSP ComPADRE collection
« Last Edit: September 04, 2009, 01:03:56 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1726


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #3 on: September 18, 2010, 09:48:50 pm » posted from:Singapore,,Singapore

how to make java applet as visually stunning as this?
http://web.mit.edu/8.02t/www/802TEAL3D/visualizations/faraday/SolenoidUp/SolenoidOn_640.mpg

Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3047



WWW
«
Embed this message
Reply #4 on: September 18, 2010, 11:49:57 pm » posted from:,,Taiwan

Use Bio-Savart to calculate Bfield and draw magnetic field lines.
It will take time to calculate field lines.
Use save sa animated gif feature of EJS to save it.

The above movie is a nice animation.
Do you think you really learn something new by watching it?
Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1726


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #5 on: September 19, 2010, 12:15:57 am » posted from:Singapore,,Singapore

Use Bio-Savart to calculate Bfield and draw magnetic field lines.
It will take time to calculate field lines.
Use save sa animated gif feature of EJS to save it.
Yes, Bio-Savart Law to draw magnetic field lines. ( i also ask wolfgang before during aaptsm10, same answer, use Bio-Savart)
i notice there are a few on the forum, but i still cannot remix it, cannot make sense of the code easily yet.
now i got to do research for my part time study (electricity and magnetism literature review) , it is taking all my time away from learning Ejs. Angry
damn

The above movie is a nice animation.
agreed

Do you think you really learn something new by watching it?
actually it depends on whether the learner is thinking about it. i tend to agree, just looking at it does not help learning.

it is always my wish to see it in Ejs, but like what u and paco (some email on the http://www.compadre.org/osp/items/detail.cfm?ID=10327&S=2) said, the simulation will probably run slow as the animation is running pre-compiled frames and that is why the movie is a movie and not a java applet.
« Last Edit: September 19, 2010, 12:19:16 am by lookang » Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3047



WWW
«
Embed this message
Reply #6 on: September 19, 2010, 09:46:05 am » posted from:,,Taiwan

Following a lot of magnetic field lines will need a lot of calculation time.
Especially, those filed lines near the current source (need very small time step).

Another way is : calculate magnetic flux from one component of magnetic field (i.e. Bz) and draw contour.

If the number of field lines is reduced ,you might be able to run it in real time.
Otherwise, generating animated gif file will be easier.

I would not suggest you to reproduce it (why making a copy of the same animation),
unless the purpose is to learn how to create a similar one. i.e. learn how to generate magnetic field lines.
Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1726


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #7 on: September 29, 2010, 07:31:03 pm »

strange error in Mac OSX 10.6.4 under Safari
will investigate

Java Plug-in 1.6.0_20
Using JRE version 1.6.0_20-b02-279-10M3065 Java HotSpot(TM) 64-Bit Server VM
User home directory = /Users/lookang

network: Loading user-defined proxy configuration…
network: Done.
network: Loading proxy configuration from Netscape Navigator…
network: Done.
network: Loading direct proxy configuration…
network: Done.
network: Proxy Configuration: No proxy
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@6da28362, refcount=1
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@5c1fe88d
basic: Loading applet…
basic: Initializing applet…
basic: Starting applet…
basic: completed perf rollup
security: Blacklist revocation check is enabled
security: Trusted libraries list check is enabled
network: Cache entry found [url: http://www.phy.ntnu.edu.tw/ntnujava/ejsuser/14019/ejs_MagneticFieldFromLoops.jar, version: null] prevalidated=false/0
network: Connecting http://www.phy.ntnu.edu.tw/ntnujava/ejsuser/14019/ejs_MagneticFieldFromLoops.jar with proxy=DIRECT
network: Connecting socket://www.phy.ntnu.edu.tw:80 with proxy=DIRECT
network: Connecting http://www.phy.ntnu.edu.tw/ntnujava/ejsuser/14019/ejs_MagneticFieldFromLoops.jar with cookie “SMFCookie956=a%3A4%3A%7Bi%3A0%3Bs%3A5%3A%2214019%22%3Bi%3A1%3Bs%3A40%3A%22c0c86fa9de0b295ce99ea7f52e37418a8ad6475d%22%3Bi%3A2%3Bi%3A1446177999%3Bi%3A3%3Bi%3A1%3B%7D; PHPSESSID=165d9a0f129d0d3a517b421554e0e316; ID_MEMBER=14019; smfvcount=1; smfucount=3; smfuser=2; geoinfo=SG%7CSingapore%7CSingapore%7C00%7C%7C1.2931%7C103.8558%7C; __utma=181370168.22257188.1269711433.1276787486.1276793190.7”
network: ResponseCode for http://www.phy.ntnu.edu.tw/ntnujava/ejsuser/14019/ejs_MagneticFieldFromLoops.jar : 200
network: Encoding for http://www.phy.ntnu.edu.tw/ntnujava/ejsuser/14019/ejs_MagneticFieldFromLoops.jar : null
network: Disconnect connection to http://www.phy.ntnu.edu.tw/ntnujava/ejsuser/14019/ejs_MagneticFieldFromLoops.jar
network: Connecting http://www.phy.ntnu.edu.tw/ntnujava/ejsuser/14019/ejs_MagneticFieldFromLoops.jar with proxy=DIRECT
network: Connecting socket://www.phy.ntnu.edu.tw:80 with proxy=DIRECT
network: Connecting http://www.phy.ntnu.edu.tw/ntnujava/ejsuser/14019/ejs_MagneticFieldFromLoops.jar with cookie “SMFCookie956=a%3A4%3A%7Bi%3A0%3Bs%3A5%3A%2214019%22%3Bi%3A1%3Bs%3A40%3A%22c0c86fa9de0b295ce99ea7f52e37418a8ad6475d%22%3Bi%3A2%3Bi%3A1446177999%3Bi%3A3%3Bi%3A1%3B%7D; PHPSESSID=165d9a0f129d0d3a517b421554e0e316; ID_MEMBER=14019; smfvcount=1; smfucount=3; smfuser=2; geoinfo=SG%7CSingapore%7CSingapore%7C00%7C%7C1.2931%7C103.8558%7C; __utma=181370168.22257188.1269711433.1276787486.1276793190.7”
network: Downloading resource: http://www.phy.ntnu.edu.tw/ntnujava/ejsuser/14019/ejs_MagneticFieldFromLoops.jar
   Content-Length: 1,190,065
   Content-Encoding: null
network: CleanupThread used 4603 us
network: Wrote URL http://www.phy.ntnu.edu.tw/ntnujava/ejsuser/14019/ejs_MagneticFieldFromLoops.jar to File /Users/lookang/Library/Caches/Java/cache/6.0/28/3a12655c-124b2186-temp
network: CleanupThread used 2 us
cache: Replacing MemoryCache entry (cnt=0) for http://www.phy.ntnu.edu.tw/ntnujava/ejsuser/14019/ejs_MagneticFieldFromLoops.jarwas=com.sun.deploy.cache.CacheEntry (1172733546) now=com.sun.deploy.cache.CacheEntry (527795456)
basic: Exception: java.lang.NullPointerException
Ignored exception: java.lang.NullPointerException
« Last Edit: September 29, 2010, 07:45:10 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1726


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #8 on: September 29, 2010, 07:43:38 pm »

strange, is working after recompiling in Ejs 4.2.7 under Windows 7  instead of Ejs 4.3.0 previously recognized
not to worry
« Last Edit: September 29, 2010, 07:45:54 pm by lookang » Logged
Pages: [1]   Go Up
  Print  
Youe can not help men permanently by doing for them what they could and should do for themselves. ..."Abraham Lincoln(1809-1865, US President 1861-1865"
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Ejs Open Source Magnetic Field Vector of 2 current carrying wires Model
Collaborative Community of EJS
lookang 2 6904 Last post August 20, 2010, 08:15:22 am
by lookang
Ejs Open Source Magnetic Field Vector of 2 current carrying wires
electromagnetism
ahmedelshfie 0 1826 Last post April 12, 2010, 08:59:56 pm
by ahmedelshfie
Ejs Open Source Charge Particle in Magnetic Field B Java Applet in 3D
Collaborative Community of EJS
lookang 4 12010 Last post October 05, 2010, 10:17:50 pm
by Fu-Kwun Hwang
Ejs Open Source Bar Magnetic Field Lines Model Java Applet
Collaborative Community of EJS
lookang 7 4338 Last post December 20, 2012, 06:55:06 pm
by Fu-Kwun Hwang
Ejs Open Source Magnetic Dipole Field Vector & Field Lines 3D Model Java Applet
Collaborative Community of EJS
lookang 2 3405 Last post December 13, 2012, 10:03:40 am
by lookang
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.069 seconds with 23 queries.since 2011/06/15
宜久鋁門窗