{"id":5742,"date":"2021-04-07T06:22:55","date_gmt":"2021-04-07T10:22:55","guid":{"rendered":"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/?p=5742"},"modified":"2026-03-27T08:59:49","modified_gmt":"2026-03-27T12:59:49","slug":"demystifying-electromagnetics-part-3-magnets","status":"publish","type":"post","link":"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/2021\/04\/07\/demystifying-electromagnetics-part-3-magnets\/","title":{"rendered":"Demystifying Electromagnetics, Part 3 &#8211; Magnets"},"content":{"rendered":"\n<p>In <a href=\"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/2021\/03\/02\/demystifying-electromagnetics-part-1-fields-and-analogies\/\" target=\"_blank\" rel=\"noreferrer noopener\">Part 1<\/a> and <a href=\"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/2021\/03\/12\/demystifying-electromagnetics-part-2-wires\/\" target=\"_blank\" rel=\"noreferrer noopener\">Part 2<\/a> we explored the electric field, a force field created by charges that only acts on charges. Magnetic fields are similar in some ways, in fact as this blog series goes on we\u2019ll see that the electric field and magnetic field are 2 sides of the same coin (it\u2019s called \u2018Electromagnetics\u2019 for good reason). How best to demystify magnets and the magnetic field? Let\u2019s pose some basic questions\u2026<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Generates a Magnetic Field?<\/h2>\n\n\n\n<p><strong>Answer: A moving charge<\/strong><\/p>\n\n\n\n<p>It really is as simple as that. An isolated charge (let\u2019s assume it\u2019s a single proton) will always generate an electric field. As soon as it starts to move however it will also generate a magnetic field. Whereas the electric field \u2018flows\u2019 outwards from the proton, the magnetic field \u2018flows\u2019 around the moving proton:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"519\" height=\"337\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/MagField.png\" alt=\"\" class=\"wp-image-5745\"\/><figcaption>A magnetic field rotates around a moving charge<\/figcaption><\/figure><\/div>\n\n\n\n<p>The further away from the moving proton, the weaker the magnetic field, but the field always circulates, it always loops around without a beginning or an end.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Does a Magnetic Field Do?<\/h2>\n\n\n\n<p><strong>Answer: It exerts a force on a moving charge<\/strong><\/p>\n\n\n\n<p>Similar to the electric field that exerts a force on a charge, a magnetic field will also exert a force on a charge but only when that charge is moving. One might have assumed that the direction of that force is in the direction of the blue arrows indicating the direction of the magnetic field. After all, that\u2019s how the electric field force worked, right?&nbsp; Not quite, the direction of the force is at 90 degrees to both the magnetic field direction and the direction that the proton is moving in.<\/p>\n\n\n\n<p>Consider a single lonely proton, let\u2019s call him Peter, just sauntering along minding his own business, when suddenly he walks into a magnetic field:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"791\" height=\"705\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/MagFieldForce.png\" alt=\"\" class=\"wp-image-5746\" srcset=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/MagFieldForce.png 791w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/MagFieldForce-600x535.png 600w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/MagFieldForce-768x685.png 768w\" sizes=\"auto, (max-width: 791px) 100vw, 791px\" \/><figcaption>Force exerted on Peter the moving proton<\/figcaption><\/figure><\/div>\n\n\n\n<p>Peter would be forced downwards. Due to his now changed direction he\u2019d then be forced sideways, then up, the right etc. In fact he\u2019d end up going in a circle.<\/p>\n\n\n\n<p>The direction the force is applied, given the direction the charge is moving in and the direction of the magnetic field, can be found using the right hand rule. One\u2019s thumb is the result of the dot product (the force), the index and middle finger point in the directions of the velocity and magnetic field vectors. It\u2019s &nbsp;worth noting that the right hand rule will give the direction of the force a +ve charge would experience. If instead it was a lonely Erik the electron, a \u2013ve charge, the direction of the force would be reversed.<\/p>\n\n\n\n<p>One comment about Peter, sure he creates his own magnetic field because he is moving, but in the above example the external magnetic field that \u2018comes from somewhere else\u2019 is so big that we can ignore Peter\u2019s feeble field.<\/p>\n\n\n\n<p>Whereas it might seem strange that the force exerted is at 90 degrees to the direction of travel, a helpful analogy might be the lift force a wing experiences as it travels through a fluid.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How Large is the Force?<\/h2>\n\n\n\n<p><strong>Answer: it depends on the amount of the charge and the speed it is travelling<\/strong><\/p>\n\n\n\n<p>The force a charge experiences due to an electric field = Eq, where E is the electric field strength (N\/C) and q is the charge (C). The force a charge experiences due to a magnetic field =&nbsp; q(v X B) where v is the velocity vector of the charge (m\/s), B is the magnetic flux density vector (<strong>T<\/strong>esla) and X is the cross product of those 2 vectors. If the velocity and magnetic flux are at 90 degrees to each other, the force exerted is at a maximum.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The Lorentz Force<\/h3>\n\n\n\n<p>Combining these, the total force a charge experiences due to both electric and magnetic fields is called the Lorentz force:<\/p>\n\n\n\n<p>F = q(E+(v X B))<\/p>\n\n\n\n<p>If v is zero, there\u2019s only the electric field contribution. Generally, the bigger the charge q the bigger the force that will be exerted on it.<\/p>\n\n\n\n<p>Going back to our analogy table, it\u2019s interesting to note that whereas it\u2019s the electric field strength <strong>E<\/strong> that contributes to the Lorentz force, it\u2019s the magnetic flux density <strong>B<\/strong> that provides the magnetic contribution to that overall force not the magnetic field strength <strong>H<\/strong>. Well I found that interesting.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"497\" height=\"411\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/ElectroMagnetic-Analogy-Table.png\" alt=\"\" class=\"wp-image-5748\"\/><figcaption>Electric and Magnetic field analogy table <\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Meet Petronella<\/h2>\n\n\n\n<p>The lonely Peter is joined on his walk by his proton friend Petronella. Their magnetic fields interact but are Peter and Petronella attracted or do they repel each other? It depends on which direction each of them is walking in. What if they are walking in the same direction?<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Peter-and-Petronella-Interacting.png\" alt=\"\" class=\"wp-image-5750\" width=\"733\" height=\"374\" srcset=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Peter-and-Petronella-Interacting.png 733w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Peter-and-Petronella-Interacting-600x306.png 600w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><figcaption>Peter and Petronella&#8217;s interacting magnetic fields<\/figcaption><\/figure><\/div>\n\n\n\n<p>Peter\u2019s magnetic field sweeps over Petronella, and vice versa. The circled cross notation indicates that the field is going away from you (like seeing the fletched end of an arrow as it flies off away from you).<\/p>\n\n\n\n<p>Using the right hand rule we can determine the direction of the force Peter exerts on Petronella, and vice versa:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"493\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Peter-and-Petronella-Attraction.png\" alt=\"\" class=\"wp-image-5762\" srcset=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Peter-and-Petronella-Attraction.png 1024w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Peter-and-Petronella-Attraction-600x289.png 600w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Peter-and-Petronella-Attraction-768x370.png 768w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Peter-and-Petronella-Attraction-900x433.png 900w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Peter and Petronella force interaction<\/figcaption><\/figure><\/div>\n\n\n\n<p>They attract, the force arrows point towards each other. As you\u2019d expect, they\u2019re both walking in the same direction, they must like each other \ud83d\ude42<\/p>\n\n\n\n<p>If they are travelling in opposite directions, the force arrows point away from each other, they would repel.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">However\u2026<\/h2>\n\n\n\n<p>Peter and Petronella not only generate a magnetic field due to them moving, they also generate an electric field due to them having a net +ve charge, and like charges repel:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1018\" height=\"421\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Peter-and-Petronella-E-and-B-forces.png\" alt=\"\" class=\"wp-image-5754\" srcset=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Peter-and-Petronella-E-and-B-forces.png 1018w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Peter-and-Petronella-E-and-B-forces-600x248.png 600w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Peter-and-Petronella-E-and-B-forces-768x318.png 768w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Peter-and-Petronella-E-and-B-forces-900x372.png 900w\" sizes=\"auto, (max-width: 1018px) 100vw, 1018px\" \/><figcaption>Peter and Petronella&#8217;s magnetic and electric forces<\/figcaption><\/figure><\/div>\n\n\n\n<p>The repelling force due to their electric fields is just a function of their charge. The attractive force due to their magnetic fields is due to both their charge and their velocity. Only when the magnitude of that velocity is the speed of light do those 2 forces balance and the proton (beams) remain parallel.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conducting Wires are Charge Neutral<\/h2>\n\n\n\n<p>Consider a copper wire just sitting there, no current flowing through it. It is charge neutral in that the number of electrons balance the number of protons. It does not have a net charge. It does however have \u2018free\u2019 electrons. Connect that wire to a battery and those free electrons start to flow as we covered in <a href=\"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/2021\/03\/12\/demystifying-electromagnetics-part-2-wires\/\" target=\"_blank\" rel=\"noreferrer noopener\">Part 2<\/a>.<\/p>\n\n\n\n<p>Even when those electrons are flowing the wire still has a neutral charge, there is still not an excess (or deficit) of electrons. For every electron that leaves the wire at its battery terminal, another one joins from the other terminal.<\/p>\n\n\n\n<p>So, due to the movement of charge there is a magnetic field generated, but because there is no net charge, there is no electric field.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Going from Beams to Conducting Wires<\/h2>\n\n\n\n<p>Instead of Peter wandering through space as a beam, let\u2019s constrain him in a conducting wire. Let\u2019s also loop that wire so Peter just goes round and round and round as part of an electric current, I. Also best to consider Peter as one of the billions of electron holes rather than a moving proton as it\u2019s those electron holes that \u2018move\u2019 in the direction of the current, the protons remain bound to the atomic nucleus.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"424\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Straight-and-Looped-Wires-1024x424.png\" alt=\"\" class=\"wp-image-5755\" srcset=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Straight-and-Looped-Wires-1024x424.png 1024w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Straight-and-Looped-Wires-600x248.png 600w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Straight-and-Looped-Wires-768x318.png 768w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Straight-and-Looped-Wires-900x373.png 900w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Straight-and-Looped-Wires.png 1147w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Magnetic fields from a straight and looped wire<\/figcaption><\/figure><\/div>\n\n\n\n<p>As we saw with Peter and Petronella, the 2 wires that both have current flowing through them in the same direction will attract each other due to the magnetic component of the Lorentz force, even when they are looped:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Looped-wire-attract-or-repulse.png\" alt=\"\" class=\"wp-image-5756\" width=\"725\" height=\"279\"\/><figcaption>Looped wire: attract or repulse based on current flow directions<\/figcaption><\/figure><\/div>\n\n\n\n<p>A spiral of wire is akin to loots of loops of wire stacked on top of each other, massively increasing the strength of the resulting combined magnetic field. Superposition in action again.<\/p>\n\n\n\n<p>The attraction is just the force being applied to all the charges and those charges, constrained as they are within the solid conductor, \u2018drag\u2019 that conductor along with them.<\/p>\n\n\n\n<p>The magnetic field generated by a single loop, or spiral, looks suspiciously similar to that generated by a permanent magnet. But magnets don\u2019t have current in them, right?<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a Permanent Magnet?<\/h2>\n\n\n\n<p><strong>Answer: It\u2019s kind of like a conducting loop<\/strong><\/p>\n\n\n\n<p>Not a very good answer, sorry. Let\u2019s come back to this question a bit later, see if the answer (as vague as it was) will make any more sense.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Do Atoms Generate a Net Magnetic Field?<\/h2>\n\n\n\n<p><strong>Answer: Some of them do<\/strong><\/p>\n\n\n\n<p>An atom consists of a nucleus with electrons spinning around it (is one way of conceptualising them). As we\u2019ve seen with the conducting wire loop that generates a magnetic field, same is true for atomic electrons:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"454\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Current-Loop-Magnetic-Field.png\" alt=\"\" class=\"wp-image-5758\"\/><figcaption>Magnetic field from a current loop<\/figcaption><\/figure><\/div>\n\n\n\n<p><em>Note that the right hand rule is formulated for the flow of +ve charge, that\u2019s the notation for current flow direction. As we\u2019re now talking about a spinning electron, a \u2013ve charge, the right hand rule is reversed, thus the contradiction between the direction of the electron spin (left) and the direction of the current flow in the curled fingers (right).<\/em><\/p>\n\n\n\n<p>For most elements, these electrons come in pairs, each spinning in a different direction so as to cancel out the net magnetic field:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"671\" height=\"311\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Paired-Electrons-Cancel-Magnetic-FieldsPNG.png\" alt=\"\" class=\"wp-image-5760\" srcset=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Paired-Electrons-Cancel-Magnetic-FieldsPNG.png 671w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Paired-Electrons-Cancel-Magnetic-FieldsPNG-600x278.png 600w\" sizes=\"auto, (max-width: 671px) 100vw, 671px\" \/><figcaption>Paired electrons cancel the net magnetic field<\/figcaption><\/figure><\/div>\n\n\n\n<p>Some elements have an unpaired outer electron, the common ones being Iron, Nickel and Cobalt, the so-called ferromagnetic materials. Each individual atom therefore creates its own mini magnetic field. When the atoms are oriented randomly, these fields will again cancel each other out:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"578\" height=\"464\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Random-Electron-Spin.png\" alt=\"\" class=\"wp-image-5761\"\/><figcaption>Random unpaired electron spin and resulting magnetic fields<\/figcaption><\/figure><\/div>\n\n\n\n<p>If all the atoms are all aligned, their individual magnetic fields combine, superimposing to create a strong net magnetic field. The material then becomes magnetic:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"491\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Aligned-atoms-in-a-magnet.png\" alt=\"\" class=\"wp-image-5765\" srcset=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Aligned-atoms-in-a-magnet.png 708w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Aligned-atoms-in-a-magnet-600x416.png 600w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><figcaption>Aligned atoms with unpaired outer electrons result in a magnet<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">How are Permanent Magnets Made?<\/h2>\n\n\n\n<p><strong>Answer: Hit them with a hammer<\/strong><\/p>\n\n\n\n<p>I\u2019m not being facetious, this is partly true. When a magnetic material is placed in a magnetic field, it can itself become magnetised. This external magnetic field aligns all the atoms causing the material itself to become magnetised, either permanently or until the material is removed from that magnetic field. Hitting it with a hammer whilst in a magnetic field, even stroking the material over the surface of another magnet, will align the atoms and create the magnet.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a Permanent Magnet?<\/h2>\n\n\n\n<p><strong>Answer: It\u2019s kind of like a conducting loop<\/strong><\/p>\n\n\n\n<p>Let\u2019s try this one again. Imagine we could see all the aligned atoms in a bar magnet, looking at the south pole so that the magnetic field was going away from us into the page. I\u2019ve simplified things just to show the unpaired outer electron spin:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"299\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Net-current-loop-in-a-magnet-1024x299.png\" alt=\"\" class=\"wp-image-5766\" srcset=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Net-current-loop-in-a-magnet-1024x299.png 1024w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Net-current-loop-in-a-magnet-600x175.png 600w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Net-current-loop-in-a-magnet-768x224.png 768w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Net-current-loop-in-a-magnet-900x263.png 900w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Net-current-loop-in-a-magnet.png 1208w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Net current loop within a magnet<\/figcaption><\/figure><\/div>\n\n\n\n<p>The electrons within the material away from the periphery, due to their spin direction being opposing where they abut, cancel each other out in terms of the net charge flow. What\u2019s left is an effective current flow around the periphery of the material that is analogous to a conducting wire loop. That is why the resulting magnetic field from a permanent magnet is arguably identical to one from an equivalent conducting loop of wire.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why do Magnets Attract or Repel?<\/h2>\n\n\n\n<p>Considering a magnet is in effect a conducting wire loop and we\u2019ve seen how, due to the Lorentz force, wire loops can either attract or repel each other, the question is already answered! The charges contained in each magnet, or magnetic material, are forced together or apart. As the charges cannot escape the material, the entire solid is dragged along instead.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Anecjoke<\/h2>\n\n\n\n<p>An anecdote this time. Ships tend to have a lot of ferrous material in them, be it the hull itself or the engine, rivets etc. These parts may themselves be magnetised either during their construction or, when the ship sails in a single direction for a length of time, by the earth&#8217;s magnetic field.<\/p>\n\n\n\n<p>Despite advances in satellite GPS navigation, it is still a legal requirement that a ship has a magnetic compass installed. The compass will align itself with any magnetic field it finds itself in. Whereas the intention of the compass is to align with earth&#8217;s magnetic field, it will be affected by the ship&#8217;s own field.<\/p>\n\n\n\n<p>To compensate for the local effect of the ship&#8217;s magnetic field, the binnacle that houses the compass is fitted with soft iron components whose size and position can be calibrated so as to cancel out the ship&#8217;s field resulting in the compass giving a true indication of magnetic north. Such components may include the wonderfully named &#8216;Kelvin&#8217;s Balls&#8217; and &#8216;Flinders Bar&#8217;.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"473\" height=\"813\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Binnacle.png\" alt=\"\" class=\"wp-image-5767\" srcset=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Binnacle.png 473w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Binnacle-349x600.png 349w\" sizes=\"auto, (max-width: 473px) 100vw, 473px\" \/><figcaption>Ship&#8217;s binnacle housing the compass and magnetic correcting parts<\/figcaption><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Why do magnets attract or repel and what&#8217;s that got to do with conducting loops of wire? Peter and Petronella Proton help explain.<\/p>\n","protected":false},"author":2666,"featured_media":5743,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spanish_translation":"","french_translation":"","german_translation":"","italian_translation":"","polish_translation":"","japanese_translation":"","chinese_translation":"","footnotes":""},"categories":[242],"tags":[],"industry":[],"product":[],"coauthors":[542],"class_list":["post-5742","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips-tricks"],"featured_image_url":"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/56\/2021\/04\/Cover.png","_links":{"self":[{"href":"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/wp-json\/wp\/v2\/posts\/5742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/wp-json\/wp\/v2\/users\/2666"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/wp-json\/wp\/v2\/comments?post=5742"}],"version-history":[{"count":4,"href":"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/wp-json\/wp\/v2\/posts\/5742\/revisions"}],"predecessor-version":[{"id":5774,"href":"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/wp-json\/wp\/v2\/posts\/5742\/revisions\/5774"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/wp-json\/wp\/v2\/media\/5743"}],"wp:attachment":[{"href":"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/wp-json\/wp\/v2\/media?parent=5742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/wp-json\/wp\/v2\/categories?post=5742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/wp-json\/wp\/v2\/tags?post=5742"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/wp-json\/wp\/v2\/industry?post=5742"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/wp-json\/wp\/v2\/product?post=5742"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/simulating-the-real-world\/wp-json\/wp\/v2\/coauthors?post=5742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}