The Magnetic Field JavaScript model shows the field of a bar magnet, a coil and Earth and has a movable compass that reports the magnetic field values. The modelĀ is built by placing a group of magnetic dipoles along the bar magnet. Why is it reasonable to model a magnet using multiple dipoles?
The Magnetic Field JavaScript model was developed using version 5 of the Easy Java Simulations (EJS 5) modeling tool. Although EJS is a Java program, EJS 5 creates stand-alone JavaScript programs that run in almost any browser.
Please note that this resource requires
at least version 1.5 of Java (JRE).
Magnetic Field Source Code
This source code zip archive contains an XML representation of the Magnetic Field JavaScript model. Unzip this archive in your Ejs workspace to compile and run this model using EJS 5. Although EJS is a Java program, EJS 5 creates a stand alone JavaScript program from this source code. download 211kb .zip
Last Modified: August 24, 2016
previous versions
W. Christian, Computer Program MAGNETIC FIELD JS MODEL, Version 1.0 (2016), WWW Document, (https://www.compadre.org/Repository/document/ServeFile.cfm?ID=14062&DocID=4459).
W. Christian, Computer Program MAGNETIC FIELD JS MODEL, Version 1.0 (2016), <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=14062&DocID=4459>.
Christian, W. (2016). Magnetic Field JS Model (Version 1.0) [Computer software]. Retrieved December 5, 2024, from https://www.compadre.org/Repository/document/ServeFile.cfm?ID=14062&DocID=4459
Christian, Wolfgang. "Magnetic Field JS Model." Version 1.0. https://www.compadre.org/Repository/document/ServeFile.cfm?ID=14062&DocID=4459 (accessed 5 December 2024).
%A Wolfgang Christian %T Magnetic Field JS Model %D August 20, 2016 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=14062&DocID=4459 %O 1.0 %O text/html
%0 Computer Program %A Christian, Wolfgang %D August 20, 2016 %T Magnetic Field JS Model %7 1.0 %8 August 20, 2016 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=14062&DocID=4459
Disclaimer: ComPADRE offers citation styles as a guide only. We cannot offer interpretations about citations as this is an automated procedure. Please refer to the style manuals in the Citation Source Information area for clarifications.