Education Prize Logo
Science SPORE Prize
November 2011

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

Simple Harmonic Oscillator JS Model Documents

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

Main Document

Simple Harmonic Oscillator JS Model 

written by Wolfgang Christian and Francisco Esquembre

The Simple Harmonic Oscillator JS Model displays the dynamics of a ball attached to an ideal spring.  The spring is initially stretched and the ball has zero initial velocity.  The initial position of the ball can be changed by click-dragging the ball when the simulation is paused.

The Simple Harmonic Oscillator JS Model was developed using the Easy Java/JavaScript Simulations (EjsS) version 5.  It is distributed as a ready-to-run html page and requires only a browser with JavaScript support.  This model runs on tablets.

Published January 1, 2014
Last Modified October 1, 2014

This file has previous versions.

Supplemental Documents (3)

Mass and Spring ePub 

A single model ePub containing the Mass and Spring JavaScript Model.

Last Modified June 3, 2014

Simple Harmonic Oscillator JS Model V2 

An alternate implementation of the Simple Harmonic Oscillator Model with a separate position vs. time graph.

Last Modified January 1, 2014

This file has previous versions.

Simple Harmonic Oscillator JS Model without Graph 

An alternate implementation of the Simple Harmonics Oscillator Model without any data graphs.

Last Modified October 22, 2015

This file has previous versions.

Source Code Documents (3)

Simple Harmonic Oscillator JS Source Code 

This source code zip archive contains an XML representation of the Simple Harmonic Oscillator JS Model.   Unzip this archive in your Ejs workspace to compile and run this model using EjsS 5.  Although EjsS is a Java program, EjsS 5 creates a stand alone JavaScript program from this source code.

Last Modified January 1, 2014

This file has previous versions.

Simple Harmonic Oscillator JS Model without Graph 

Source code for the Simple Harmonic Oscillator Model without any graphs.

Last Modified October 22, 2015

This file has previous versions.

Simple Harmonic Oscillator JS Model V2 

Source code for the Simple Harmonic Oscillator Model with a separate position vs. time graph.

Last Modified January 1, 2014

The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics