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.

Solar and Lunar Eclipse JS Model Documents

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

Main Document

Solar and Lunar Eclipse JS Model 

written by Wolfgang Christian, Todd Timberlake, and Mario Belloni

The Solar and Lunar Eclipse JavaScript Model simulates the occurrences of solar and lunar eclipses. Moon's orbital inclination of 5.145 degrees with respect to the ecliptic (the Earth-Sun orbital plane) is what is responsible for solar and lunar eclipses not occurring every month. In addition, the orbital plane of Moon precesses every 8.85 years, the so-called precession of the apsides. The inclination and the motion of Moon and Earth are depicted (the size of Sun, Earth, and Moon and the size of Moon's orbit are not shown to scale). The illuminated sides of Earth and Moon and the regions of possible eclipses (in yellow and green) are also depicted. In the Sky View, the motion of Sun and Moon across the sky (+/- 7 degrees from the ecliptic) are shown. Moon's phase is shown and solar and lunar eclipses can occur on the ecliptic when Earth, Sun, and Moon line up properly.  

The Solar and Lunar Eclipse JavaScript Model was developed using the Easy Java/JavaScript Simulations (EJS) modeling tool. Although EJS is a Java program, EJS v5 and above can be used to create stand-alone JavaScript programs that run in almost any browser.

Published May 13, 2017
Last Modified June 29, 2017

This file has previous versions.

Primary Documents

Solar and Lunar Eclipse Android App (beta) 

Solar and Lunar Eclipse model packaged as a stand-alone Android App. Requires Android 6 or above and fast processor for 3D WebGL.

Last Modified July 20, 2017

This file has previous versions.

Supplemental Documents

Moon Phases and Eclipses Worksheet 

A student worksheet for the Phases of the Moon and the Solar and Lunar Eclipses simulations.

Published May 20, 2017
Last Modified May 27, 2017

This file is included in the full-text index.

Source Code Documents

Solar and Lunar Eclipse Source Code 

JavaScript Easy Java Simulations source code.  Requires EJS.

Last Modified December 23, 2020

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