-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathparallel_slab_sandbox.html
More file actions
244 lines (215 loc) · 11 KB
/
Copy pathparallel_slab_sandbox.html
File metadata and controls
244 lines (215 loc) · 11 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="A minimal (setting with coupled )elastic solid--fluid interactions">
<!-- <meta name="description" content="A minimal (setting with coupled )elastic solid--fluid interactions"> -->
<meta name="keywords" content="CFD, fluids, elasticity, hyperelasticity, benchmark">
<meta name="author" content="Tejaswin Parthasarathy">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Elastohydrodynamic sandbox</title>
<link rel="stylesheet" href="parallel_slab_sandbox.css">
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG.js" defer></script>
<h1>
A hyperelastic oscillatory Couette system
<!-- Insights from a minimal elastohydrodynamic problem -->
<!-- A minimal setting with coupled elastic solid--fluid interactions -->
<!---Shear flow benchmark for testing elastic solid--fluid coupling algorithms--->
</h1>
<hr>
<p style="font-size: 16px; text-align: justify;">
The page provides an interactive sandbox for gaining intuition of flow--structure interaction in a minimal setup
where an oscillatory wall (top, at \( y / L = 1\)) drives a fluid (above the dashed line) which in turn affects an hyperelastic solid (below the dashed line). This setup, while minimal, is dynamically rich, which you can visualize by accessing a drop-down menu for choosing behavioral archetypes (such as seeing harmonics in the solid). If you want more fine-level control, you can utilize sliders to change dynamical parameters. To access the physical meaning of these parameters, please hover over the underlined text.
</p>
<hr>
<div style="padding:20px; margin-left:auto; margin-right:auto; text-align:center;">
<div class="row">
<div class="column">
<div class="row">
<button type="button" id="initButton" class="loading_button"><!--span id="loadingIndicator" class="inline-block></span--><span class="loading_button_text">Initialize engine</span></button>
<!---<input id="stepNumber" type="number" value="100" aria-label="number of steps" placeholder="number of steps" class="border border-black p-1 mr-2">--->
<!---<button id="reset" disabled class="border border-black p-1 opacity-50 cursor-not-allowed mr-2">Reset</button>--->
<!-- <div style="margin-left:auto; margin-right:auto; text-align:center;"> animate border border-black p-1 mr-2 bg-yellow-300-->
<!-- <input type="checkbox" id="enableAnimate"><span style="font-size:15px;">Animate?</span></checkbox> -->
<!-- </div>
-->
</div>
<div class="row">
<span style="font-size:14px;">Initialization takes 10s to load</span>
</div>
</div>
<div class="double_width_column">
<div class="row">
<button id="simulateButton" type="button" disabled class="loading_button">
<span class="loading_button_text">Simulate!</span>
</button>
</div>
<div class="row">
<span style="font-size:14px;">Only need to simulate once:)</span>
<!-- First simulation takes longer -->
</div>
</div>
<div class="column">
<div class="row">
<select disabled id="archetypeSelection" class="big_button">
<option value="h1">Harmonic 1</option>
<option value="h2">Harmonic 2</option>
<option value="h3">Harmonic 3</option>
<option value="h0">Harmonic 0</option>
<option value="tp">Typical</option>
<!-- <option value="test">Test</option> -->
</select>
</div>
<div class="row">
<span style="font-size:14px;">Choose any archetype</span>
</div>
</div>
<!-- <div class="double_width_column">
<div class="row">
<button id="start" disabled class="loading_button">Start</button>
<button id="pause" disabled class="loading_button">Pause</button>
<class = border border-black p-1 opacity-50 cursor-not-allowed mr-2
<button id="reset" disabled class="loading_button">Reset</button>
</div>
</div> -->
</div>
<div class="para">
<span class="para_inline">
<div class="tooltip"> \(\delta_f\) = <span class="tooltiptext"> Fluid boundary layer thickness </span> </div>
<span id="deltaFReadout"></span>
</span>
<span class="para_inline">
<div class="tooltip"> \(\delta_s\) = <span class="tooltiptext"> Solid boundary layer thickness </span> </div>
<span id="deltaSReadout"></span>
</span>
<span class="para_inline">
<div class="tooltip"> \(\lambda\) = <span class="tooltiptext"> Solid elastic wavelength </span> </div>
<span id="lambdaReadout"></span>
</span>
</div>
<div>
<div class="row" style="margin-top: -20px;">
<div class="column">
<div style="margin-left:-20px; margin-right:-20px; text-align:center; white-space: unset">
<div class="tooltip"> Reynolds number <span class="tooltiptext"> Ratio of inertial to viscous forces in the fluid zone </span> </div> <span> \( Re\) = </span> <span id="reynoldsReadout"></span>
<br>
<div class="row">
<span class ="column" style="font-size:12px;"> More Viscous </span>
<span class="column"><input type="range" min="1" max="100" step="1" value="10"
id="reynoldsSlider"></span class="column">
<span class ="column" style="font-size:12px;">Less Viscous</span>
</div>
<br>
<div class="tooltip"> Ericksen number
<span class="tooltiptext"> Ratio of viscous to elastic forces in the solid zone </span>
</div>
<span> \(Er\) = </span><span id="ericksenReadout"></span>
<br>
<div class="row">
<span class ="column" style="font-size:12px;"> More Stiff </span>
<span class="column"><input type="range" min="1" max="100" step="1" value="10"
id="ericksenSlider"></span class="column">
<span class ="column" style="font-size:12px;">Less Stiff</span>
</div>
<br>
</div>
<!---oninput="showSpeed();" onchange="showSpeed();"--->
<h3 style="text-align:center;">
Additional parameters
</h3>
<div style="margin-left: -20px; margin-right: -20px; text-align:center; white-space: normal; ">
<!-- display: inline-block; -->
<!---Solid zone occupancy--->
<div class="tooltip"> Solid occupancy
<span class="tooltiptext"> Ratio of area occupied by the solid phase to the total (solid + fluid) area </span>
</div>
<span> \( L_s / L_f\) = </span> <span id="solidZoneReadout"></span>
<br>
<div class="row" style = "text-align:center;">
<span class ="column" style="font-size:12px;"> Less occupied</span>
<span class="column">
<input type="range" min="0" max="100" step="5" value="50"
id="solidZoneSlider">
</span>
<span class ="column" style="font-size:12px;"> More occupied</span>
</div>
<br>
<!---Density--->
<div class="tooltip"> Density ratio
<span class="tooltiptext" style="white-space: normal;"> Ratio of solid to fluid density </span>
</div>
<span> \( \rho_s/\rho_f\) = </span><span id="densityReadout"></span>
<br>
<div class="row">
<span class ="column" style="font-size:12px;"> Lighter solid </span>
<span class="column">
<input type="range" min="1" max="100" step="1" value="10"
id="densitySlider">
</span>
<span class ="column" style="font-size:12px;"> Denser solid </span>
</div>
<br>
<!---Viscosity--->
<div class="tooltip"> Viscosity ratio
<span class="tooltiptext" style="white-space: normal;"> Ratio of solid to fluid viscosity </span>
</div>
<span> \( \nu_s/\nu_f\) = </span> <span id="viscosityReadout"></span>
<br>
<div class="row">
<span class ="column" style="font-size:12px;"> Less viscous </span>
<span class="column">
<input type="range" min="0" max="100" step="1" value="10"
id="viscositySlider">
</span>
<span class ="column" style="font-size:12px;"> More viscous </span>
</div>
</div>
</div>
<div class="double_width_column" style="margin-right: 0px; margin-left: 0px;">
<div class="row">
<div class="double_width_column" style="margin-right: -30px; margin-left: -20px;">
<!-- style="margin-right: 0; margin-left: 0; -->
<figure id="plot_div">
</figure>
</div>
<div class="half_width_columne" style="flex: 0; margin-right: -40px; margin-left: -10px;">
<img src="static/just_colorbar.png" alt="Colorbar" style="width:60px;height:360px;margin-left:auto;margin-right: auto;">
</div>
</div>
</div>
</div>
</div>
<!-- <footer>
Copyright © 2021 MattiaLab
</footer>
-->
<hr>
<footer>
<p style="font-size:14px; text-align:center;">
This is a beta version of the sandbox and we welcome your <a href="mailto:tp5@illinois.edu?subject = Feedback on Elastohydrodynamic Sandbox"> feedbacks </a>.
</p>
<p style="font-size:14px; text-align:center;">
Designed by <a href="https://parthas1.github.io/" target="_blank" rel="noopener">Tejaswin Parthasarathy</a>,
with help from <a href="https://www.linkedin.com/in/ruidi-huang/">Ruidi Huang</a>.
Powered by <a href="https://pyodide.org/en/stable/" target="_blank" rel="noopener">Pyodide</a>.
<!-- For best experience, please use Chrome or Firefox. -->
</p>
<!-- <p style="font-size:14px; text-align:center;">
</p>
-->
<p style="font-size:14px; text-align:center;">
Copyright © 2021 <a href="https://parthas1.github.io/" target="_blank" rel="noopener">Tejaswin Parthasarathy</a>, <a href="https://mattia-lab.com/" target="_blank" rel="noopener">GazzolaLab</a>.
</p>
</footer>
<script type="text/javascript" id="MathJax-script"
src='//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML'>
</script>
<script type="text/javascript" src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script type="text/javascript" src="parallel_slab_sandbox.js"></script>
<noscript>
<p>Oops! This website requires a JavaScript-enabled browser.</p>
</noscript>
</body>
</html>