-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
189 lines (133 loc) · 5.05 KB
/
demo.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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
<script src="./jsmol/JSmol.min.nojq.js"></script>
<script src="./demo.js"></script>
<script src="./flot/jquery.flot.min.js"></script>
<title>Monte Carlo Demo</title>
<meta name="description" content="">
<meta name="author" content="Maxime Usdin">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Replace favicon.ico & apple-titleouch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="stylesheet" href="./mof.css">
<link rel="stylesheet" href="./CSS/jquery-ui.theme.css">
<link rel="stylesheet" href="./CSS/jquery-ui.min.css">
<link rel="stylesheet" href="./CSS/jquery-ui.structure.min.css">
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="demoPage">
<div id="viewercontainer2">
<span id="viewer2" style="z-index:1;"> </span>
<div class="pageTitle"><b><ul class="menu">
<li><a href="./index.html" ><span>Home</span></a></li>
<li><a href="./mofPage.html"><span>MOF Explorer</span></a></li>
<li><a href="./demo.html" class="active"><span>Demo Module</span></a></li>
<li><a href="./maker.html"><span>MOF Maker</span></a></li>
<li><a href="./about.html"><span>About</span></a></li>
</ul>
Sphere in a Box Demo</b></div>
<span id="leftPanel">
<div id="accordion1">
<!--
<span id="boxSizePanel">
-->
<h3>About</h3>
<div>
<p id="aboutDemoText">
This tool simulates a Krypton atom in a cube. The atom has a diameter of 3.6892 Å. The size of the containing box may be changed using the options below.
The void fraction of the cell and the volume of the sphere may be calculated with a Monte Carlo simulation using the panel on the right. Please note that using a large probe diameter
will provide inaccuarate results. The probe diameter should be no larger than (box size - 4) Å. It is recommended to use at least 1000 probes to ensure accurate results.
</p>
</div>
<h3 >Box Size</h3>
<div>
<span id="boxTitle"> Select a Size </span>
<br />
<input id="radio5" type="radio" name="boxSize" value="5">5A
<input id="radio10" type="radio" name="boxSize" value="10">10A
<input id="radio15" type="radio" name="boxSize" value="15">15A
</div>
<!--
</span>
-->
<!--
<span id="demoAboutPanel">
-->
<h3>Show Supercell</h3>
<div id="superCellDiv">
<input type="radio" name="x" value="1">x<sup>1</sup>
<input type="radio" name="x" value="2">x<sup>2</sup>
<input type="radio" name="x" value="3">x<sup>3</sup>
<div>
<input type="radio" name="y" value="1">y<sup>1</sup>
<input type="radio" name="y" value="2">y<sup>2</sup>
<input type="radio" name="y" value="3">y<sup>3</sup>
</div>
<div>
<input type="radio" name="z" value="1">z<sup>1</sup>
<input type="radio" name="z" value="2">z<sup>2</sup>
<input type="radio" name="z" value="3">z<sup>3</sup>
</div>
<br />
<span class="btn" id="submitSupercell">Apply Supercell</span>
<br />
<br />
</div> <!-- end superCellDiv -->
</div>
<!--
</span> <!-- end demoAboutPanel -->
</span> <!-- end leftPanelDemo -->
<!-- RIGHT PANEL -->
<span id="rightPanel">
<span id="physicalPropsPanel">
<!-- Accordion start -->
<div id="accordion2">
<h3>Void Fraction</h3>
<div class="panelContentDiv">
<div>Calculate the void fraction with
<br />
<input type="text" name="count" class="probeCount" id="probeCountVF"> Probes
<br> of diameter <br />
<input type="text" name="size" class="probeSize" id="probeSizeVF"> Angstroms
</div>
<br />
<span class="btn run" id="VF">Submit</span>
<br />
<br />
</div>
<h3>Volume</h3>
<div class="panelContentDiv">
<div>Calculate the volume with
<br />
<input type="text" name="count" class="probeCount" id="probeCountVOL"> Probes
<br> of diameter <br />
<input type="text" name="size" class="probeSize" id="probeSizeVOL"> Angstroms
</div>
<br />
<span class="btn run" id="VOL">Submit</span>
<br />
<br />
</div>
</div> <!-- end accordion -->
</span> <!-- end physicalPropsPanel -->
<span id="outputPanel">
<h1 id="outputTitle">Output</h1>
<div class="meter">
<span id="progressBar" style="width: 0%"></span>
</div>
<span id="addmeVF"></span> <span id="addmeVOL"></span>
</span> <!-- end output panel span -->
</span> <!-- end right panel span -->
</div>
</div>
</body>
</html>