-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathising.html
83 lines (75 loc) · 4.87 KB
/
ising.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
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="ja">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="author" content="Satoshi Morita" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous" />
<!-- KaTeX -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"
integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
<!-- The loading of KaTeX is deferred to speed up page rendering -->
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js"
integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz"
crossorigin="anonymous"></script>
<!-- To automatically render math in text elements, include the auto-render extension: -->
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js"
integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous"
onload="renderMathInElement(document.body);"></script>
<!-- <script src="https://kit.fontawesome.com/ae5a8fc31f.js" crossorigin="anonymous"></script> -->
<script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>
<title>Monte Carlo simulation of the Ising model</title>
</head>
<body>
<canvas id="ising" class="fixed-top" style="z-index: -1; width: 100vw; height: 100vh;"></canvas>
<!-- <canvas id="ising" width="100%" height="100%" class="fixed-top"
style="background-color: #ccffff; position: fixed; top: 0px; left: 0px; z-index: -1;"></canvas> -->
<div class="container">
<div class="row">
<div class="col-12 col-md-10 col-lg-8 col-xl-6 py-3 text-white" style="background-color:rgba(0, 0, 0, 0.75);">
<h1 class="h4">Monte Carlo simulation of the Ising model</h1>
<div id="options" class="">
<label for="temperature">Temperature: T = <span id="temperature_text">2.27</span></label>
<input id="temperature" type="range" class="custom-range" min="0.5" max="4.0" step="0.01">
<label for="algorithm">Algorithm</label>
<select id="algorithm" class="custom-select custom-select-sm mb-3">
<option value="0">Heat-bath method</option>
<option value="1">Swendsen-Wang algorithm</option>
<option value="2">Wolff algorithm</option>
</select>
</div>
<div id="explanation" class="collapse text-justify">
<p>Each dot represents a microscopic magnetic moment, which is blue (white) when a magnetic moment is up (down). Sudden change occurs around the critical temperature \(T_c\simeq 2.27\).</p>
</div>
<div id="explanation-ja" class="collapse text-justify">
<p>各ドットはミクロな磁気モーメントに対応し, 磁気モーメントが上向きなら青色, 下向きなら白色で表示される.相転移温度 \(T_c\simeq 2.27\) 前後における急激な変化が面白い.</p>
</div>
<div class="text-right">
<!-- <button class="btn btn-light btn-sm" data-toggle="collapse" href="#options" role="button" aria-expanded="false">Options</button>
<button class="btn btn-light btn-sm" data-toggle="collapse" href="#explanation" role="button" aria-expanded="false">Explanation</button> -->
<!-- <button class="btn btn-light btn-sm" data-toggle="collapse" href="#options" role="button" aria-expanded="false">Options</button>
<button class="btn btn-light btn-sm" data-toggle="collapse" href="#explanation" role="button" aria-expanded="false">Explanation</button> -->
<a class="text-white" data-toggle="collapse" href="#explanation" role="button" aria-expanded="false">Explanation</a>
/
<a class="text-white" data-toggle="collapse" href="#explanation-ja" role="button" aria-expanded="false">解説</a>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
crossorigin="anonymous"></script>
<script src="ising.js"></script>
</body>
</html>