{"id":2866,"date":"2014-04-07T15:21:30","date_gmt":"2014-04-07T19:21:30","guid":{"rendered":"http:\/\/pages.vassar.edu\/magnes\/?p=2866"},"modified":"2014-04-14T21:19:27","modified_gmt":"2014-04-15T01:19:27","slug":"project-plan-modeling-the-magnetic-field-of-magnetic-dipoles-using-mathematica","status":"publish","type":"post","link":"https:\/\/pages.vassar.edu\/magnes\/2014\/04\/07\/project-plan-modeling-the-magnetic-field-of-magnetic-dipoles-using-mathematica\/","title":{"rendered":"Project Plan &#8211; Modeling the Magnetic Field of Magnetic Dipoles using Mathematica"},"content":{"rendered":"<p><span style=\"text-decoration: underline\">Sources and Resources<\/span><\/p>\n<p>My main source will be Griffiths Introduction to Electrodynamics (Fourth Edition), especially pages 253-255, where the magnetic dipole is first introduced and some equations are derived.\u00a0 Especially important is Eq. 5.88,<\/p>\n<p style=\"text-align: center\">$\\vec{B} = \\frac{\\mu_0 m}{4 \\pi r^3} (2 cos \\theta \\hat{r} + sin \\theta \\hat{\\theta})$<\/p>\n<p>which gives the magnetic field of a pure dipole in spherical coordinates. \u00a0In this equation, $m$ is the magnetic dipole moment, as defined in Eq. 5.86 in Griffiths<\/p>\n<p style=\"text-align: center\">$\\vec{m} \\equiv I \\int d\\vec{a}$<\/p>\n<p>\u00a0Mathematica 9 will be my main tool for modeling and presenting my results.<\/p>\n<p><span style=\"text-decoration: underline\">Initial Plans<\/span><\/p>\n<p>I plan to start with modeling a single magnetic dipole, whose magnetic field (in spherical coordinates) is given by Eq. 5.88.\u00a0 Mathematica 9 only works in Cartesian coordinates for 3D vector fields, so the Transformedfield function in Mathematica is important for converting from spherical to Cartesian coordinates.\u00a0 I will also perform this conversion by hand as a check.<\/p>\n<p>One potential problem I notice already is the visibility of a 3D magnetic field model.\u00a0 Perhaps it is just for ease in printing textbooks, but most magnetic fields shown in Griffiths are only shown in 2D with magnetic flux lines.\u00a0 As I begin to make some models, I will experiment with the different visibilities when using 3D vs. 2D vector fields, as well as using vector arrows vs. magnetic flux lines.\u00a0 It may be that a 3D vector field of arrows is too complicated to actually get a sense of what is going on.\u00a0 Changes in colors, arrow sizes, and arrow density will also help visibility.\u00a0 I plan to model a small loop at the origin to represent the magnetic dipole itself, but this may just crowd the model even more.<\/p>\n<p>After the single magnetic dipole model is a bit more set, I will move on to superimposing many magnetic dipoles together to create bigger shapes, such as a bar magnet or horseshoe magnet.\u00a0 I don\u2019t understand much about how this will work in Mathematica, but the result will be the numeric approximation of what the magnetic fields of these bigger shapes look like.\u00a0 I know that looping structures in Mathematica will be important, but I have to learn more about how these work and how they will work for my benefit.<\/p>\n<p><span style=\"text-decoration: underline\">Collaborators<\/span><\/p>\n<p>I am collaborating with Ramy Abbady and Tewa Kpulun, whose projects are very similar to mine in that they are modeling electric and\/or magnetic fields of relatively simple geometries (spheres, cylinders, etc.).\u00a0 We will compare our techniques and presentation styles to see what the best way to present our results is, as well as support each other in learning some more intricate parts of Mathematica 9 coding.<\/p>\n<p><span style=\"text-decoration: underline\">Timeline<\/span><\/p>\n<p>Week 1 (4\/7-4\/13): \u00a0I plan to begin modeling the magnetic field of a single dipole and trying out different presentation styles.<\/p>\n<p>Week 2 (4\/14-4\/20):\u00a0 I plan to finish my model of a single dipole and decide which presentation style works best.\u00a0 I also plan on starting to work out Mathematica looping structures and how they can be used to model complex combinations of magnetic dipoles in my project.<\/p>\n<p>Week 3 (4\/21-4\/27): \u00a0I plan on finishing my Mathematica looping education, and beginning to model bar magnets of different sizes and horseshoe configurations.\u00a0 If at all successful, preliminary results of more complex configurations of magnetic dipoles will be posted to the blog.<\/p>\n<p>Week 4 (4\/28-5\/4):\u00a0 I plan on finishing my complex models, and beginning preparation of my finalized results for the blog.<\/p>\n<p>Week 5 (5\/5-5\/11):\u00a0 I plan on finishing my final results for the blog and reading and commenting on the results of my peers\u2019 projects.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sources and Resources My main source will be Griffiths Introduction to Electrodynamics (Fourth Edition), especially pages 253-255, where the magnetic dipole is first introduced and some equations are derived.\u00a0 Especially important is Eq. 5.88, $\\vec{B} = \\frac{\\mu_0 m}{4 \\pi r^3} (2 cos \\theta \\hat{r} + sin \\theta \\hat{\\theta})$ which gives the magnetic field of a [&hellip;]<\/p>\n","protected":false},"author":1991,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4101,54054],"tags":[],"class_list":["post-2866","post","type-post","status-publish","format-standard","hentry","category-advanced-em","category-brian"],"_links":{"self":[{"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/posts\/2866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/users\/1991"}],"replies":[{"embeddable":true,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/comments?post=2866"}],"version-history":[{"count":10,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/posts\/2866\/revisions"}],"predecessor-version":[{"id":2997,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/posts\/2866\/revisions\/2997"}],"wp:attachment":[{"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/media?parent=2866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/categories?post=2866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/tags?post=2866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}