Skip to content

function that finds the magnetic flux (B field) from a rectangular bar magnet at a specific x,y,z point

Notifications You must be signed in to change notification settings

LukeDickerson19/Rect-Bar-Mag-B-Field-Finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rectangular Bar Magnet Magnetic Flux Field Finder

Function written in Java.

Returns:

The magnetic Flux (B field) Vector (in the form of a 3 element array, that represents the x,y,z components of the vector) with units Teslas, from a rectangular bar magnet. The vector is of the B field at a specific x,y,z coordinate relative the the magnet (coordinate system origin is at the center of the magnet)

Arguments:

  • x, y, z (type: double) are the coordinates of the point at which the B field is to be found in meters
  • mx, my, mz (type: double) are the width, height, and depth of the rectangular bar magnet in meters
  • mag_dir (type: double) is the vector of the magnetization of the magnet in A/m,
    • it is confined to the y direction in A/m
    • positive inputs represent a magnetization in the positive y direction
      • i.e. the north end of the magnet is in the positive y direction
    • negative inputs represent a magnetization in the negative y direction
      • i.e. the south end of the magnet is in the positive y direction

Sources:

The equations used to calculate the magnetic field were found from journal 1 by Vlatko Cingoski and Hideo Yamashita, provided here in the Sources folder.

About

function that finds the magnetic flux (B field) from a rectangular bar magnet at a specific x,y,z point

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages