Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
6aacb7f
Box on a Ramp
ryancan Aug 8, 2016
94d4380
Box on a Ramp Sketch
ryancan Aug 8, 2016
7154427
Create sketch.js
ryancan Aug 23, 2016
8510a5b
Create index.html
ryancan Aug 23, 2016
2ccc210
Delete rampIndex.html
ryancan Aug 23, 2016
9fd4c39
Delete rampSketch.js
ryancan Aug 23, 2016
1689def
Create index.html
ryancan Aug 23, 2016
517f8cb
Update index.html
ryancan Aug 23, 2016
1ab786d
Create sketch.js
ryancan Aug 23, 2016
fb453a3
Delete index.html
ryancan Aug 23, 2016
091e34b
Delete sketch.js
ryancan Aug 23, 2016
3e35ae1
Update README.md
ryancan Aug 23, 2016
46f7565
Update sketch.js
ryancan Sep 6, 2016
fa131a8
Update sketch.js
ryancan Sep 6, 2016
f5a9de4
Create index.html
ryancan Sep 6, 2016
b9f3f08
Update index.html
ryancan Sep 6, 2016
7f87ba7
Update index.html
ryancan Sep 6, 2016
bd8c437
Update index.html
ryancan Sep 6, 2016
26bd51f
Update index.html
ryancan Sep 6, 2016
07aec56
Update index.html
ryancan Sep 6, 2016
277d7ac
Create science.js
ryancan Sep 6, 2016
15356e4
Update sketch.js
ryancan Sep 6, 2016
9c65b8a
Create p5.dom.js
ryancan Sep 6, 2016
4df18bc
Create p5.js
ryancan Sep 6, 2016
5c7d635
Create p5.min.js
ryancan Sep 6, 2016
784f9a5
Update sketch.js
ryancan Sep 6, 2016
c683786
Update index.html
ryancan Sep 6, 2016
cbb940e
Create index.html
ryancan Sep 8, 2016
c9dcf61
Create sketch.js
ryancan Sep 8, 2016
026273d
Update README.md
ryancan Sep 8, 2016
9a1c680
Create sketch.js
ryancan Sep 9, 2016
198f2df
Create index.html
ryancan Sep 9, 2016
de26aec
Update sketch.js
ryancan Sep 9, 2016
db4fe01
Update sketch.js
ryancan Sep 10, 2016
94cd398
Update index.html
ryancan Sep 10, 2016
f9dcf06
Update index.html
ryancan Sep 10, 2016
8f72f0e
Update science.js
ryancan Sep 10, 2016
85fa275
Update README.md
ryancan Sep 10, 2016
9fc8798
Update sketch.js
ryancan Sep 10, 2016
a0a44e6
Update sketch.js
ryancan Sep 10, 2016
e0cf5e4
Update sketch.js
ryancan Sep 10, 2016
08228ab
fixed sliding issue
ryancan Sep 13, 2016
c6690ba
fixed force vector
ryancan Sep 14, 2016
58bbc21
Update sketch.js
ryancan Sep 19, 2016
c05d0cc
Create index.html
ryancan Sep 20, 2016
4742420
Create sketch.js
ryancan Sep 20, 2016
48437f8
Update README.md
ryancan Sep 20, 2016
3ee56aa
Update sketch.js
ryancan Sep 20, 2016
7a11dfd
Update index.html
ryancan Sep 20, 2016
a499cf6
Update science.js
ryancan Sep 20, 2016
1793c03
Update sketch.js
ryancan Sep 23, 2016
f1e7129
added bouncing and comments
ryancan Oct 15, 2016
76d747a
changed labels/math
ryancan Oct 19, 2016
48b7e22
N-cm to N-m
ryancan Oct 19, 2016
8789ab9
Added angle phi visual
ryancan Oct 19, 2016
e914c28
Updated Angle Phi
ryancan Oct 19, 2016
b564d02
Fixed Torque calculation
ryancan Oct 19, 2016
9f898c7
Fixed Mobile Issue of Updating Force Vector
ryancan Oct 22, 2016
8f356a5
Added FBD, mu Slider
ryancan Oct 27, 2016
8c4e47b
Updated Instructions
ryancan Oct 27, 2016
967bc93
Fixed slider locations
ryancan Oct 27, 2016
ca6c26a
Create index2.html
ryancan Oct 27, 2016
07a7820
Create sketch2.js
ryancan Oct 27, 2016
2fc9346
Added Box on Ramp #2
ryancan Oct 28, 2016
78bd81b
Update sketch2.js
ryancan Oct 28, 2016
23b757a
Update index.html
ryancan Oct 28, 2016
77a39dd
FIxed Motion, Added Vectors
ryancan Nov 2, 2016
f22b627
Added projectile-vs-freefall
ryancan Nov 2, 2016
add5993
Create index.html
ryancan Nov 7, 2016
8932865
Create sketch.js
ryancan Nov 7, 2016
e21a6e6
Added wheel on ramp
ryancan Nov 7, 2016
e8dfca4
Update index.html
ryancan May 2, 2017
72ad4fe
Create zestrove
ryancan Mar 20, 2019
3e9bf2e
Update index.html
ryancan Mar 20, 2019
1208eae
Rename zestrove to zestrove.html
ryancan Mar 20, 2019
0582a49
Update index.html
ryancan Mar 20, 2019
c4dc1f7
Update zestrove.html
ryancan Mar 20, 2019
06b1259
Update zestrove.html
ryancan Mar 20, 2019
a1b421c
Update zestrove.html
ryancan Mar 20, 2019
f81a4c9
Update zestrove.html
ryancan Mar 20, 2019
6d22376
Update zestrove.html
ryancan Mar 21, 2019
de695b0
Create zestrove_gallery.html
ryancan Mar 21, 2019
6907a96
Update zestrove.html
ryancan Mar 21, 2019
ca3f3ee
Update zestrove_gallery.html
ryancan Mar 21, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
# terminal_velocity
A sim in development to simulate terminal velocity with the added bonus of interactive sliders to change mass of falling object and density of fluid.

#Box on a Ramp FBD
A sim in development to demonstrate how a box behaves on an adjustable ramp. The goal is to have the Box FBD displayed and responsive to changes in the ramp angle. The box will also begin to slide down the ramp when gravitational forces overcome fricitonal forces.

#Projectile-vs-Freefall
A simple sim in developmentment to convey the concept that a horizontal velocity will not affect the the rate at which a body falls. Currently problems with acceleration within science lib and/or sketch.

#Torque on Wrench
A sim demonstrating how length of moment arm and magnitude and direction of applied force affect the produced torque. User uses a slider to change moment arm length and controls applied force my dragging force vector arrow tip.

#Projectile
Sim demonstrating projectile motion. User drags vector to set initial velocity and presses button to initiate. Still in first stages of development. Scaling of arrow object magnitude and mover object's (projectile's) velocity needs tweaking. Need to add and scale in (gravitational) acceleration vector.
83 changes: 28 additions & 55 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,55 +1,28 @@
<!DOCTYPE html>
<html>


<head>
<title>Terminal Velocity</title>
<style>
body {
font-family:Helvetica, Arial, Sans-serif;
}
canvas {



}
</style>
<!-- load the p5 libraries we need. At first, we'll try from a CDN, but if for some reason that doesn't work, then we can load it from our local copy. For most sketches, all we'll need is the p5 and p5.dom libs -->

<!-- get p5.js from cdn -->
<script language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/p5.min.js"></script>
<!-- uh oh. Can't find CDN?, then load from local. -->
<script>
window.p5 || document.write('<script src="../../../js/p5.js"><\/script><script src="../../../js/addons/p5.dom.min.js"><\/script>');
</script>

<!-- get p5.dom.js from cdn -->
<script language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/addons/p5.dom.min.js"></script>

<!-- let's get our sketch! -->
<script language="javascript" src="../lib/science.js"></script>

<script language="javascript" src="sketch.js"></script>

<!-- this line removes any default padding and style. you might only need one of these values set. -->
<style> body {padding: 0; margin: 0;} </style>


</head>

<body>
<h1>Terminal Velocity</h1>
<p>
Instructions: The particle freefalls from rest and eventually reaches terminal velocity.
</p>
<p>
Red arrow is weight vector.
Blue arrow is drag force vector.
Green arrow is velocity vector.
Purple arrow is net force vector.
</p>
<div id="sketch-holder" style="position: relative;">
<!-- Our sketch will go here! -->
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Under Development Sims</title>
</head>
<body>
<h1>Sims currently being developed:</h1>
<p>Coding in JavaScript for educational purposes<p>

<p><a href='https://ryancan.github.io/under-development/rampFBD/index.html '>Box on a Ramp: </a></p>

<p><a href='https://ryancan.github.io/under-development/rampFBD/index2.html '>Box on a Ramp #2 (with FBD object): </a></p>

<p><a href='https://ryancan.github.io/under-development/wheel-on-ramp/index.html '>Wheel on a Ramp: </a></p>

<p><a href='https://ryancan.github.io/under-development/terminal-velocity/index.html'>Terminal Velocity: </a></p>

<p><a href='https://ryancan.github.io/under-development/torque-on-wrench/index.html'>Torque on Wrench: </a></p>

<p><a href='https://ryancan.github.io/under-development/projectile/index.html'>Projectile: </a></p>

<p><a href='https://ryancan.github.io/under-development/projectile-vs-freefall/index.html'>Projectile vs Freefall: </a></p>

<p><a href='https://ryancan.github.io/under-development/zestrove.html'>Zestrove: </a></p>


</body>
</html>
Loading