NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
October 18, 2017, 02:43:42 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  
To live close to great minds is the best kind of education. ..."John Buchan (1875~1940 Scotticsh historian, Governor General of Canada)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: is there an easier way to draw static magnetic field lines of a bar magnet?  (Read 3465 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: August 08, 2012, 05:15:48 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

dear prof,

is there an easier way to draw static magnetic field lines of a bar magnet?

notice is my source codes the way i made the visible foe B=1, B=2, B=3, B=4?


i cant be doing this way for B=100 for example.

is there a way i can use array 3D trails ?
or is there a analyticCurve3D for array?

thanks!


* fieldlines.png (35.33 KB, 1366x768 - viewed 315 times.)

*** There are 2 more attached files. You need to login to acces it!
« Last Edit: August 08, 2012, 05:36:23 pm by lookang » Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #1 on: August 08, 2012, 05:35:53 pm » posted from:,,Satellite Provider

I think the way I calculated the field is by using Biot-Savart law.
Calculate magnetic field sue to a coil. The solenoid is simple copy of many coils. So just need to sum up the field from one coil.
You should be able to calculate it.

The magnetic field of a bar is the same as the field of a solenoid.
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #2 on: August 08, 2012, 05:43:33 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

i do not mean to use Biot-Savart law which is computational expensive.

i am cheating using
analyticCurve3D

x = "0.5+0.5*Math.cos(theta)*Math.cos(0)-1*Math.sin(theta)*Math.sin(0)"
y = 0
z = "0+0.5*Math.sin(theta)*Math.sin(0)-1*Math.sin(theta)*Math.cos(0)"

transform "z:270d" etc to get the many lines i need.

is there a analyticCurve3D for array? which immediately draws the lines without ODE evolution.
thanks!
Logged
Pages: [1]   Go Up
  Print  
To live close to great minds is the best kind of education. ..."John Buchan (1875~1940 Scotticsh historian, Governor General of Canada)"
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Transformer simulation with magnetic field lines.
Request for physics Simulations
jshearman 1 22341 Last post February 16, 2008, 02:32:45 pm
by Fu-Kwun Hwang
Magnetic field generated bar magnet
Electromagnetism
Fu-Kwun Hwang 4 15397 Last post September 28, 2009, 09:00:19 am
by lookang
Charged particle motion in static Electric/Magnetic field
Electromagnetism
Fu-Kwun Hwang 0 12890 Last post February 13, 2010, 11:52:04 am
by Fu-Kwun Hwang
Magnetic field generated bar magnet
electromagnetism
ahmedelshfie 0 3321 Last post May 25, 2010, 01:20:00 am
by ahmedelshfie
Falling Magnet With Magnetic Field Lines
Collaborative Community of EJS
engrg1 2 5244 Last post December 18, 2012, 04:32:40 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.051 seconds with 23 queries.since 2011/06/15