Permanent Magnet Interacting with Wire Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » Permanent Magnet Interacting with Wire « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

RWS (transpower)
Member
Username: transpower

Post Number: 13
Registered: 12-2008
Posted on Thursday, December 03, 2009 - 04:08 pm:   

I am attempting to model the interaction of a permanent magnet with a conductor carrying electrical current. In essence, this combines the Simple Fields of Physics scripts sim101.pde and sim104.pde. My proposed script is attached. However, the result doesn't look quite right; supposedly the field would be more circular around the wire. Also, I don't see, from the output, how I would get a resultant force that is normal both to the magnet and to the current, as experimentally observed.




application/octet-streamScript for Permanent Magnet / Wire
sim104_101.pde (1.8 k)
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert G. Nelson (rgnelson)
Moderator
Username: rgnelson

Post Number: 1308
Registered: 06-2003
Posted on Friday, December 04, 2009 - 02:43 pm:   

Are you sure you have your units right?

4*pi*1e-7 is the permeability of free space in MKS units, which means that J is interpreted as Amperes/M^2.

If the dimensions of your system are in mm and you have specified Jz0 as Amperes (total), then you must divide Jz0 by the cross-sectional area of the wire to get the proper current density. If you do this, you see a circular field around the wire.
Top of pagePrevious messageNext messageBottom of page Link to this message

RWS (transpower)
Member
Username: transpower

Post Number: 14
Registered: 12-2008
Posted on Sunday, December 06, 2009 - 06:32 pm:   

By reducing the magnetic field of the bar magnet and increasing the magnetic field of the wire, I was able to get the field display to look proper. Before, the magnet was simply overpowering the wire. Thanks.

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration