|
12 | 12 | </script> |
13 | 13 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
14 | 14 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
15 | | -<meta name="generator" content="Doxygen 1.12.0"/> |
| 15 | +<meta name="generator" content="Doxygen 1.13.0"/> |
16 | 16 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
17 | 17 | <title>MFC: Example Cases</title> |
18 | 18 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
|
70 | 70 | </table> |
71 | 71 | </div> |
72 | 72 | <!-- end header part --> |
73 | | -<!-- Generated by Doxygen 1.12.0 --> |
| 73 | +<!-- Generated by Doxygen 1.13.0 --> |
74 | 74 | <script type="text/javascript"> |
75 | 75 | /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ |
76 | 76 | var searchBox = new SearchBox("searchBox", "search/",'.html'); |
|
136 | 136 | <div class="contents"> |
137 | 137 | <div class="textblock"><p><a class="anchor" id="autotoc_md27"></a></p> |
138 | 138 | <h1><a class="anchor" id="autotoc_md28"></a> |
139 | | -Shu-Osher problem (1D)</h1> |
140 | | -<p>Reference: C. W. Shu, S. Osher, Efficient implementation of essentially non-oscillatory shock-capturing schemes, Journal of Computational Physics 77 (2) (1988) 439–471. doi:10.1016/0021-9991(88)90177-5.</p> |
| 139 | +Isentropic vortex problem (2D)</h1> |
| 140 | +<p>Reference: Coralic, V., & Colonius, T. (2014). Finite-volume Weno scheme for viscous compressible multicomponent flows. Journal of Computational Physics, 274, 95–121. <a href="https://doi.org/10.1016/j.jcp.2014.06.003">https://doi.org/10.1016/j.jcp.2014.06.003</a></p> |
141 | 141 | <h2><a class="anchor" id="autotoc_md29"></a> |
142 | | -Initial Condition</h2> |
| 142 | +Density</h2> |
143 | 143 | <div class="image"> |
144 | | -<img src="initial-1D_shuosher_old-example.png" alt=""/> |
| 144 | +<img src="alpha_rho1-2D_isentropicvortex-example.png" alt=""/> |
145 | 145 | <div class="caption"> |
146 | | -Initial Condition</div></div> |
| 146 | +Density</div></div> |
147 | 147 | <h2><a class="anchor" id="autotoc_md30"></a> |
148 | | -Result</h2> |
| 148 | +Density Norms</h2> |
149 | 149 | <div class="image"> |
150 | | -<img src="result-1D_shuosher_old-example.png" alt=""/> |
| 150 | +<img src="density_norms-2D_isentropicvortex-example.png" alt=""/> |
151 | 151 | <div class="caption"> |
152 | | -Result</div></div> |
| 152 | +Density Norms</div></div> |
153 | 153 | <h1><a class="anchor" id="autotoc_md31"></a> |
154 | | -Rayleigh-Taylor Instability (3D)</h1> |
155 | | -<h2><a class="anchor" id="autotoc_md32"></a> |
156 | | -Final Condition</h2> |
157 | | -<div class="image"> |
158 | | -<img src="final_condition-3D_rayleigh_taylor-example.png" alt=""/> |
159 | | -<div class="caption"> |
160 | | -Final Condition</div></div> |
161 | | - <h2><a class="anchor" id="autotoc_md33"></a> |
162 | | -Centerline Velocities</h2> |
163 | | -<p><img src="linear_theory.jpg" alt="Linear Theory Comparison" class="inline"/></p> |
164 | | -<h1><a class="anchor" id="autotoc_md34"></a> |
165 | 154 | Lid-Driven Cavity Problem (2D)</h1> |
166 | 155 | <p>Reference: Bezgin, D. A., & Buhendwa A. B., & Adams N. A. (2022). JAX-FLUIDS: A fully-differentiable high-order computational fluid dynamics solver for compressible two-phase flows. arXiv:2203.13760</p> |
167 | 156 | <p>Reference: Ghia, U., & Ghia, K. N., & Shin, C. T. (1982). High-re solutions for incompressible flow using the Navier-Stokes equations and a multigrid method. Journal of Computational Physics, 48, 387-411</p> |
168 | 157 | <p>Video: <a href="https://youtube.com/shorts/JEP28scZrBM?feature=share">https://youtube.com/shorts/JEP28scZrBM?feature=share</a></p> |
169 | | -<h2><a class="anchor" id="autotoc_md35"></a> |
| 158 | +<h2><a class="anchor" id="autotoc_md32"></a> |
170 | 159 | Final Condition</h2> |
171 | 160 | <div class="image"> |
172 | 161 | <img src="final_condition-2D_lid_driven_cavity-example.png" alt=""/> |
173 | 162 | <div class="caption"> |
174 | 163 | Final Condition</div></div> |
175 | | - <h2><a class="anchor" id="autotoc_md36"></a> |
| 164 | + <h2><a class="anchor" id="autotoc_md33"></a> |
176 | 165 | Centerline Velocities</h2> |
177 | 166 | <div class="image"> |
178 | 167 | <img src="centerline_velocities-2D_lid_driven_cavity-example.png" alt=""/> |
179 | 168 | <div class="caption"> |
180 | 169 | Centerline Velocities</div></div> |
| 170 | + <h1><a class="anchor" id="autotoc_md34"></a> |
| 171 | +Shu-Osher problem (1D)</h1> |
| 172 | +<p>Reference: C. W. Shu, S. Osher, Efficient implementation of essentially non-oscillatory shock-capturing schemes, Journal of Computational Physics 77 (2) (1988) 439–471. doi:10.1016/0021-9991(88)90177-5.</p> |
| 173 | +<h2><a class="anchor" id="autotoc_md35"></a> |
| 174 | +Initial Condition</h2> |
| 175 | +<div class="image"> |
| 176 | +<img src="initial-1D_shuosher_old-example.png" alt=""/> |
| 177 | +<div class="caption"> |
| 178 | +Initial Condition</div></div> |
| 179 | + <h2><a class="anchor" id="autotoc_md36"></a> |
| 180 | +Result</h2> |
| 181 | +<div class="image"> |
| 182 | +<img src="result-1D_shuosher_old-example.png" alt=""/> |
| 183 | +<div class="caption"> |
| 184 | +Result</div></div> |
181 | 185 | <h1><a class="anchor" id="autotoc_md37"></a> |
182 | | -Isentropic vortex problem (2D)</h1> |
183 | | -<p>Reference: Coralic, V., & Colonius, T. (2014). Finite-volume Weno scheme for viscous compressible multicomponent flows. Journal of Computational Physics, 274, 95–121. <a href="https://doi.org/10.1016/j.jcp.2014.06.003">https://doi.org/10.1016/j.jcp.2014.06.003</a></p> |
| 186 | +Shock Droplet (2D)</h1> |
| 187 | +<p>Reference: Panchal et. al., A Seven-Equation Diffused Interface Method for Resolved Multiphase Flows, JCP, 475 (2023)</p> |
184 | 188 | <h2><a class="anchor" id="autotoc_md38"></a> |
185 | | -Density</h2> |
| 189 | +Initial Condition</h2> |
186 | 190 | <div class="image"> |
187 | | -<img src="alpha_rho1-2D_isentropicvortex-example.png" alt=""/> |
| 191 | +<img src="initial-2D_shockdroplet-example.png" alt=""/> |
188 | 192 | <div class="caption"> |
189 | | -Density</div></div> |
| 193 | +Initial Condition</div></div> |
190 | 194 | <h2><a class="anchor" id="autotoc_md39"></a> |
191 | | -Density Norms</h2> |
192 | | -<div class="image"> |
193 | | -<img src="density_norms-2D_isentropicvortex-example.png" alt=""/> |
194 | | -<div class="caption"> |
195 | | -Density Norms</div></div> |
196 | | - <h1><a class="anchor" id="autotoc_md40"></a> |
197 | | -Lax shock tube problem (1D)</h1> |
198 | | -<p>Reference: P. D. Lax, Weak solutions of nonlinear hyperbolic equations and their numerical computation, Communications on pure and applied mathematics 7 (1) (1954) 159–193.</p> |
| 195 | +Result</h2> |
| 196 | +<p><img src="result-2D_shockdroplet-example.png" alt="" class="inline" title="Result"/> </p> |
| 197 | +<h1><a class="anchor" id="autotoc_md40"></a> |
| 198 | +Titarev-Toro problem (1D)</h1> |
| 199 | +<p>Reference: V. A. Titarev, E. F. Toro, Finite-volume WENO schemes for three-dimensional conservation laws, Journal of Computational Physics 201 (1) (2004) 238–260.</p> |
199 | 200 | <h2><a class="anchor" id="autotoc_md41"></a> |
200 | 201 | Initial Condition</h2> |
201 | 202 | <div class="image"> |
202 | | -<img src="initial-1D_laxshocktube-example.png" alt=""/> |
| 203 | +<img src="initial-1D_titarevtorro-example.png" alt=""/> |
203 | 204 | <div class="caption"> |
204 | 205 | Initial Condition</div></div> |
205 | 206 | <h2><a class="anchor" id="autotoc_md42"></a> |
206 | 207 | Result</h2> |
207 | 208 | <div class="image"> |
208 | | -<img src="result-1D_laxshocktube-example.png" alt=""/> |
| 209 | +<img src="result-1D_titarevtorro-example.png" alt=""/> |
209 | 210 | <div class="caption"> |
210 | 211 | Result</div></div> |
211 | 212 | <h1><a class="anchor" id="autotoc_md43"></a> |
212 | | -2D Hardcodied IC Example</h1> |
| 213 | +Rayleigh-Taylor Instability (3D)</h1> |
213 | 214 | <h2><a class="anchor" id="autotoc_md44"></a> |
214 | | -Initial Condition</h2> |
| 215 | +Final Condition</h2> |
215 | 216 | <div class="image"> |
216 | | -<img src="initial-2D_hardcodied_ic-example.png" alt=""/> |
| 217 | +<img src="final_condition-3D_rayleigh_taylor-example.png" alt=""/> |
217 | 218 | <div class="caption"> |
218 | | -Initial Condition</div></div> |
| 219 | +Final Condition</div></div> |
219 | 220 | <h2><a class="anchor" id="autotoc_md45"></a> |
220 | | -Result</h2> |
221 | | -<p><img src="result-2D_hardcodied_ic-example.png" alt="" class="inline" title="Result"/> </p> |
| 221 | +Centerline Velocities</h2> |
| 222 | +<p><img src="linear_theory.jpg" alt="Linear Theory Comparison" class="inline"/></p> |
222 | 223 | <h1><a class="anchor" id="autotoc_md46"></a> |
223 | | -Shock Droplet (2D)</h1> |
224 | | -<p>Reference: Panchal et. al., A Seven-Equation Diffused Interface Method for Resolved Multiphase Flows, JCP, 475 (2023)</p> |
225 | | -<h2><a class="anchor" id="autotoc_md47"></a> |
226 | | -Initial Condition</h2> |
227 | | -<div class="image"> |
228 | | -<img src="initial-2D_shockdroplet-example.png" alt=""/> |
229 | | -<div class="caption"> |
230 | | -Initial Condition</div></div> |
231 | | - <h2><a class="anchor" id="autotoc_md48"></a> |
232 | | -Result</h2> |
233 | | -<p><img src="result-2D_shockdroplet-example.png" alt="" class="inline" title="Result"/> </p> |
234 | | -<h1><a class="anchor" id="autotoc_md49"></a> |
235 | 224 | Strong- & Weak-scaling</h1> |
236 | 225 | <p>The <a href="case.py"><b>Scaling</b></a> case can exercise both weak- and strong-scaling. It adjusts itself depending on the number of requested ranks.</p> |
237 | 226 | <p>This directory also contains a collection of scripts used to test strong-scaling on OLCF Frontier. They required modifying MFC to collect some metrics but are meant to serve as a reference to users wishing to run similar experiments.</p> |
238 | | -<h2><a class="anchor" id="autotoc_md50"></a> |
| 227 | +<h2><a class="anchor" id="autotoc_md47"></a> |
239 | 228 | Weak Scaling</h2> |
240 | 229 | <p>Pass <code>--scaling weak</code>. The <code>--memory</code> option controls (approximately) how much memory each rank should use, in Gigabytes. The number of cells in each dimension is then adjusted according to the number of requested ranks and an approximation for the relation between cell count and memory usage. The problem size increases linearly with the number of ranks.</p> |
241 | | -<h2><a class="anchor" id="autotoc_md51"></a> |
| 230 | +<h2><a class="anchor" id="autotoc_md48"></a> |
242 | 231 | Strong Scaling</h2> |
243 | 232 | <p>Pass <code>--scaling strong</code>. The <code>--memory</code> option controls (approximately) how much memory should be used in total during simulation, across all ranks, in Gigabytes. The problem size remains constant as the number of ranks increases.</p> |
244 | | -<h2><a class="anchor" id="autotoc_md52"></a> |
| 233 | +<h2><a class="anchor" id="autotoc_md49"></a> |
245 | 234 | Example</h2> |
246 | 235 | <p>For example, to run a weak-scaling test that uses ~4GB of GPU memory per rank on 8 2-rank nodes with case optimization, one could:</p> |
247 | 236 | <div class="fragment"><div class="line">./mfc.sh run examples/scaling/case.py -t pre_process simulation \</div> |
248 | 237 | <div class="line"> -e batch -p mypartition -N 8 -n 2 -w "01:00:00" -# "MFC Weak Scaling" \</div> |
249 | 238 | <div class="line"> --case-optimization -j 32 -- --scaling weak --memory 4</div> |
250 | | -</div><!-- fragment --><h1><a class="anchor" id="autotoc_md53"></a> |
251 | | -2D Riemann Test (2D)</h1> |
252 | | -<p>Reference: Chamarthi, A., & Hoffmann, N., & Nishikawa, H., & Frankel S. (2023). Implicit gradients based conservative numerical scheme for compressible flows. arXiv:2110.05461</p> |
253 | | -<h2><a class="anchor" id="autotoc_md54"></a> |
254 | | -Density Initial Condition</h2> |
| 239 | +</div><!-- fragment --><h1><a class="anchor" id="autotoc_md50"></a> |
| 240 | +2D Hardcodied IC Example</h1> |
| 241 | +<h2><a class="anchor" id="autotoc_md51"></a> |
| 242 | +Initial Condition</h2> |
255 | 243 | <div class="image"> |
256 | | -<img src="alpha_rho1_initial-2D_riemann_test-example.png" alt=""/> |
| 244 | +<img src="initial-2D_hardcodied_ic-example.png" alt=""/> |
257 | 245 | <div class="caption"> |
258 | | -Density</div></div> |
259 | | - <h2><a class="anchor" id="autotoc_md55"></a> |
260 | | -Density Final Condition</h2> |
| 246 | +Initial Condition</div></div> |
| 247 | + <h2><a class="anchor" id="autotoc_md52"></a> |
| 248 | +Result</h2> |
| 249 | +<p><img src="result-2D_hardcodied_ic-example.png" alt="" class="inline" title="Result"/> </p> |
| 250 | +<h1><a class="anchor" id="autotoc_md53"></a> |
| 251 | +Rayleigh-Taylor Instability (2D)</h1> |
| 252 | +<h2><a class="anchor" id="autotoc_md54"></a> |
| 253 | +Final Condition</h2> |
261 | 254 | <div class="image"> |
262 | | -<img src="alpha_rho1_final-2D_riemann_test-example.png" alt=""/> |
| 255 | +<img src="final_condition-2D_rayleigh_taylor-example.png" alt=""/> |
263 | 256 | <div class="caption"> |
264 | | -Density Norms</div></div> |
265 | | - <h1><a class="anchor" id="autotoc_md56"></a> |
266 | | -Titarev-Toro problem (1D)</h1> |
267 | | -<p>Reference: V. A. Titarev, E. F. Toro, Finite-volume WENO schemes for three-dimensional conservation laws, Journal of Computational Physics 201 (1) (2004) 238–260.</p> |
| 257 | +Final Condition</div></div> |
| 258 | + <h2><a class="anchor" id="autotoc_md55"></a> |
| 259 | +Centerline Velocities</h2> |
| 260 | +<p><img src="linear_theory.jpg" alt="Linear Theory Comparison" class="inline"/></p> |
| 261 | +<h1><a class="anchor" id="autotoc_md56"></a> |
| 262 | +Lax shock tube problem (1D)</h1> |
| 263 | +<p>Reference: P. D. Lax, Weak solutions of nonlinear hyperbolic equations and their numerical computation, Communications on pure and applied mathematics 7 (1) (1954) 159–193.</p> |
268 | 264 | <h2><a class="anchor" id="autotoc_md57"></a> |
269 | 265 | Initial Condition</h2> |
270 | 266 | <div class="image"> |
271 | | -<img src="initial-1D_titarevtorro-example.png" alt=""/> |
| 267 | +<img src="initial-1D_laxshocktube-example.png" alt=""/> |
272 | 268 | <div class="caption"> |
273 | 269 | Initial Condition</div></div> |
274 | 270 | <h2><a class="anchor" id="autotoc_md58"></a> |
275 | 271 | Result</h2> |
276 | 272 | <div class="image"> |
277 | | -<img src="result-1D_titarevtorro-example.png" alt=""/> |
| 273 | +<img src="result-1D_laxshocktube-example.png" alt=""/> |
278 | 274 | <div class="caption"> |
279 | 275 | Result</div></div> |
280 | 276 | <h1><a class="anchor" id="autotoc_md59"></a> |
281 | | -Rayleigh-Taylor Instability (2D)</h1> |
| 277 | +2D Riemann Test (2D)</h1> |
| 278 | +<p>Reference: Chamarthi, A., & Hoffmann, N., & Nishikawa, H., & Frankel S. (2023). Implicit gradients based conservative numerical scheme for compressible flows. arXiv:2110.05461</p> |
282 | 279 | <h2><a class="anchor" id="autotoc_md60"></a> |
283 | | -Final Condition</h2> |
| 280 | +Density Initial Condition</h2> |
284 | 281 | <div class="image"> |
285 | | -<img src="final_condition-2D_rayleigh_taylor-example.png" alt=""/> |
| 282 | +<img src="alpha_rho1_initial-2D_riemann_test-example.png" alt=""/> |
286 | 283 | <div class="caption"> |
287 | | -Final Condition</div></div> |
| 284 | +Density</div></div> |
288 | 285 | <h2><a class="anchor" id="autotoc_md61"></a> |
289 | | -Centerline Velocities</h2> |
290 | | -<p><img src="linear_theory.jpg" alt="Linear Theory Comparison" class="inline"/> </p> |
291 | | -</div></div><!-- contents --> |
| 286 | +Density Final Condition</h2> |
| 287 | +<div class="image"> |
| 288 | +<img src="alpha_rho1_final-2D_riemann_test-example.png" alt=""/> |
| 289 | +<div class="caption"> |
| 290 | +Density Norms</div></div> |
| 291 | + </div></div><!-- contents --> |
292 | 292 | </div><!-- PageDoc --> |
293 | 293 | </div><!-- doc-content --> |
294 | 294 | <!-- HTML footer for doxygen 1.9.1--> |
295 | 295 | <!-- start footer part --> |
296 | 296 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
297 | 297 | <ul> |
298 | | - <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0 </li> |
| 298 | + <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.0 </li> |
299 | 299 | </ul> |
300 | 300 | </div> |
301 | 301 | </body> |
|
0 commit comments