Skip to content

Commit e445cb7

Browse files
author
MFC Action
committed
Docs @ 187292a
1 parent 5fa088b commit e445cb7

345 files changed

Lines changed: 53001 additions & 44221 deletions

File tree

Some content is hidden

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

documentation/architecture.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ <h1 class="doxsection"><a class="anchor" id="autotoc_md13"></a>
427427
<li><b>Add the module to <span class="tt">docs/module_categories.json</span></b> so it appears in this page</li>
428428
</ol>
429429
<p>Follow the pattern of existing modules like <span class="tt">m_body_forces</span> (simple) or <span class="tt">m_viscous</span> (more involved) as a template.</p>
430-
<div style="text-align:center; font-size:0.75rem; color:#888; padding:16px 0 0;">Page last updated: 2026-07-21</div> </div></div><!-- contents -->
430+
<div style="text-align:center; font-size:0.75rem; color:#888; padding:16px 0 0;">Page last updated: 2026-07-22</div> </div></div><!-- contents -->
431431
</div><!-- PageDoc -->
432432
</div><!-- doc-content -->
433433
<div id="page-nav" class="page-nav-panel">

documentation/case.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,8 @@ <h4 class="doxsection"><a class="anchor" id="autotoc_md20"></a>
391391
<li><span class="tt">case(170)</span>: Load 1D profile from data files</li>
392392
<li><span class="tt">case(270)</span>: Extrude 1D data to 2D domain</li>
393393
<li><span class="tt">case(370)</span>: Extrude 2D data to 3D domain</li>
394+
<li><span class="tt">case(273)</span>: Extrude 1D data to 2D domain, with the mom%beg data column carrying the extruded-axis (mom%end) velocity profile instead of its own (zeroed) component. Used by <span class="tt">examples/2D_reacting_mixing_layer</span> to give a temporally-evolving mixing layer a nonzero streamwise velocity profile along the extruded axis, which <span class="tt">case(270)</span> cannot represent since it always zeros that component.</li>
395+
<li><span class="tt">case(274)</span>: Load a full 2D <span class="tt">(x, y)</span> field with no extrusion &ndash; one data file per variable, <span class="tt">(m_glb+1)*(n_glb+1)</span> lines each in x-major order, covering all primitive variables directly (unlike <span class="tt">case(270)</span>/<span class="tt">case(273)</span>, no component is zeroed or repurposed). Used by <span class="tt">examples/2D_spatial_reacting_mixing_layer</span> for a spatially-evolving mixing layer, where the cross-stream profile must vary with the streamwise coordinate too (via the <span class="tt">bf_spatial_support</span> body force) so no single extrusion axis applies. The file's line count, origin, and (uniform) cell spacing must match the run grid; a mismatched file is rejected with a fatal error, so regenerate the IC whenever the grid changes.</li>
394396
</ul>
395397
<p>Setup: Only requires specifying <span class="tt">files_dir</span> and filename pattern via <span class="tt">file_extension</span>. The files are located, for example, at <span class="tt">examples/1D_flamelet/IC</span>, and their format is <span class="tt">prim.XX.YY.file_extension.dat</span>. Implementation: All variables and file handling are managed in the <span class="tt">case.py</span> file of the simulation. Usage: Ideal for initializing simulations from lower-dimensional solutions, enabling users to add perturbations or modifications to the base extruded fields for flow instability studies.</p>
396398
<p>The following parameters support hardcoded initial conditions that read interface data from files:</p>
@@ -1283,19 +1285,22 @@ <h3 class="doxsection"><a class="anchor" id="autotoc_md30"></a>
12831285
<tr class="markdownTableRowOdd">
12841286
<td class="markdownTableBodyRight"><span class="tt">bf_x[y,z]</span> </td><td class="markdownTableBodyCenter">Logical </td><td class="markdownTableBodyLeft">Enable body forces in the x[y,z] direction </td></tr>
12851287
<tr class="markdownTableRowEven">
1286-
<td class="markdownTableBodyRight"><span class="tt">k_x[y,y]</span> </td><td class="markdownTableBodyCenter">Real </td><td class="markdownTableBodyLeft">Magnitude of oscillating acceleration </td></tr>
1288+
<td class="markdownTableBodyRight"><span class="tt">k_x[y,z]</span> </td><td class="markdownTableBodyCenter">Real </td><td class="markdownTableBodyLeft">Magnitude of oscillating acceleration </td></tr>
12871289
<tr class="markdownTableRowOdd">
12881290
<td class="markdownTableBodyRight"><span class="tt">w_x[y,z]</span> </td><td class="markdownTableBodyCenter">Real </td><td class="markdownTableBodyLeft">Frequency of oscillating acceleration </td></tr>
12891291
<tr class="markdownTableRowEven">
12901292
<td class="markdownTableBodyRight"><span class="tt">p_x[y,z]</span> </td><td class="markdownTableBodyCenter">Real </td><td class="markdownTableBodyLeft">Phase shift of oscillating acceleration </td></tr>
12911293
<tr class="markdownTableRowOdd">
12921294
<td class="markdownTableBodyRight"><span class="tt">g_x[y,z]</span> </td><td class="markdownTableBodyCenter">Real </td><td class="markdownTableBodyLeft">Magnitude of background acceleration </td></tr>
1295+
<tr class="markdownTableRowEven">
1296+
<td class="markdownTableBodyRight"><span class="tt">bf_spatial_support</span> </td><td class="markdownTableBodyCenter">Logical </td><td class="markdownTableBodyLeft">Enable spatially supported body force (Wei &amp; Freund, JFM 2005) </td></tr>
12931297
</table>
12941298
<p><span class="tt">k_x[y,z]</span>, <span class="tt">w_x[y,z]</span>, <span class="tt">p_x[y,z]</span>, and <span class="tt">g_x[y,z]</span> define an oscillating acceleration in the <span class="tt">x[y,z]</span> direction with the form</p>
12951299
<p class="formulaDsp">
12961300
\[ a_{x[y,z]} = g_{x[y,z]} + k_{x[y,z]}\sin\left(w_{x[y,z]}t + p_{x[y,z]}\right). \]
12971301
</p>
12981302
<p>By convention, positive accelerations in the <span class="tt">x[y,z]</span> direction are in the positive <span class="tt">x[y,z]</span> direction.</p>
1303+
<p>When <span class="tt">bf_spatial_support</span> is enabled, the body force is given a localized spatial envelope following Wei &amp; Freund (JFM, 2005), parameterized through the <span class="tt">spatial_bf</span> derived type with attributes <span class="tt">amp</span>, <span class="tt">x_centroid</span>, <span class="tt">y_centroid</span>, <span class="tt">conv_vel</span>, <span class="tt">sigma</span>, and per-mode arrays <span class="tt">freq(1:8)</span>, <span class="tt">phase(1:8)</span>. Unlike the domain-wide <span class="tt">k/w/p/g</span> forcing above, it seeds a downstream instability at a fixed streamwise location with a ladder of forcing frequencies. <span class="tt">x</span> is the streamwise direction by convention for this forcing: the <span class="tt">x</span> component advects with the mean flow via a <span class="tt">conv_vel*t</span> term, while the cross-stream (<span class="tt">y</span>) component does not. The source is constructed from a streamfunction, so it is divergence-free, and the corresponding <span class="tt">u*f</span> work term is added to the energy equation. This forcing is implemented for <b>2D cases only</b>; enabling it in 1D or 3D is rejected at startup.</p>
12991304
<h3 class="doxsection"><a class="anchor" id="autotoc_md31"></a>
13001305
14. Magnetohydrodynamics (MHD)</h3>
13011306
<table class="markdownTable">

documentation/case_constraints.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ <h2 class="doxsection"><a class="anchor" id="physics-warnings"></a>
14621462
</table>
14631463
<hr />
14641464
<p>💡 <b>Tip:</b> If you encounter a validation error, check the relevant section above or review <a href="https://github.com/MFlowCode/MFC/blob/master/toolchain/mfc/case_validator.py"><span class="tt">case_validator.py</span></a> for complete validation logic.</p>
1465-
<div style="text-align:center; font-size:0.75rem; color:#888; padding:16px 0 0;">Page last updated: 2026-07-21</div> </div></div><!-- contents -->
1465+
<div style="text-align:center; font-size:0.75rem; color:#888; padding:16px 0 0;">Page last updated: 2026-07-22</div> </div></div><!-- contents -->
14661466
</div><!-- PageDoc -->
14671467
</div><!-- doc-content -->
14681468
<div id="page-nav" class="page-nav-panel">

documentation/cli-reference.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ <h3 class="doxsection"><a class="anchor" id="autotoc_md82"></a>
999999
<h3 class="doxsection"><a class="anchor" id="autotoc_md83"></a>
10001000
Debug Logging (<span class="tt">-d, --debug-log</span>)</h3>
10011001
<p>Enables debug logging for the Python toolchain (mfc.sh internals). This is for troubleshooting the build system, not the MFC simulation code.</p>
1002-
<div style="text-align:center; font-size:0.75rem; color:#888; padding:16px 0 0;">Page last updated: 2026-07-21</div> </div></div><!-- contents -->
1002+
<div style="text-align:center; font-size:0.75rem; color:#888; padding:16px 0 0;">Page last updated: 2026-07-22</div> </div></div><!-- contents -->
10031003
</div><!-- PageDoc -->
10041004
</div><!-- doc-content -->
10051005
<div id="page-nav" class="page-nav-panel">

documentation/doxygen_crawl.html

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,12 @@
416416
<a href="gpuParallelization.html#autotoc_md375"/>
417417
<a href="graph_legend.html"/>
418418
<a href="index.html"/>
419-
<a href="index.html#autotoc_md502"/>
420-
<a href="index.html#autotoc_md503"/>
421419
<a href="index.html#autotoc_md504"/>
422420
<a href="index.html#autotoc_md505"/>
423421
<a href="index.html#autotoc_md506"/>
424422
<a href="index.html#autotoc_md507"/>
423+
<a href="index.html#autotoc_md508"/>
424+
<a href="index.html#autotoc_md509"/>
425425
<a href="pages.html"/>
426426
<a href="papers.html"/>
427427
<a href="papers.html#autotoc_md376"/>
@@ -450,17 +450,18 @@
450450
<a href="parameters.html#autotoc_md409"/>
451451
<a href="parameters.html#autotoc_md411"/>
452452
<a href="parameters.html#autotoc_md413"/>
453-
<a href="parameters.html#autotoc_md418"/>
453+
<a href="parameters.html#autotoc_md415"/>
454454
<a href="parameters.html#autotoc_md420"/>
455455
<a href="parameters.html#autotoc_md422"/>
456456
<a href="parameters.html#autotoc_md424"/>
457457
<a href="parameters.html#autotoc_md426"/>
458458
<a href="parameters.html#autotoc_md428"/>
459-
<a href="parameters.html#autotoc_md432"/>
459+
<a href="parameters.html#autotoc_md430"/>
460460
<a href="parameters.html#autotoc_md434"/>
461461
<a href="parameters.html#autotoc_md436"/>
462462
<a href="parameters.html#autotoc_md438"/>
463-
<a href="parameters.html#autotoc_md447"/>
463+
<a href="parameters.html#autotoc_md440"/>
464+
<a href="parameters.html#autotoc_md449"/>
464465
<a href="parameters.html#bc_x"/>
465466
<a href="parameters.html#bc_y"/>
466467
<a href="parameters.html#bc_z"/>
@@ -483,6 +484,7 @@
483484
<a href="parameters.html#probe"/>
484485
<a href="parameters.html#schlieren_alpha"/>
485486
<a href="parameters.html#simplex_params"/>
487+
<a href="parameters.html#spatial_bf"/>
486488
<a href="parameters.html#stl_models"/>
487489
<a href="parameters.html#synth_L"/>
488490
<a href="parameters.html#synth_amp_shell"/>
@@ -497,125 +499,123 @@
497499
<a href="parameters.html#z_domain"/>
498500
<a href="parameters.html#z_output"/>
499501
<a href="physics_constraints.html"/>
500-
<a href="physics_constraints.html#autotoc_md448"/>
501502
<a href="physics_constraints.html#autotoc_md450"/>
502-
<a href="physics_constraints.html#autotoc_md451"/>
503503
<a href="physics_constraints.html#autotoc_md452"/>
504504
<a href="physics_constraints.html#autotoc_md453"/>
505+
<a href="physics_constraints.html#autotoc_md454"/>
505506
<a href="physics_constraints.html#autotoc_md455"/>
506-
<a href="physics_constraints.html#autotoc_md456"/>
507507
<a href="physics_constraints.html#autotoc_md457"/>
508+
<a href="physics_constraints.html#autotoc_md458"/>
508509
<a href="physics_constraints.html#autotoc_md459"/>
509-
<a href="physics_constraints.html#autotoc_md460"/>
510510
<a href="physics_constraints.html#autotoc_md461"/>
511511
<a href="physics_constraints.html#autotoc_md462"/>
512+
<a href="physics_constraints.html#autotoc_md463"/>
512513
<a href="physics_constraints.html#autotoc_md464"/>
513-
<a href="physics_constraints.html#autotoc_md465"/>
514+
<a href="physics_constraints.html#autotoc_md466"/>
514515
<a href="physics_constraints.html#autotoc_md467"/>
515-
<a href="physics_constraints.html#autotoc_md468"/>
516+
<a href="physics_constraints.html#autotoc_md469"/>
516517
<a href="physics_constraints.html#autotoc_md470"/>
517-
<a href="physics_constraints.html#autotoc_md471"/>
518+
<a href="physics_constraints.html#autotoc_md472"/>
518519
<a href="physics_constraints.html#autotoc_md473"/>
519-
<a href="physics_constraints.html#autotoc_md474"/>
520520
<a href="physics_constraints.html#autotoc_md475"/>
521521
<a href="physics_constraints.html#autotoc_md476"/>
522+
<a href="physics_constraints.html#autotoc_md477"/>
522523
<a href="physics_constraints.html#autotoc_md478"/>
523-
<a href="physics_constraints.html#autotoc_md479"/>
524524
<a href="physics_constraints.html#autotoc_md480"/>
525525
<a href="physics_constraints.html#autotoc_md481"/>
526526
<a href="physics_constraints.html#autotoc_md482"/>
527527
<a href="physics_constraints.html#autotoc_md483"/>
528528
<a href="physics_constraints.html#autotoc_md484"/>
529529
<a href="physics_constraints.html#autotoc_md485"/>
530+
<a href="physics_constraints.html#autotoc_md486"/>
530531
<a href="physics_constraints.html#autotoc_md487"/>
531-
<a href="physics_constraints.html#autotoc_md488"/>
532532
<a href="physics_constraints.html#autotoc_md489"/>
533533
<a href="physics_constraints.html#autotoc_md490"/>
534534
<a href="physics_constraints.html#autotoc_md491"/>
535+
<a href="physics_constraints.html#autotoc_md492"/>
535536
<a href="physics_constraints.html#autotoc_md493"/>
536-
<a href="physics_constraints.html#autotoc_md494"/>
537+
<a href="physics_constraints.html#autotoc_md495"/>
537538
<a href="physics_constraints.html#autotoc_md496"/>
538-
<a href="physics_constraints.html#autotoc_md497"/>
539539
<a href="physics_constraints.html#autotoc_md498"/>
540+
<a href="physics_constraints.html#autotoc_md499"/>
540541
<a href="physics_constraints.html#autotoc_md500"/>
541-
<a href="physics_constraints.html#autotoc_md501"/>
542+
<a href="physics_constraints.html#autotoc_md502"/>
543+
<a href="physics_constraints.html#autotoc_md503"/>
542544
<a href="running.html"/>
543-
<a href="running.html#autotoc_md508"/>
544-
<a href="running.html#autotoc_md509"/>
545+
<a href="running.html#autotoc_md510"/>
545546
<a href="running.html#autotoc_md511"/>
546547
<a href="running.html#autotoc_md513"/>
547-
<a href="running.html#autotoc_md514"/>
548548
<a href="running.html#autotoc_md515"/>
549549
<a href="running.html#autotoc_md516"/>
550550
<a href="running.html#autotoc_md517"/>
551551
<a href="running.html#autotoc_md518"/>
552552
<a href="running.html#autotoc_md519"/>
553553
<a href="running.html#autotoc_md520"/>
554554
<a href="running.html#autotoc_md521"/>
555+
<a href="running.html#autotoc_md522"/>
555556
<a href="running.html#autotoc_md523"/>
556-
<a href="running.html#autotoc_md524"/>
557557
<a href="running.html#autotoc_md525"/>
558558
<a href="running.html#autotoc_md526"/>
559559
<a href="running.html#autotoc_md527"/>
560560
<a href="running.html#autotoc_md528"/>
561+
<a href="running.html#autotoc_md529"/>
561562
<a href="running.html#autotoc_md530"/>
562563
<a href="running.html#autotoc_md532"/>
564+
<a href="running.html#autotoc_md534"/>
563565
<a href="testing.html"/>
564-
<a href="testing.html#autotoc_md533"/>
565-
<a href="testing.html#autotoc_md534"/>
566566
<a href="testing.html#autotoc_md535"/>
567+
<a href="testing.html#autotoc_md536"/>
568+
<a href="testing.html#autotoc_md537"/>
567569
<a href="troubleshooting.html"/>
568-
<a href="troubleshooting.html#autotoc_md536"/>
569-
<a href="troubleshooting.html#autotoc_md537"/>
570570
<a href="troubleshooting.html#autotoc_md538"/>
571571
<a href="troubleshooting.html#autotoc_md539"/>
572572
<a href="troubleshooting.html#autotoc_md540"/>
573+
<a href="troubleshooting.html#autotoc_md541"/>
573574
<a href="troubleshooting.html#autotoc_md542"/>
574-
<a href="troubleshooting.html#autotoc_md543"/>
575575
<a href="troubleshooting.html#autotoc_md544"/>
576576
<a href="troubleshooting.html#autotoc_md545"/>
577+
<a href="troubleshooting.html#autotoc_md546"/>
577578
<a href="troubleshooting.html#autotoc_md547"/>
578-
<a href="troubleshooting.html#autotoc_md548"/>
579579
<a href="troubleshooting.html#autotoc_md549"/>
580580
<a href="troubleshooting.html#autotoc_md550"/>
581581
<a href="troubleshooting.html#autotoc_md551"/>
582582
<a href="troubleshooting.html#autotoc_md552"/>
583+
<a href="troubleshooting.html#autotoc_md553"/>
583584
<a href="troubleshooting.html#autotoc_md554"/>
584-
<a href="troubleshooting.html#autotoc_md555"/>
585585
<a href="troubleshooting.html#autotoc_md556"/>
586586
<a href="troubleshooting.html#autotoc_md557"/>
587587
<a href="troubleshooting.html#autotoc_md558"/>
588+
<a href="troubleshooting.html#autotoc_md559"/>
588589
<a href="troubleshooting.html#autotoc_md560"/>
589-
<a href="troubleshooting.html#autotoc_md561"/>
590590
<a href="troubleshooting.html#autotoc_md562"/>
591591
<a href="troubleshooting.html#autotoc_md563"/>
592592
<a href="troubleshooting.html#autotoc_md564"/>
593593
<a href="troubleshooting.html#autotoc_md565"/>
594+
<a href="troubleshooting.html#autotoc_md566"/>
594595
<a href="troubleshooting.html#autotoc_md567"/>
595-
<a href="troubleshooting.html#autotoc_md568"/>
596596
<a href="troubleshooting.html#autotoc_md569"/>
597597
<a href="troubleshooting.html#autotoc_md570"/>
598+
<a href="troubleshooting.html#autotoc_md571"/>
598599
<a href="troubleshooting.html#autotoc_md572"/>
599-
<a href="troubleshooting.html#autotoc_md573"/>
600600
<a href="troubleshooting.html#autotoc_md574"/>
601601
<a href="troubleshooting.html#autotoc_md575"/>
602602
<a href="troubleshooting.html#autotoc_md576"/>
603603
<a href="troubleshooting.html#autotoc_md577"/>
604+
<a href="troubleshooting.html#autotoc_md578"/>
604605
<a href="troubleshooting.html#autotoc_md579"/>
605-
<a href="troubleshooting.html#autotoc_md580"/>
606606
<a href="troubleshooting.html#autotoc_md581"/>
607607
<a href="troubleshooting.html#autotoc_md582"/>
608608
<a href="troubleshooting.html#autotoc_md583"/>
609+
<a href="troubleshooting.html#autotoc_md584"/>
609610
<a href="troubleshooting.html#autotoc_md585"/>
610-
<a href="troubleshooting.html#autotoc_md586"/>
611611
<a href="troubleshooting.html#autotoc_md587"/>
612612
<a href="troubleshooting.html#autotoc_md588"/>
613613
<a href="troubleshooting.html#autotoc_md589"/>
614+
<a href="troubleshooting.html#autotoc_md590"/>
614615
<a href="troubleshooting.html#autotoc_md591"/>
616+
<a href="troubleshooting.html#autotoc_md593"/>
615617
<a href="visualization.html"/>
616-
<a href="visualization.html#autotoc_md592"/>
617618
<a href="visualization.html#autotoc_md594"/>
618-
<a href="visualization.html#autotoc_md595"/>
619619
<a href="visualization.html#autotoc_md596"/>
620620
<a href="visualization.html#autotoc_md597"/>
621621
<a href="visualization.html#autotoc_md598"/>
@@ -627,13 +627,15 @@
627627
<a href="visualization.html#autotoc_md604"/>
628628
<a href="visualization.html#autotoc_md605"/>
629629
<a href="visualization.html#autotoc_md606"/>
630+
<a href="visualization.html#autotoc_md607"/>
630631
<a href="visualization.html#autotoc_md608"/>
631-
<a href="visualization.html#autotoc_md609"/>
632632
<a href="visualization.html#autotoc_md610"/>
633633
<a href="visualization.html#autotoc_md611"/>
634634
<a href="visualization.html#autotoc_md612"/>
635635
<a href="visualization.html#autotoc_md613"/>
636636
<a href="visualization.html#autotoc_md614"/>
637637
<a href="visualization.html#autotoc_md615"/>
638+
<a href="visualization.html#autotoc_md616"/>
639+
<a href="visualization.html#autotoc_md617"/>
638640
</body>
639641
</html>

documentation/examples.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ <h2 class="doxsection"><a class="anchor" id="autotoc_md313"></a>
630630
<h3 class="doxsection"><a class="anchor" id="autotoc_md314"></a>
631631
Liutex visualization at transitional state</h3>
632632
<p><img src="result-3D_turb_mixing-example.png" alt="" height="400" class="inline"/></p>
633-
<div style="text-align:center; font-size:0.75rem; color:#888; padding:16px 0 0;">Page last updated: 2026-07-21</div> </div></div><!-- contents -->
633+
<div style="text-align:center; font-size:0.75rem; color:#888; padding:16px 0 0;">Page last updated: 2026-07-22</div> </div></div><!-- contents -->
634634
</div><!-- PageDoc -->
635635
</div><!-- doc-content -->
636636
<div id="page-nav" class="page-nav-panel">

0 commit comments

Comments
 (0)