You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divclass="line">parser.add_argument(<spanclass="stringliteral">"-s"</span>, <spanclass="stringliteral">"--scaling"</span>, type=str, metavar=<spanclass="stringliteral">"SCALING"</span>, choices=[<spanclass="stringliteral">"weak"</span>, <spanclass="stringliteral">"strong"</span>], help=<spanclass="stringliteral">"Whether weak- or strong-scaling is being exercised."</span>)</div>
<divclass="line"> help=<spanclass="stringliteral">"Whether weak- or strong-scaling is being exercised."</span>)</div>
167
169
<divclass="line"></div>
168
170
<divclass="line"><spanclass="comment"># Your parsed arguments are here</span></div>
169
171
<divclass="line">args = parser.parse_args()</div>
170
-
</div><!-- fragment --><p>The first argument is always a JSON string representing <code>mfc.sh run</code>'s internal state. It contains all the runtime information you might want from the build/run system. You can add as many additional arguments as you may need.</p>
172
+
</div><!-- fragment --><p>The <code>--mfc</code> argument is a JSON string representing <code>mfc.sh run</code>'s internal state, passed in when MFC runs your input file. It contains all the runtime information you might want from the build/run system. You can add as many additional arguments and options as you may need.</p>
171
173
<p>To run such a case, use the following format:</p>
172
174
<divclass="fragment"><divclass="line">./mfc.sh run <path/to/case.py> <mfc.sh run arguments> -- <case arguments></div>
173
175
</div><!-- fragment --><p>For example, to run the <code>scaling</code> case in "weak-scaling" mode:</p>
<p>This figure shows the isosurface with zero q-criterion. <imgsrc="result-3D_TaylorGreenVortex-example.png" alt="" class="inline" title="Density"/></p>
203
203
<h1><aclass="anchor" id="autotoc_md44"></a>
204
+
1D Multi-Component Inert Shock Tube</h1>
205
+
<p>References: </p><blockquoteclass="doxtable">
206
+
<p>‍P. J. Martínez Ferrer, R. Buttay, G. Lehnasch, and A. Mura, “A detailed verification procedure for compressible reactive multicomponent Navier–Stokes solvers”, Comput. & Fluids, vol. 89, pp. 88–110, Jan. 2014. Accessed: Oct. 13, 2024. [Online]. Available: <ahref="https://doi.org/10.1016/j.compfluid.2013.10.014">https://doi.org/10.1016/j.compfluid.2013.10.014</a></p>
<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>
<p>The <ahref="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>
221
235
<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>
222
-
<h2><aclass="anchor" id="autotoc_md48"></a>
236
+
<h2><aclass="anchor" id="autotoc_md51"></a>
223
237
Weak Scaling</h2>
224
238
<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>
225
-
<h2><aclass="anchor" id="autotoc_md49"></a>
239
+
<h2><aclass="anchor" id="autotoc_md52"></a>
226
240
Strong Scaling</h2>
227
241
<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>
228
-
<h2><aclass="anchor" id="autotoc_md50"></a>
242
+
<h2><aclass="anchor" id="autotoc_md53"></a>
229
243
Example</h2>
230
244
<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>
231
245
<divclass="fragment"><divclass="line">./mfc.sh run examples/scaling/case.py -t pre_process simulation \</div>
</div><!-- fragment --><h1><aclass="anchor" id="autotoc_md51"></a>
248
+
</div><!-- fragment --><h1><aclass="anchor" id="autotoc_md54"></a>
235
249
2D Riemann Test (2D)</h1>
236
250
<p>Reference: Chamarthi, A., & Hoffmann, N., & Nishikawa, H., & Frankel S. (2023). Implicit gradients based conservative numerical scheme for compressible flows. arXiv:2110.05461</p>
<p>Reference: G. B. Skinner and G. H. Ringrose, “Ignition Delays of a Hydrogen—Oxygen—Argon Mixture at Relatively Low Temperatures”, J. Chem. Phys., vol. 42, no. 6, pp. 2190–2192, Mar. 1965. Accessed: Oct. 13, 2024. [Online]. Available: <ahref="https://doi.org/10.1063/1.1696266">https://doi.org/10.1063/1.1696266</a>.</p>
<p>‍P. J. Martínez Ferrer, R. Buttay, G. Lehnasch, and A. Mura, “A detailed verification procedure for compressible reactive multicomponent Navier–Stokes solvers”, Comput. & Fluids, vol. 89, pp. 88–110, Jan. 2014. Accessed: Oct. 13, 2024. [Online]. Available: <ahref="https://doi.org/10.1016/j.compfluid.2013.10.014">https://doi.org/10.1016/j.compfluid.2013.10.014</a></p>
317
+
</blockquote>
318
+
<blockquoteclass="doxtable">
319
+
<p>‍H. Chen, C. Si, Y. Wu, H. Hu, and Y. Zhu, “Numerical investigation of the effect of equivalence ratio on the propagation characteristics and performance of rotating detonation engine”, Int. J. Hydrogen Energy, Mar. 2023. Accessed: Oct. 13, 2024. [Online]. Available: <ahref="https://doi.org/10.1016/j.ijhydene.2023.03.190">https://doi.org/10.1016/j.ijhydene.2023.03.190</a></p>
<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>
0 commit comments