-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
173 lines (151 loc) · 8.7 KB
/
index.html
File metadata and controls
173 lines (151 loc) · 8.7 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!DOCTYPE html>
<html lang="en">
<head>
<title>Wavefunction Simulator</title>
<link href="https://fonts.googleapis.com" rel="preconnect">
<link crossorigin="" href="https://fonts.gstatic.com" rel="preconnect">
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<link href="main.css" rel="stylesheet">
<link href="/img/icon.ico" rel="icon" type="image/x-icon">
<meta charset="UTF-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta content="Miles Waugh" name="author">
<meta
content="quantum, wave, function, wavefunction, simulator, evolution, schrodinger, schroedinger, schrödinger, time-dependent, numeric, github, miles, waugh, canvas"
name="keywords">
</head>
<body onload="setup()">
<div id="mainbox">
<div id="title">
<h1 class="header reset-cursor">Wavefunction Simulator</h1>
</div>
<div class="flex-container flex-column flex-center">
<div class="flex-container flex-row flex-center" id="r1">
<div class="flex-container flex-column">
<div class="flex" id="canvas-container">
<canvas height="600" id="canvas" width="600"></canvas>
</div>
<div class="flex-child" id="canvas-xaxis">
<a href="https://github.com/piano-miles/Wavefunction-Simulator" id="src">View the code on
GitHub</a>
</div>
</div>
<div class="flex-child" id="parameters-outer">
<div class="flex-container flex-column" id="parameters-inner">
<div class="flex-child header parameters-div" id="parameters">
<h2 class="parameters-head reset-cursor" id="parameters-header">Parameters</h2>
</div>
<hr>
<div class="flex-child parameters-div" id="inputs">
<h3 class="parameters-head reset-cursor">Inputs</h3>
<div class="iblock">
<label class="label" id="Vlabel">V:</label>
<div class="tooltip">
<textarea class="input" id="V" name="V" title="V" type="text">x*x/2e2</textarea>
<div class="computation-tooltip" id="potential">
<p class="link">This is the <a
href="https://en.wikipedia.org/wiki/Potential_energy" rel="noopener"
target="_blank">potential</a>.</p>
</div>
</div>
</div>
<div class="iblock">
<label class="label reset-cursor">Substeps:</label>
<div class="tooltip">
<span class="input" contenteditable="" id="substeps" role="textbox"
title="substeps">80</span>
<div class="states-tooltip" id="substep-tip">
<p>The number of evolution gradations within a frame.</p>
<p>Normalization is performed every five steps.</p>
</div>
</div>
<p></p>
</div>
<pre class="parameters-text" id="subrec">(substep rec: )</pre>
<div class="center">
<button id="update">Update</button>
</div>
<div id="front">
<div class="iblock reset-cursor" id="checkdiv">
<input checked class="checkbox" id="paused" onchange="resolve(this);" title="paused"
type="checkbox"> <label class="label">Pause</label>
</div><button id="start" onclick="resolve(this)">
<p>To begin, uncheck this 'pause' box. Click this message to hide it.</p>
<p id="info">You may hover over various parameters for more elaboration on what they
mean.</p>
</button>
</div>
<div id="blurry"></div>
</div>
<hr>
<div class="flex-child parameters-div" id="outputs">
<div class="parameter-group">
<h3 class="parameters-head reset-cursor">States</h3>
<div class="tooltip">
<pre class="parameters-text" id="t">t = 0.000 zs</pre>
<div class="states-tooltip">
<p>The global time passed since initialization.</p>
<p>(zs = zeptoseconds)</p>
</div>
</div>
<div class="tooltip">
<pre class="parameters-text" id="xscl">width = 4.634 pm</pre>
<div class="states-tooltip">
<p>The width of the viewport window.</p>
<p>(pm = picometers)</p>
</div>
</div>
</div>
<hr>
<div class="parameter-group">
<h3 class="parameters-head reset-cursor">Computation Breakdown</h3>
<div class="tooltip">
<pre class="parameters-text" id="t1">Evolution (ms): </pre>
<div class="computation-tooltip">
<p>Time spent evolving and normalizing the wavefunction.</p>
<p>(1-second average per frame, in milliseconds)</p>
</div>
</div>
<div class="tooltip">
<pre class="parameters-text" id="t2">Render (ms): </pre>
<div class="computation-tooltip">
<p>Time spent rendering the components on the viewport.</p>
<p>(1-second average per frame, in milliseconds)</p>
</div>
</div>
<div class="tooltip">
<pre class="parameters-text" id="t3">Other (ms): </pre>
<div class="computation-tooltip">
<p>Time spent doing other stuff. (Obviously)</p>
<p>(1-second average per frame, in milliseconds)</p>
</div>
</div>
</div>
<hr>
<div class="parameter-group">
<h3 class="parameters-head reset-cursor">Other</h3>
<div class="tooltip">
<pre class="parameters-text" id="fps">FPS: </pre>
<div class="states-tooltip" id="FPS">
<p>Frames rendered per second.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="flex-child">
<div class="flex-container flex-column center" id="console">
<h2 class="reset-cursor">Console</h2>
<hr>
<pre contenteditable="" id="console-p">To begin, please uncheck the "pause" box.</pre>
</div>
</div>
</div>
</div>
<script src="index.js"></script>
<script src="resolve.js"></script>
</body>
</html>