Skip to content

Commit 0d748f5

Browse files
author
MFC Action
committed
Docs @ f3cfba8
1 parent 1763799 commit 0d748f5

303 files changed

Lines changed: 27802 additions & 21836 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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ <h2 class="doxsection"><a class="anchor" id="autotoc_md7"></a>
286286
<td class="markdownTableBodyNone"><span class="tt">m_body_forces</span> </td><td class="markdownTableBodyNone">Computes gravitational and user-defined body force source terms for the momentum equations </td></tr>
287287
<tr class="markdownTableRowEven">
288288
<td class="markdownTableBodyNone"><span class="tt">m_pressure_relaxation</span> </td><td class="markdownTableBodyNone">Pressure relaxation for the six-equation multi-component model via Newton&ndash;Raphson equilibration and volume-fraction correction </td></tr>
289+
<tr class="markdownTableRowOdd">
290+
<td class="markdownTableBodyNone"><span class="tt">m_collisions</span> </td><td class="markdownTableBodyNone">Ghost-node immersed boundary method: locates ghost/image points, computes interpolation coefficients, and corrects the flow state </td></tr>
289291
</table>
290292
<h2 class="doxsection"><a class="anchor" id="autotoc_md8"></a>
291293
Boundary Conditions</h2>
@@ -401,7 +403,7 @@ <h1 class="doxsection"><a class="anchor" id="autotoc_md13"></a>
401403
<li><b>Add the module to <span class="tt">docs/module_categories.json</span></b> so it appears in this page</li>
402404
</ol>
403405
<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>
404-
<div style="text-align:center; font-size:0.75rem; color:#888; padding:16px 0 0;">Page last updated: 2026-04-14</div> </div></div><!-- contents -->
406+
<div style="text-align:center; font-size:0.75rem; color:#888; padding:16px 0 0;">Page last updated: 2026-04-15</div> </div></div><!-- contents -->
405407
</div><!-- PageDoc -->
406408
</div><!-- doc-content -->
407409
<div id="page-nav" class="page-nav-panel">

documentation/case.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,14 @@ <h3 class="doxsection"><a class="anchor" id="sec-immersed-boundary-patches"></a>
466466
<td class="markdownTableBodyRight"><span class="tt">vel(i)</span> </td><td class="markdownTableBodyCenter">Real </td><td class="markdownTableBodyLeft">Initial velocity of the moving IB in the i-th direction. </td></tr>
467467
<tr class="markdownTableRowEven">
468468
<td class="markdownTableBodyRight"><span class="tt">angular_vel(i)</span> </td><td class="markdownTableBodyCenter">Real </td><td class="markdownTableBodyLeft">Initial angular velocity of the moving IB in the i-th direction. </td></tr>
469+
<tr class="markdownTableRowOdd">
470+
<td class="markdownTableBodyRight"><span class="tt">coefficient_of_restitution</span> </td><td class="markdownTableBodyCenter">Real </td><td class="markdownTableBodyLeft">A number 0 to 1 describing how elastic IB collisions are </td></tr>
471+
<tr class="markdownTableRowEven">
472+
<td class="markdownTableBodyRight"><span class="tt">collision_model</span> </td><td class="markdownTableBodyCenter">Integer </td><td class="markdownTableBodyLeft">Integer to select the collision model being used for IB collisions. </td></tr>
473+
<tr class="markdownTableRowOdd">
474+
<td class="markdownTableBodyRight"><span class="tt">collision_time</span> </td><td class="markdownTableBodyCenter">Real </td><td class="markdownTableBodyLeft">Amount of simulation time used to resolve collisions </td></tr>
475+
<tr class="markdownTableRowEven">
476+
<td class="markdownTableBodyRight"><span class="tt">ib_coefficient_of_friction</span> </td><td class="markdownTableBodyCenter">Real </td><td class="markdownTableBodyLeft">Coefficient of friction used in IB collisions </td></tr>
469477
</table>
470478
<p>These parameters should be prepended with <span class="tt">patch_ib(j)%</span> where $j$ is the patch index.</p>
471479
<h4 class="doxsection"><a class="anchor" id="autotoc_md24"></a>
@@ -482,6 +490,10 @@ <h4 class="doxsection"><a class="anchor" id="autotoc_md24"></a>
482490
<li><span class="tt">moving_ibm</span> sets the method by which movement will be applied to the immersed boundary. Using 0 will result in no movement. Using 1 will result 1-way coupling where the boundary moves at a constant rate and applied forces to the fluid based upon it's own motion. In 1-way coupling, the fluid does not apply forces back onto the IB. Using 2 will result in 2-way coupling, where the boundary pushes on the fluid and the fluid pushes back on the boundary via pressure and viscous forces. If external forces are applied, the boundary will also experience those forces.</li>
483491
<li><span class="tt">vel(i)</span> is the initial linear velocity of the IB in the x, y, z direction for i=1, 2, 3. When <span class="tt">moving_ibm</span> equals 2, this velocity is just the starting speed of the object, which will then accelerate due to external forces. If <span class="tt">moving_ibm</span> equals 1, then this is constant if it is a number, or can be described analytically with an expression.</li>
484492
<li><span class="tt">angular_vel(i)</span> is the initial angular velocity of the IB about the x, y, z axes for i=1, 2, 3 in radians per second. When <span class="tt">moving_ibm</span> equals 2, this rotation rate is just the starting rate of the object, which will then change due to external torques. If <span class="tt">moving_ibm</span> equals 1, then this is constant if it is a number, or can be described analytically with an expression.</li>
493+
<li><span class="tt">coefficient_of_restitution</span> is a number from 0 (exclusive) to 1 (inclusive) describing how elastic IB collisions are. 0 is for perfectly inellastic collisions while 1 is for perfectly ellastic collisions.</li>
494+
<li><span class="tt">collision_model</span> is an integer to select the collision model being used for IB collisions. Using 0 disables collisions and collisiono checking. 1 enables the soft-sphere collision model, where all IBs must be circles or sphere and those IBs can collide with each other as well as walls.</li>
495+
<li><span class="tt">collision_time</span> is approximately the amount of simulation time used to resolve collisions. This is handled by modifying the spring gonstant used to apply collision forces.</li>
496+
<li><span class="tt">ib_coefficient_of_friction</span> is the coefficient of friction used in IB collisions.</li>
485497
</ul>
486498
<h3 class="doxsection"><a class="anchor" id="sec-fluid-materials"></a>
487499
5. Fluid Material's</h3>

documentation/case_constraints.html

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,15 @@ <h2 class="doxsection"><a class="anchor" id="quick-parameter-reference"></a>
761761
</details>
762762
<details >
763763
<summary >
764+
<b>collision_model</b> (<span class="tt">collision_model</span>)</summary>
765+
<p></p>
766+
<p><b>Dependencies:</b></p><ul>
767+
<li>When set, requires: <span class="tt">ib</span>, <span class="tt">coefficient_of_restitution</span>, <span class="tt">collision_time</span></li>
768+
</ul>
769+
<p></p>
770+
</details>
771+
<details >
772+
<summary >
764773
<b>dt</b> (<span class="tt">dt</span>)</summary>
765774
<p></p>
766775
<p><b>Schema constraints:</b></p><ul>
@@ -802,7 +811,7 @@ <h2 class="doxsection"><a class="anchor" id="quick-parameter-reference"></a>
802811
</ul>
803812
<p><b>Valid values</b> (errors):</p><ul>
804813
<li>num_ibs must be &gt;= 1 when ib is enabled</li>
805-
<li>num_ibs must be &lt;= num_patches_max (num_patches_max in m_constants.fpp)</li>
814+
<li>num_ibs must be &lt;= num_ib_patches_max (num_ib_patches_max in m_constants.fpp)</li>
806815
</ul>
807816
<p></p>
808817
</details>
@@ -960,7 +969,7 @@ <h2 class="doxsection"><a class="anchor" id="quick-parameter-reference"></a>
960969
</ul>
961970
<p><b>Valid values</b> (errors):</p><ul>
962971
<li>num_ibs must be &gt;= 1 when ib is enabled</li>
963-
<li>num_ibs must be &lt;= num_patches_max (num_patches_max in m_constants.fpp)</li>
972+
<li>num_ibs must be &lt;= num_ib_patches_max (num_ib_patches_max in m_constants.fpp)</li>
964973
</ul>
965974
<p></p>
966975
</details>
@@ -979,7 +988,7 @@ <h2 class="doxsection"><a class="anchor" id="quick-parameter-reference"></a>
979988
<p></p>
980989
<p><b>Schema constraints:</b></p><ul>
981990
<li>Min: 0</li>
982-
<li>Max: 1000</li>
991+
<li>Max: 10</li>
983992
</ul>
984993
<p><b>Valid values</b> (errors):</p><ul>
985994
<li>num_patches must be non-negative</li>
@@ -1420,7 +1429,7 @@ <h2 class="doxsection"><a class="anchor" id="physics-warnings"></a>
14201429
</table>
14211430
<hr />
14221431
<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>
1423-
<div style="text-align:center; font-size:0.75rem; color:#888; padding:16px 0 0;">Page last updated: 2026-04-14</div> </div></div><!-- contents -->
1432+
<div style="text-align:center; font-size:0.75rem; color:#888; padding:16px 0 0;">Page last updated: 2026-04-15</div> </div></div><!-- contents -->
14241433
</div><!-- PageDoc -->
14251434
</div><!-- doc-content -->
14261435
<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
@@ -984,7 +984,7 @@ <h3 class="doxsection"><a class="anchor" id="autotoc_md79"></a>
984984
<h3 class="doxsection"><a class="anchor" id="autotoc_md80"></a>
985985
Debug Logging (<span class="tt">-d, --debug-log</span>)</h3>
986986
<p>Enables debug logging for the Python toolchain (mfc.sh internals). This is for troubleshooting the build system, not the MFC simulation code.</p>
987-
<div style="text-align:center; font-size:0.75rem; color:#888; padding:16px 0 0;">Page last updated: 2026-04-14</div> </div></div><!-- contents -->
987+
<div style="text-align:center; font-size:0.75rem; color:#888; padding:16px 0 0;">Page last updated: 2026-04-15</div> </div></div><!-- contents -->
988988
</div><!-- PageDoc -->
989989
</div><!-- doc-content -->
990990
<div id="page-nav" class="page-nav-panel">

documentation/examples.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ <h3 class="doxsection"><a class="anchor" id="autotoc_md275"></a>
388388
Final Condition</h3>
389389
<p>This figure shows the isosurface with zero q-criterion.</p>
390390
<p><img src="result-3D_TaylorGreenVortex-example.png" alt="" height="400" class="inline"/></p>
391-
<div style="text-align:center; font-size:0.75rem; color:#888; padding:16px 0 0;">Page last updated: 2026-04-14</div> </div></div><!-- contents -->
391+
<div style="text-align:center; font-size:0.75rem; color:#888; padding:16px 0 0;">Page last updated: 2026-04-15</div> </div></div><!-- contents -->
392392
</div><!-- PageDoc -->
393393
</div><!-- doc-content -->
394394
<div id="page-nav" class="page-nav-panel">

0 commit comments

Comments
 (0)