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.

Computer Program Detail Page

Item Picture
Pirate Ship JS Model
written by Michael R. Gallis
The Pirate Ship JavaScript Model is a JavaScript implementation of the Java version of the same model.  These simulations were inspired by the Pirate Ride at Hershey Park. The "ship" part of the ride has a center of mass that lies 14 m from the pivot point (approximately the center of the boat). The ship swings freely from the pivot, and is driven by a roller built into the floor directly below the ship. The operator presses either the clockwise torque button or the counter clockwise torque button to change the motion of the ship. Because the drive can only push the ship when it is in contact, the drive is only available when the ship is within 30ยบ of its lowest position. The drive buttons are grey when no drive is available (simulation is paused or the ship does not contact the drive roller), the turn white when the drive is available. When drive button is pressed, it turns green and a constant torque is exerted on the ship until the button is released or until the ship moves out of contact with the drive roller. Note that torque can not be applied if the simulation is paused or has not been started.

The Pirate Ship JavaScript Model was developed using the Easy Java Simulations (EjsS) version 5.  It is distributed as a ready-to-run html page and requires only a browser with JavaScript support.
1 source code document is available
Subjects Levels Resource Types
Classical Mechanics
- General
- Motion in One Dimension
- Work and Energy
= Conservation of Energy
General Physics
- Computational Physics
Oscillations & Waves
- Oscillations
= Driven Mechanical Resonance
= Pendula
= Physical Pendula
- Lower Undergraduate
- Middle School
- High School
- Instructional Material
= Interactive Simulation
= Simulation
Intended Users Formats Ratings
- Learners
- Educators
- application/javascript
- text/html
  • Currently 0.0/5

Want to rate this material?
Login here!

Access Rights:
Free access
This material is released under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 license.
Rights Holder:
Michael Gallis
amusement park
Record Cloner:
Metadata instance created April 22, 2014 by Wolfgang Christian
Record Updated:
July 13, 2023 by Bruce Mason
Other Collections:

ComPADRE is beta testing Citation Styles!

Record Link
AIP Format
M. Gallis, Computer Program PIRATE SHIP JS MODEL (2014), WWW Document, (https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13244&DocID=3777).
M. Gallis, Computer Program PIRATE SHIP JS MODEL (2014), <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13244&DocID=3777>.
APA Format
Gallis, M. (2014). Pirate Ship JS Model [Computer software]. Retrieved July 18, 2024, from https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13244&DocID=3777
Chicago Format
Gallis, Michael. "Pirate Ship JS Model." https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13244&DocID=3777 (accessed 18 July 2024).
MLA Format
Gallis, Michael. Pirate Ship JS Model. Computer software. 2014. 18 July 2024 <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13244&DocID=3777>.
BibTeX Export Format
@misc{ Author = "Michael Gallis", Title = {Pirate Ship JS Model}, Year = {2014} }
Refer Export Format

%A Michael Gallis %T Pirate Ship JS Model %D 2014 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13244&DocID=3777 %O application/javascript

EndNote Export Format

%0 Computer Program %A Gallis, Michael %D 2014 %T Pirate Ship JS Model %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13244&DocID=3777

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 Style.org: 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 3 shared folders.

You must login to access shared folders.

Pirate Ship JS Model:

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 Pirate Ship 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

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