-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
165 lines (133 loc) · 7.26 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>DEM Calibration</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="custom-styles.css">
<style>
body, h1,h2,h3,h4,h5,h6 {font-family: "Montserrat", sans-serif}
.w3-row-padding img {margin-bottom: 12px}
/* Set the width of the sidebar to 120px */
/* .w3-sidebar {width: 120px;background: #222;} */
/* Add a left margin to the "page content" that matches the width of the sidebar (120px) */
/* #main {margin-left: 120px} */
/* Remove margins from "page content" on small screens */
@media only screen and (max-width: 600px) {#main {margin-left: 0}}
</style>
</head>
<body class="w3-black">
<!-- Page Content -->
<div class="w3-padding-large" id="main">
<!-- Header/Home -->
<header class="w3-container w3-padding-32 w3-center w3-black" id="home">
<h1 class="w3-huge">Interactive DEM Calibration using a GranuTools GranuDrum Digital Twin</h1>
</header>
<!-- About Section -->
<div class="w3-content w3-justify w3-text-grey w3-padding-64" id="about">
<img id="gd_image" src="gd_10rpm_images/gd_1_0_0_0_0.jpg" alt="gd" class="w3-image" width="45%" height="45%">
<img id="gd_experiment" src="gd_50rpm_images/gd_50rpm_experimental.jpg" alt="gd" class="w3-image" width="45%" height="45%">
<!-- Sliders -->
<div class="w3-black">
<div class="range w3-container">
<input type="range" id="RPMRange" oninput="RPMValue.innerText = `RPM: ${RPMValues[this.value]}`; update_image();">
<span id="RPMValue">RPM: </span>
<div class="sliderticks" id="RPMTicks"></div>
</div>
<div class="range w3-container">
<input type="range" id="PSDRange" min="1" max="2" value="1" oninput="PSDValue.innerText = `PSD: ${PSDValues[this.value]}`; update_image();">
<span id="PSDValue">PSD: </span>
<div class="sliderticks" id="PSDTicks"></div>
</div>
<div class="range w3-container">
<input type="range" id="RestitutionRange" oninput="RestitutionValue.innerText = `Restitution: ${RestitutionValues[this.value]}`; update_image();">
<span id="RestitutionValue">Restitution: </span>
<div class="sliderticks" id="RestitutionTicks"></div>
</div>
<div class="range w3-container">
<input type="range" id="SlidingRange" oninput="SlidingValue.innerText = `Sliding: ${SlidingValues[this.value]}`; update_image();">
<span id="SlidingValue">Sliding: </span>
<div class="sliderticks" id="SlidingTicks"></div>
</div>
<div class="range w3-container">
<input type="range" id="RollingRange" oninput="RollingValue.innerText = `Rolling: ${RollingValues[this.value]}`; update_image();">
<span id="RollingValue">Rolling: </span>
<div class="sliderticks" id="RollingTicks"></div>
</div>
<div class="range w3-container">
<input type="range" id="CohesionRange" oninput="CohesionValue.innerText = `Cohesion: ${CohesionValues[this.value]}`; update_image();">
<span id="CohesionValue">Cohesion: </span>
<div class="sliderticks" id="CohesionTicks"></div>
</div>
</div>
</div>
<script type="text/javascript">
function update_image() {
psd = document.getElementById("PSDRange").value;
restitution = document.getElementById("RestitutionRange").value;
sliding = document.getElementById("SlidingRange").value;
rolling = document.getElementById("RollingRange").value;
cohesion = document.getElementById("CohesionRange").value;
rpm = RPMValues[document.getElementById("RPMRange").value];
document.getElementById("gd_image").src = `gd_${rpm}rpm_images/gd_${psd}_${restitution}_${sliding}_${rolling}_${cohesion}.jpg`;
}
RPMValues = ["10", "30", "50"];
document.getElementById("RPMRange").min = 0;
document.getElementById("RPMRange").max = RPMValues.length - 1;
document.getElementById("RPMRange").value = 0;
document.getElementById("RPMRange").dispatchEvent(new Event('input'));
for (let i = 0; i < RPMValues.length; i++) {
document.getElementById("RPMTicks").appendChild(document.createElement("p"));
}
PSDValues = ["0.7 mm", "1.1 mm", "1.5 mm"];
document.getElementById("PSDRange").dispatchEvent(new Event('input'));
for (let i = 0; i < PSDValues.length - 1; i++) {
document.getElementById("PSDTicks").appendChild(document.createElement("p"));
}
RestitutionValues = [0.1, 0.5, 0.9, 0.99];
document.getElementById("RestitutionRange").min = 0;
document.getElementById("RestitutionRange").max = RestitutionValues.length - 1;
document.getElementById("RestitutionRange").value = 0;
document.getElementById("RestitutionRange").dispatchEvent(new Event('input'));
for (let i = 0; i < RestitutionValues.length; i++) {
document.getElementById("RestitutionTicks").appendChild(document.createElement("p"));
}
SlidingValues = [0.15, 0.2, 0.3, 0.5, 0.8, 1.0];
document.getElementById("SlidingRange").min = 0;
document.getElementById("SlidingRange").max = SlidingValues.length - 1;
document.getElementById("SlidingRange").value = 0;
document.getElementById("SlidingRange").dispatchEvent(new Event('input'));
for (let i = 0; i < SlidingValues.length; i++) {
document.getElementById("SlidingTicks").appendChild(document.createElement("p"));
}
RollingValues = [0.0, 0.01, 0.05, 0.1, 0.2, 0.4, 0.7];
document.getElementById("RollingRange").min = 0;
document.getElementById("RollingRange").max = RollingValues.length - 1;
document.getElementById("RollingRange").value = 0;
document.getElementById("RollingRange").dispatchEvent(new Event('input'));
for (let i = 0; i < RollingValues.length; i++) {
document.getElementById("RollingTicks").appendChild(document.createElement("p"));
}
CohesionValues = [0, 10000, 20000, 30000, 40000, 50000, 70000];
document.getElementById("CohesionRange").min = 0;
document.getElementById("CohesionRange").max = CohesionValues.length - 1;
document.getElementById("CohesionRange").value = 0;
document.getElementById("CohesionRange").dispatchEvent(new Event('input'));
for (let i = 0; i < CohesionValues.length; i++) {
document.getElementById("CohesionTicks").appendChild(document.createElement("p"));
}
</script>
<!-- Footer -->
<footer class="w3-content w3-padding-64 w3-text-grey w3-xlarge">
<a href="https://github.com/uob-positron-imaging-centre/DigitalTwins" target="_blank"><i class="fa fa-github w3-hover-opacity"></i></a>
<p class="w3-medium">Webpage made by Andrei Leonard Nicusan in 2023. Simulations were run by Ben Jenkins on the University of Birmingham BlueBEAR HPC in partnership with Granutools Belgium. The GranuDrum digital twin was designed by Dominik Werner. The GranuDrum is a trademark of Granutools Belgium.</p>
<!--<p class="w3-medium">Powered by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank" class="w3-hover-text-green">w3.css</a></p>-->
<!-- End footer -->
</footer>
<!-- END PAGE CONTENT -->
</div>
</body>
</html>