NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
October 22, 2017, 06:24:44 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Knowledge and practice are one. ..."Wang Yang Ming (1472-1529, Chinese Philosopher) "
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: Individual and Resultant Force Magnetic Field of a wire and external mag. field  (Read 16185 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
on: October 27, 2009, 11:24:22 pm » posted from:Singapore,,Singapore

Individual and Resultant Force Magnetic Field of a Current-Carrying Rectangular Coil in a External Magnetic Field.


I am wondering if i can use this http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1266msg4902;topicseen#msg4902

Or the original http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=912.0 also can?

to create a checkbox for

some beginning trainee teacher wanted a picture of magnetic field of a current carrying wire in a external magnetic field like the attached picture right side resultant diagram.

i don't seem to have seen it before as an applet here.
for ur consideration Grin


* combinedmagneticfield.PNG (33.9 KB, 1657x567 - viewed 384 times.)
« Last Edit: October 27, 2009, 11:28:33 pm by lookang » Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #1 on: October 28, 2009, 05:09:29 pm » posted from:Taipei,T'ai-pei,Taiwan

Is it a Current-Carrying Rectangular Coil (3D model)or two parallel wire with current in opposite direction (2D model)?

Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #2 on: October 28, 2009, 06:16:25 pm »

3d would be fantastic .



2d would be ok too Smiley
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #3 on: October 28, 2009, 10:01:17 pm » posted from:Taipei,T\'ai-pei,Taiwan

Here is the field structure produced from two long wires.
It is shown in 2D (I am afraid it will be too complicated to display it in 3D -- too many arrows).

You can use mouse to drag both wires to change separation between wires.
If you click inside the region, field line pass throught that point will be traced out.

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!
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #4 on: November 06, 2009, 02:29:26 pm » posted from:Singapore,,Singapore

This is fantastic applet, it will add to your collection of good simulations for physics learners.

two questions,

1. how can i automatically plot the magnetic field lines?
for example, http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=740.0


2.i changed the dt from 0.5 to 2 but it looks rougher (less accurate). how to make the drawing of magnetic field lines faster n still accurate?


i edited your applet and i notice a bug, changed it for u already. it is posted here and i think i will start a new post on it here http://www.phy.ntnu.edu.tw/ntnujava/index.php?board=28.0

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!


*** There are 1 more attached files. You need to login to acces it!
« Last Edit: November 06, 2009, 04:30:29 pm by lookang » Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #5 on: December 09, 2009, 11:32:50 pm » posted from:Singapore,,Singapore

Hi prof hwang,

did u notice that only one applet loads correctly on this forum page.

the second applet failed to load.

i noticed this happened also in other 2 applet pages
the error message is
Java Plug-in 1.6.0_17
Using JRE version 1.6.0_17-b04 Java HotSpot(TM) Client VM
User home directory = C:\Users\160
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to
----------------------------------------------------


Reading certificates from 11 http://www.phy.ntnu.edu.tw/ntnujava/ejsuser/14019/ejs_MagneticField2Wire.jar | C:\Users\160\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\20\f64d854-45cedbce.idx
Reading certificates from 11 http://www.phy.ntnu.edu.tw/ntnujava/ejsuser/2/ejs_twowiresBfield.jar | C:\Users\160\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\35\252779a3-55ac904d.idx
load: class users.sgeducation.lookang.MagneticField2Wire_pkg.MagneticField2WireApplet.class not found.
java.lang.ClassNotFoundException: users.sgeducation.lookang.MagneticField2Wire_pkg.MagneticField2WireApplet.class
   at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://www.phy.ntnu.edu.tw/ntnujava/ejsuser/14019/users/sgeducation/lookang/MagneticField2Wire_pkg/MagneticField2WireApplet/class.class
   at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   ... 7 more
Exception: java.lang.ClassNotFoundException: users.sgeducation.lookang.MagneticField2Wire_pkg.MagneticField2WireApplet.class
load: class users.sgeducation.lookang.MagneticField2Wire_pkg.MagneticField2WireApplet.class not found.
java.lang.ClassNotFoundException: users.sgeducation.lookang.MagneticField2Wire_pkg.MagneticField2WireApplet.class
   at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://www.phy.ntnu.edu.tw/ntnujava/ejsuser/14019/users/sgeducation/lookang/MagneticField2Wire_pkg/MagneticField2WireApplet/class.class
   at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   ... 7 more
Exception: java.lang.ClassNotFoundException: users.sgeducation.lookang.MagneticField2Wire_pkg.MagneticField2WireApplet.class
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #6 on: December 10, 2009, 05:21:20 pm » posted from:Taipei,T'ai-pei,Taiwan

I downloaded you jar file,
and the class file is located at
users/sgeducation/lookang/ejs_MagneticField2Wire/MagneticField_pkg/MagneticField2Qire.class

However, the java was looking for users/sgeducation/lookang/MagneticField2Wire_pkg/MagneticField2WireApplet.class

You have one more level of structure. That is the reason why it was not working.

Please do not use the same filename as your folder name if you want to add one more level file structure.

Please MagneticField2Wire.xml to users/sgeducation/lookang/MagneticField2Wire.xml
, open it with EJS , rebuild it and upload it again.
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #7 on: December 10, 2009, 08:50:13 pm » posted from:Singapore,,Singapore

please delete the early jar post as i cannot modify it. not needed, it now also loads correctly, just let it be then. Cheesy
thanks for your feedback

wait, it still cannot be viewed Grin
i already re complied it.
Please check. it works now! after re start firefox. thanks!


btw u realized the model bug in your applet?
your top post applet shows the field vector is for out of plane out of plane current. it is a small error which i already remodel accurately in my remixed of your applet. http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1290

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!
« Last Edit: December 10, 2009, 09:02:16 pm by lookang » Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #8 on: December 10, 2009, 10:42:37 pm » posted from:Taipei,T\'ai-pei,Taiwan

Thank you for point out the bug. It is fixed.  Grin
Logged
Pages: [1]   Go Up
  Print  
Knowledge and practice are one. ..."Wang Yang Ming (1472-1529, Chinese Philosopher) "
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Magnetic field pattern for (line/ coil/ solenoid)
Electromagnetism
Fu-Kwun Hwang 17 80060 Last post September 04, 2009, 11:56:38 am
by lookang
Transformer simulation with magnetic field lines.
Request for physics Simulations
jshearman 1 22351 Last post February 16, 2008, 02:32:45 pm
by Fu-Kwun Hwang
Magnetic field generated bar magnet
Electromagnetism
Fu-Kwun Hwang 4 15407 Last post September 28, 2009, 09:00:19 am
by lookang
Quantum motion in a magnetic field
Molecular Workbench
concord 0 4321 Last post February 23, 2009, 09:03:38 pm
by concord
Relation between friction force, external force, normal force
Dynamics
Fu-Kwun Hwang 1 13264 Last post July 23, 2009, 04:01:38 pm
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.071 seconds with 22 queries.since 2011/06/15