-
Notifications
You must be signed in to change notification settings - Fork 1
/
pendulum.html
75 lines (69 loc) · 3.16 KB
/
pendulum.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Double Pendulum Simulation - topaz1008</title>
<link rel="stylesheet" href="https://unpkg.com/@picocss/pico@1.5.9/css/pico.min.css">
<link rel="stylesheet" href="assets/style.css">
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WZCC6GJDJS"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-WZCC6GJDJS');
</script>
</head>
<body>
<header id="header" class="">
<h3>Double Pendulum</h3>
<details open>
<summary>About</summary>
<p>This demo shows how very small changes in initial conditions can make for a very different
behaviour of the system in a very short time; thus making it a chaotic system.</p>
<p>The demo starts with 2 double pendulums; one <i class="green">green</i> and one <i class="blue">blue</i>
using nearly the same initial conditions, one pendulum has one of its
starting angles changed by <span style="font-size: 25px;">ε</span> (default is 1/10,000) even
with that small of a change the different
pendulums will start to diverge after about 5-7 seconds.</p>
<p>You can manipulate all values in real time.</p>
</details>
<details>
<summary>More Info</summary>
<p>A demo used to develop and test NDSolve the numerical ODE solver used to integrate the equations of motion
for a double pendulum system in real-time</p>
<p> can be seen at <a href="https://topaz1008.github.io/double-pendulum/solver-test.html" target="_blank">this
link</a>.
</p>
<p>More information about the math and equations of motion can be found on <a
href="https://en.wikipedia.org/wiki/Double_pendulum" target="_blank">Wikipedia</a> and <a
href="https://scienceworld.wolfram.com/physics/DoublePendulum.html" target="_blank">Wolfram science
world</a>.</p>
</details>
<details>
<summary>Source Code</summary>
<p>Can be found on my <a href="https://github.com/topaz1008/double-pendulum" target="_blank">GitHub</a>.</p>
</details>
<details>
<summary>Credits</summary>
<p>This demo uses <a href="https://picocss.com/" target="_blank">Pico.css</a> library for styling and <a
href="https://github.com/georgealways/lil-gui" target="_blank">lil-gui</a> for the GUI.
</p>
</details>
</header>
<main id="main" class="t1008-grid"> <!-- t1008-grid -->
<div id="gui-container" class="controls">
</div>
<div id="canvas-container">
<section id="main-container" class="">
<!-- main canvas goes here -->
</section>
<section id="plot-container" class="">
<!-- plot canvas goes here -->
</section>
</div>
</main>
<script src="src/main.js" type="module"></script>
</body>
</html>