NTNUJAVA Virtual Physics LaboratoryEnjoy the fun of physics with simulations! Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
February 22, 2020, 11:10:33 am

"If I have a thousand ideas and only one turns out to be good, I am satisfied." ..."Alfred Nobel(1833-1896, Swedish inventor, chemist, philanthropist)"

 Pages: [1]   Go Down
 Author Topic: how do make the magnet turn orientation to NS from current SN?  (Read 4862 times) 0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Hero Member

Offline

Posts: 1793

http://weelookang.blogspot.com

 « Embed this message on: April 16, 2010, 04:24:38 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

Hi Prof,

how do make the magnet turn orientation to NS from current SN?

I was tinkering the codes here.

I was looking for a way to understand the codes i was unsuccessful to isolate the codes responsible for the magnetic dipoles bearing currently it is SN ( left to right)

If i can locate the codes, i can proceed to make the changes!

thx!

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
• 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

Posts: 1793

http://weelookang.blogspot.com

 « Embed this message Reply #1 on: April 16, 2010, 09:24:47 pm » posted from:Singapore,,Singapore

not to worry!
got it
Code:
xField[i][j] = -b[0];
yField[i][j] = -b[1];