Detail Page

Item Picture
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.
1 source code document is available
Subjects Levels Resource Types
Classical Mechanics
- Gravity
= Kepler's Laws
= Orbits
= Universal Gravitation
- Motion in Two Dimensions
Mathematical Tools
- Differential Equations
- Lower Undergraduate
- Middle School
- High School
- Upper Undergraduate
- Instructional Material
= Interactive Simulation
Intended Users Formats Ratings
- Learners
- Educators
- text/html
- application/zip
- application/javascript
  • Currently 5.0/5

Rated 5.0 stars by 1 person

Want to rate this material?
Login here!

Access Rights:
Free access
This material is released under a Creative Commons Attribution-Noncommercial-No derivatives 3.0 license.
Rights Holder:
Wolfgang Christian
Record Cloner:
Metadata instance created September 4, 2013 by Wolfgang Christian
Record Updated:
May 8, 2017 by Wolfgang Christian
Last Update
when Cataloged:
September 4, 2013
Other Collections:

ComPADRE is beta testing Citation Styles!

Record Link
AIP Format
W. Christian, Computer Program TWO-BODY ORBITS JS MODEL, Version 1.0 (2013), WWW Document, (
W. Christian, Computer Program TWO-BODY ORBITS JS MODEL, Version 1.0 (2013), <>.
APA Format
Christian, W. (2013). Two-Body Orbits JS Model (Version 1.0) [Computer software]. Retrieved May 27, 2017, from
Chicago Format
Christian, Wolfgang. "Two-Body Orbits JS Model." Version 1.0. (accessed 27 May 2017).
MLA Format
Christian, Wolfgang. Two-Body Orbits JS Model. Vers. 1.0. Computer software. 2013. 27 May 2017 <>.
BibTeX Export Format
@misc{ Author = "Wolfgang Christian", Title = {Two-Body Orbits JS Model}, Month = {September}, Year = {2013} }
Refer Export Format

%A Wolfgang Christian
%T Two-Body Orbits JS Model
%D September 4, 2013
%O 1.0
%O text/html

EndNote Export Format

%0 Computer Program
%A Christian, Wolfgang
%D September 4, 2013
%T Two-Body Orbits JS Model
%7 1.0
%8 September 4, 2013

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.

Citation Source Information

The AIP Style presented is based on information from the AIP Style Manual.

The APA Style presented is based on information from APA Electronic References.

The Chicago Style presented is based on information from Examples of Chicago-Style Documentation.

The MLA Style presented is based on information from the MLA FAQ.

This resource is stored in 7 shared folders.

You must login to access shared folders.

Two-Body Orbits JS Model:

Is the Basis For EJSS Two Body Circular Orbits Model

Changes made by lookang include

added the invisible mass for which the binary system's motion are derived from.
added the velocities v1x, v1y and v2x v2y
added velocities checkbox
added units labels clearly showing units a.u. and year
added combo drop-down list for ease of use
added numerical values for sense making such as F1, F2, a1, a2, R1 and R2 v1 and v2
made forces a bit longer to see more clearly

relation by wee lookang
Is Based On Easy Java Simulations Modeling and Authoring Tool

Use the Easy Java Simulations Modeling and Authoring Tool to edit and to explore the source code for the Two-Body Orbits JS Model.

relation by Lyle Barbato

Know of another related resource? Login to relate this resource to it.
Save to my folders



Related Materials

Similar Materials