Two-Body Orbits JS Model Documents

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

Main Document

Two-Body Orbits JS Model 

written by Wolfgang Christian

The Two-Body Orbits JavaScript Model shows the motion of two objects (e.g., binary star or moon-planet system) interacting via Newton's law of universal gravitation.  It is designed to teach physics, Earth science, and environmental science topics by showing the spatial path of objects around their common center of mass (barycenter). Default units are chosen for Earth obit about our Sun so that the distance unit is one astronomical unit and the time unit is one year.

The Two-Body Orbits JS Model was developed using the Easy Java Simulations (EJS) version 5.  Although EJS 5 is a Java program, it can create stand alone JavaScript programs that run in almost any PC or tablet browser.

Published September 4, 2013
Last Modified February 1, 2021

This file has previous versions.

Source Code Documents

Two-Body Orbits JS Source Code 

This source code zip archive contains an XML representation of The Two-Body Orbits JS 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 February 1, 2021

This file has previous versions.