Skip to content

Commit 1ab8231

Browse files
author
MFC Action
committed
Docs @ 0ffd93e
1 parent dfef033 commit 1ab8231

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+360
-329
lines changed

documentation/doxygen.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ dl.note {
12261226
border-color: #D0C000;
12271227
}
12281228
1229-
dl.warning, dl.attention {
1229+
dl.warning, dl.attention, dl.important {
12301230
margin-left: -7px;
12311231
padding-left: 3px;
12321232
border-left: 4px solid;
@@ -1274,7 +1274,7 @@ dl.bug dt a, dl.deprecated dt a, dl.todo dt a, dl.test a {
12741274
font-weight: bold !important;
12751275
}
12761276

1277-
dl.warning, dl.attention, dl.note, dl.deprecated, dl.bug,
1277+
dl.warning, dl.attention, dl.important, dl.note, dl.deprecated, dl.bug,
12781278
dl.invariant, dl.pre, dl.post, dl.todo, dl.test, dl.remark {
12791279
padding: 10px;
12801280
margin: 10px 0px;
@@ -1287,13 +1287,13 @@ dl.section dd {
12871287
margin-bottom: 2px;
12881288
}
12891289

1290-
dl.warning, dl.attention {
1290+
dl.warning, dl.attention, dl.important {
12911291
background: #f8d1cc;
12921292
border-left: 8px solid #b61825;
12931293
color: #75070f;
12941294
}
12951295

1296-
dl.warning dt, dl.attention dt {
1296+
dl.warning dt, dl.attention dt, dl.important dt {
12971297
color: #b61825;
12981298
}
12991299

@@ -1352,7 +1352,7 @@ dl.deprecated dt a {
13521352
}
13531353

13541354
dl.note dd, dl.warning dd, dl.pre dd, dl.post dd,
1355-
dl.remark dd, dl.attention dd, dl.invariant dd,
1355+
dl.remark dd, dl.attention dd, dl.important dd, dl.invariant dd,
13561356
dl.bug dd, dl.deprecated dd, dl.todo dd, dl.test dd {
13571357
margin-inline-start: 0px;
13581358
}

documentation/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
</div><!--header-->
128128
<div class="contents">
129129
<div class="textblock"><p><a class="anchor" id="md_readme"></a> </p>
130-
<h1><a class="anchor" id="autotoc_md77"></a>
130+
<h1><a class="anchor" id="autotoc_md80"></a>
131131
User Documentation</h1>
132132
<ul>
133133
<li><a class="el" href="md_getting-started.html">Getting Started</a></li>
@@ -140,7 +140,7 @@ <h1><a class="anchor" id="autotoc_md77"></a>
140140
<li><a class="el" href="md_authors.html">MFC's Authors</a></li>
141141
<li><a class="el" href="md_references.html">References</a></li>
142142
</ul>
143-
<h1><a class="anchor" id="autotoc_md78"></a>
143+
<h1><a class="anchor" id="autotoc_md81"></a>
144144
Code/API Documentation</h1>
145145
<p>MFC's three codes have their own documentation:</p>
146146
<ul>

documentation/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var index =
22
[
3-
[ "User Documentation", "index.html#autotoc_md77", null ],
4-
[ "Code/API Documentation", "index.html#autotoc_md78", null ]
3+
[ "User Documentation", "index.html#autotoc_md80", null ],
4+
[ "Code/API Documentation", "index.html#autotoc_md81", null ]
55
];

documentation/md_case.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,10 @@ <h2><a class="anchor" id="autotoc_md12"></a>
383383
<tr class="markdownTableRowOdd">
384384
<td class="markdownTableBodyRight"><code>bc_[x,y,z]\beg[end]</code> </td><td class="markdownTableBodyCenter">Integer </td><td class="markdownTableBodyLeft">Beginning [ending] boundary condition in the $[x,y,z]$-direction (negative integer, see table Boundary Conditions) </td></tr>
385385
<tr class="markdownTableRowEven">
386+
<td class="markdownTableBodyRight"><code>bc_[x,y,z]\vb[1,2,3]</code></td><td class="markdownTableBodyCenter">Real </td><td class="markdownTableBodyLeft">Velocity in the (x,1), (y, 2), (z,3) direction applied to <code>bc_[x,y,z]beg</code> </td></tr>
387+
<tr class="markdownTableRowOdd">
388+
<td class="markdownTableBodyRight"><code>bc_[x,y,z]\ve[1,2,3]</code></td><td class="markdownTableBodyCenter">Real </td><td class="markdownTableBodyLeft">Velocity in the (x,1), (y, 2), (z,3) direction applied to <code>bc_[x,y,z]end</code> </td></tr>
389+
<tr class="markdownTableRowEven">
386390
<td class="markdownTableBodyRight"><code>model_eqns</code> </td><td class="markdownTableBodyCenter">Integer </td><td class="markdownTableBodyLeft">Multicomponent model: [1] $\Gamma/\Pi_\infty$; [2] 5-equation; [3] 6-equation\%;%[4] 4-equation </td></tr>
387391
<tr class="markdownTableRowOdd">
388392
<td class="markdownTableBodyRight"><code>alt_soundspeed</code> * </td><td class="markdownTableBodyCenter">Logical </td><td class="markdownTableBodyLeft">Alternate sound speed and $K \nabla \cdot u$ for 5-equation model </td></tr>
@@ -418,10 +422,13 @@ <h2><a class="anchor" id="autotoc_md12"></a>
418422
<ul>
419423
<li>* Options that work only with <code>model_eqns</code> $=2$.</li>
420424
<li>† Options that work only with <code>cyl_coord</code> $=$ <code>False</code>.</li>
425+
<li>‡ Options that work only with <code>bc_[x,y,z]%[beg,end] = -15</code> and/or <code>bc_[x,y,z]%[beg,end] = -16</code></li>
421426
</ul>
422427
<p>The table lists simulation algorithm parameters. The parameters are used to specify options in algorithms that are used to integrate the governing equations of the multi-component flow based on the initial condition. Models and assumptions that are used to formulate and discritize the governing equations are described in <a href="references.md#Bryngelson19">Bryngelson et al. (2019)</a>. Details of the simulation algorithms and implementation of the WENO scheme can be found in <a href="references.md#Coralic15">Coralic (2015)</a>.</p>
423428
<ul>
424429
<li><code>bc_[x,y,z]%[beg,end]</code> specifies the boundary conditions at the beginning and the end of domain boundaries in each coordinate direction by a negative integer from -1 through -12. See table Boundary Conditions for details.</li>
430+
<li><code>bc_[x,y,z]\vb[1,2,3]</code> specifies the velocity in the (x,1), (y,2), (z,3) direction applied to <code>bc_[x,y,z]beg</code> when using <code>bc_[x,y,z]beg = -16</code>. Tangential velocities require viscosity, <code>weno_avg = T</code>, and <code>bc_[x,y,z]beg = -16</code> to work properly. Normal velocities require <code>bc_[x,y,z]\end = -15</code> or <code>\bc_[x,y,z]\end = -16</code> to work properly.</li>
431+
<li><code>bc_[x,y,z]\ve[1,2,3]</code> specifies the velocity in the (x,1), (y,2), (z,3) direction applied to <code>bc_[x,y,z]beg</code> when using <code>bc_[x,y,z]end = -16</code>. Tangential velocities require viscosity, <code>weno_avg = T</code>, and <code>bc_[x,y,z]\end = 16</code> to work properly. Normal velocities require <code>bc_[x,y,z]\end = -15</code> or <code>\bc_[x,y,z]\end = -16</code> to work properly.</li>
425432
<li><code>model_eqns</code> specifies the choice of the multi-component model that is used to formulate the dynamics of the flow using integers from 1 through 3. <code>model_eqns</code> $=$ 1, 2, and 3 correspond to $\Gamma$-$\Pi_\infty$ model (<a href="references.md#Johnsen08">Johnsen, 2008</a>), 5-equation model (<a href="references.md#Allaire02">Allaire et al., 2002</a>), and 6-equation model (<a href="references.md#Saurel09">Saurel et al., 2009</a>), respectively. The difference of the two models is assessed by (<a href="references.md#Schmidmayer19">Schmidmayer et al., 2019</a>). Note that some code parameters are only compatible with 5-equation model.</li>
426433
<li><code>alt_soundspeed</code> activates the source term in the advection equations for the volume fractions, $K\nabla\cdot \underline{u}$, that regularizes the speed of sound in the mixture region when the 5-equation model is used. The effect and use of the source term are assessed by <a href="references.md#Schmidmayer19">Schmidmayer et al., 2019</a>.</li>
427434
<li><code>adv_alphan</code> activates the advection equations of all the components of fluid. If this parameter is set false, the void fraction of $N$-th component is computed as the residual of the void fraction of the other components at each cell:</li>

documentation/md_examples.html

Lines changed: 74 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -128,63 +128,21 @@
128128
<div class="contents">
129129
<div class="textblock"><p><a class="anchor" id="autotoc_md36"></a> </p>
130130
<h1><a class="anchor" id="autotoc_md37"></a>
131-
Isentropic vortex problem (2D)</h1>
132-
<p>Reference: Coralic, V., &amp; 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>
133-
<h2><a class="anchor" id="autotoc_md38"></a>
134-
Density</h2>
135-
<div class="image">
136-
<img src="alpha_rho1-2D_isentropicvortex-example.png" alt=""/>
137-
<div class="caption">
138-
Density</div></div>
139-
<h2><a class="anchor" id="autotoc_md39"></a>
140-
Density Norms</h2>
141-
<div class="image">
142-
<img src="density_norms-2D_isentropicvortex-example.png" alt=""/>
143-
<div class="caption">
144-
Density Norms</div></div>
145-
<h1><a class="anchor" id="autotoc_md40"></a>
146131
Shu-Osher problem (1D)</h1>
147132
<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>
148-
<h2><a class="anchor" id="autotoc_md41"></a>
133+
<h2><a class="anchor" id="autotoc_md38"></a>
149134
Initial Condition</h2>
150135
<div class="image">
151136
<img src="initial-1D_shuosher-example.png" alt=""/>
152137
<div class="caption">
153138
Initial Condition</div></div>
154-
<h2><a class="anchor" id="autotoc_md42"></a>
139+
<h2><a class="anchor" id="autotoc_md39"></a>
155140
Result</h2>
156141
<div class="image">
157142
<img src="result-1D_shuosher-example.png" alt=""/>
158143
<div class="caption">
159144
Result</div></div>
160-
<h1><a class="anchor" id="autotoc_md43"></a>
161-
Titarev-Toro problem (1D)</h1>
162-
<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>
163-
<h2><a class="anchor" id="autotoc_md44"></a>
164-
Initial Condition</h2>
165-
<div class="image">
166-
<img src="initial-1D_titarevtorro-example.png" alt=""/>
167-
<div class="caption">
168-
Initial Condition</div></div>
169-
<h2><a class="anchor" id="autotoc_md45"></a>
170-
Result</h2>
171-
<div class="image">
172-
<img src="result-1D_titarevtorro-example.png" alt=""/>
173-
<div class="caption">
174-
Result</div></div>
175-
<h1><a class="anchor" id="autotoc_md46"></a>
176-
Shock Droplet (2D)</h1>
177-
<p>Reference: Panchal et. al., A Seven-Equation Diffused Interface Method for Resolved Multiphase Flows, JCP, 475 (2023)</p>
178-
<h2><a class="anchor" id="autotoc_md47"></a>
179-
Initial Condition</h2>
180-
<div class="image">
181-
<img src="initial-2D_shockdroplet-example.png" alt=""/>
182-
<div class="caption">
183-
Initial Condition</div></div>
184-
<h2><a class="anchor" id="autotoc_md48"></a>
185-
Result</h2>
186-
<p><img src="result-2D_shockdroplet-example.png" alt="" class="inline" title="Result"/> </p>
187-
<h1><a class="anchor" id="autotoc_md49"></a>
145+
<h1><a class="anchor" id="autotoc_md40"></a>
188146
3D Weak Scaling</h1>
189147
<p>The <a href="case.py"><b>3D_weak_scaling</b></a> case depends on two parameters:</p>
190148
<ul>
@@ -196,48 +154,104 @@ <h1><a class="anchor" id="autotoc_md49"></a>
196154
<div class="fragment"><div class="line">./mfc.sh run examples/3D_weak_scaling/case.py 4 -t pre_process simulation \</div>
197155
<div class="line"> -e batch -p mypartition -N 8 -n 2 -w &quot;01:00:00&quot; -# &quot;MFC Weak Scaling&quot; \</div>
198156
<div class="line"> --case-optimization -j 32</div>
199-
</div><!-- fragment --><h1><a class="anchor" id="autotoc_md50"></a>
200-
Lax shock tube problem (1D)</h1>
201-
<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>
202-
<h2><a class="anchor" id="autotoc_md51"></a>
157+
</div><!-- fragment --><h1><a class="anchor" id="autotoc_md41"></a>
158+
Isentropic vortex problem (2D)</h1>
159+
<p>Reference: Coralic, V., &amp; 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>
160+
<h2><a class="anchor" id="autotoc_md42"></a>
161+
Density</h2>
162+
<div class="image">
163+
<img src="alpha_rho1-2D_isentropicvortex-example.png" alt=""/>
164+
<div class="caption">
165+
Density</div></div>
166+
<h2><a class="anchor" id="autotoc_md43"></a>
167+
Density Norms</h2>
168+
<div class="image">
169+
<img src="density_norms-2D_isentropicvortex-example.png" alt=""/>
170+
<div class="caption">
171+
Density Norms</div></div>
172+
<h1><a class="anchor" id="autotoc_md44"></a>
173+
2D Hardcodied IC Example</h1>
174+
<h2><a class="anchor" id="autotoc_md45"></a>
203175
Initial Condition</h2>
204176
<div class="image">
205-
<img src="initial-1D_laxshocktube-example.png" alt=""/>
177+
<img src="initial-2D_hardcodied_ic-example.png" alt=""/>
206178
<div class="caption">
207179
Initial Condition</div></div>
208-
<h2><a class="anchor" id="autotoc_md52"></a>
180+
<h2><a class="anchor" id="autotoc_md46"></a>
209181
Result</h2>
182+
<p><img src="result-2D_hardcodied_ic-example.png" alt="" class="inline" title="Result"/> </p>
183+
<h1><a class="anchor" id="autotoc_md47"></a>
184+
Lid-Driven Cavity Problem (2D)</h1>
185+
<p>Reference: Bezgin, D. A., &amp; Buhendwa A. B., &amp; Adams N. A. (2022). JAX-FLUIDS: A fully-differentiable high-order computational fluid dynamics solver for compressible two-phase flows. arXiv:2203.13760</p>
186+
<p>Reference: Ghia, U., &amp; Ghia, K. N., &amp; 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>
187+
<p>Video: <a href="https://youtube.com/shorts/JEP28scZrBM?feature=share">https://youtube.com/shorts/JEP28scZrBM?feature=share</a></p>
188+
<h2><a class="anchor" id="autotoc_md48"></a>
189+
Final Condition</h2>
210190
<div class="image">
211-
<img src="result-1D_laxshocktube-example.png" alt=""/>
191+
<img src="final_condition-2D_lid_driven_cavity-example.png" alt=""/>
212192
<div class="caption">
213-
Result</div></div>
214-
<h1><a class="anchor" id="autotoc_md53"></a>
193+
Final Condition</div></div>
194+
<h2><a class="anchor" id="autotoc_md49"></a>
195+
Centerline Velocities</h2>
196+
<div class="image">
197+
<img src="centerline_velocities-2D_lid_driven_cavity-example.png" alt=""/>
198+
<div class="caption">
199+
Centerline Velocities</div></div>
200+
<h1><a class="anchor" id="autotoc_md50"></a>
215201
2D Riemann Test (2D)</h1>
216202
<p>Reference: Chamarthi, A., &amp; Hoffmann, N., &amp; Nishikawa, H., &amp; Frankel S. (2023). Implicit gradients based conservative numerical scheme for compressible flows. arXiv:2110.05461</p>
217-
<h2><a class="anchor" id="autotoc_md54"></a>
203+
<h2><a class="anchor" id="autotoc_md51"></a>
218204
Density Initial Condition</h2>
219205
<div class="image">
220206
<img src="alpha_rho1_initial-2D_riemann_test-example.png" alt=""/>
221207
<div class="caption">
222208
Density</div></div>
223-
<h2><a class="anchor" id="autotoc_md55"></a>
209+
<h2><a class="anchor" id="autotoc_md52"></a>
224210
Density Final Condition</h2>
225211
<div class="image">
226212
<img src="alpha_rho1_final-2D_riemann_test-example.png" alt=""/>
227213
<div class="caption">
228214
Density Norms</div></div>
229-
<h1><a class="anchor" id="autotoc_md56"></a>
230-
2D Hardcodied IC Example</h1>
215+
<h1><a class="anchor" id="autotoc_md53"></a>
216+
Shock Droplet (2D)</h1>
217+
<p>Reference: Panchal et. al., A Seven-Equation Diffused Interface Method for Resolved Multiphase Flows, JCP, 475 (2023)</p>
218+
<h2><a class="anchor" id="autotoc_md54"></a>
219+
Initial Condition</h2>
220+
<div class="image">
221+
<img src="initial-2D_shockdroplet-example.png" alt=""/>
222+
<div class="caption">
223+
Initial Condition</div></div>
224+
<h2><a class="anchor" id="autotoc_md55"></a>
225+
Result</h2>
226+
<p><img src="result-2D_shockdroplet-example.png" alt="" class="inline" title="Result"/> </p>
227+
<h1><a class="anchor" id="autotoc_md56"></a>
228+
Titarev-Toro problem (1D)</h1>
229+
<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>
231230
<h2><a class="anchor" id="autotoc_md57"></a>
232231
Initial Condition</h2>
233232
<div class="image">
234-
<img src="initial-2D_hardcodied_ic-example.png" alt=""/>
233+
<img src="initial-1D_titarevtorro-example.png" alt=""/>
235234
<div class="caption">
236235
Initial Condition</div></div>
237236
<h2><a class="anchor" id="autotoc_md58"></a>
238237
Result</h2>
239238
<div class="image">
240-
<img src="result-2D_hardcodied_ic-example.png" alt=""/>
239+
<img src="result-1D_titarevtorro-example.png" alt=""/>
240+
<div class="caption">
241+
Result</div></div>
242+
<h1><a class="anchor" id="autotoc_md59"></a>
243+
Lax shock tube problem (1D)</h1>
244+
<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>
245+
<h2><a class="anchor" id="autotoc_md60"></a>
246+
Initial Condition</h2>
247+
<div class="image">
248+
<img src="initial-1D_laxshocktube-example.png" alt=""/>
249+
<div class="caption">
250+
Initial Condition</div></div>
251+
<h2><a class="anchor" id="autotoc_md61"></a>
252+
Result</h2>
253+
<div class="image">
254+
<img src="result-1D_laxshocktube-example.png" alt=""/>
241255
<div class="caption">
242256
Result</div></div>
243257
</div></div><!-- contents -->

0 commit comments

Comments
 (0)