APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Magnetic Field JS Model Documents

This material has 2 associated documents. Select a document title to view a document's information.

Main Document

Magnetic Field JS Model 

written by Wolfgang Christian

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.

Published August 20, 2016
Last Modified August 24, 2016

This file has previous versions.

Source Code Documents

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.

Last Modified August 24, 2016

This file has previous versions.

OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book