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
<li><b>Add the module to <spanclass="tt">docs/module_categories.json</span></b> so it appears in this page</li>
428
428
</ol>
429
429
<p>Follow the pattern of existing modules like <spanclass="tt">m_body_forces</span> (simple) or <spanclass="tt">m_viscous</span> (more involved) as a template.</p>
<tdclass="markdownTableBodyRight"><spanclass="tt">n</span></td><tdclass="markdownTableBodyCenter">Integer </td><tdclass="markdownTableBodyLeft">Number of grid cells in the $y$-coordinate direction </td></tr>
276
276
<trclass="markdownTableRowEven">
277
277
<tdclass="markdownTableBodyRight"><spanclass="tt">p</span></td><tdclass="markdownTableBodyCenter">Integer </td><tdclass="markdownTableBodyLeft">Number of grid cells in the $z$-coordinate direction </td></tr>
<tdclass="markdownTableBodyRight"><spanclass="tt">rhoref</span></td><tdclass="markdownTableBodyCenter">Real </td><tdclass="markdownTableBodyLeft">Reference density </td></tr>
282
278
</table>
283
279
<p>The parameters define the boundaries of the spatial and temporal domains, and their discretization that are used in simulation.</p>
<tdclass="markdownTableBodyRight"><spanclass="tt">bc_[x,y,z]%ve[1,2,3]</span>‡ </td><tdclass="markdownTableBodyCenter">Real </td><tdclass="markdownTableBodyLeft">Velocity in the (x,1), (y, 2), (z,3) direction applied to <spanclass="tt">bc_[x,y,z]%end</span></td></tr>
<tdclass="markdownTableBodyRight"><spanclass="tt">alt_soundspeed</span> * </td><tdclass="markdownTableBodyCenter">Logical </td><tdclass="markdownTableBodyLeft">Alternate sound speed and \(K \nabla \cdot u\) for 5-equation model </td></tr>
<tdclass="markdownTableBodyRight"><spanclass="tt">Re_inv</span></td><tdclass="markdownTableBodyCenter">Real </td><tdclass="markdownTableBodyLeft">Inverse Reynolds number </td></tr>
1038
1034
<trclass="markdownTableRowOdd">
1039
-
<tdclass="markdownTableBodyRight"><spanclass="tt">pref</span></td><tdclass="markdownTableBodyCenter">Real </td><tdclass="markdownTableBodyLeft">Reference pressure for bubble models </td></tr>
1040
-
<trclass="markdownTableRowEven">
1041
-
<tdclass="markdownTableBodyRight"><spanclass="tt">rhoref</span></td><tdclass="markdownTableBodyCenter">Real </td><tdclass="markdownTableBodyLeft">Reference density for bubble models </td></tr>
1042
-
<trclass="markdownTableRowOdd">
1043
1035
<tdclass="markdownTableBodyRight"><spanclass="tt">fluid_rho</span></td><tdclass="markdownTableBodyCenter">Real </td><tdclass="markdownTableBodyLeft">Reference fluid density </td></tr>
<li><b>Requirements:</b> Set <spanclass="tt">rhoref</span>, Set <spanclass="tt">pref</span>, <spanclass="tt">num_fluids</span> = <spanclass="tt">1</span> (1) </li>
<p>💡 <b>Tip:</b> If you encounter a validation error, check the relevant section above or review <ahref="https://github.com/MFlowCode/MFC/blob/master/toolchain/mfc/case_validator.py"><spanclass="tt">case_validator.py</span></a> for complete validation logic.</p>
<li><b>Pressure formula</b> must match <spanclass="tt">model_eqns</span> value. Model 2/3 (multi-fluid), model 4 (bubbles), MHD, and hypoelastic each use different EOS formulations. Wrong formula = wrong physics.</li>
351
+
<li><b>Pressure formula</b> must match <spanclass="tt">model_eqns</span> value. Model 2/3 (multi-fluid), MHD, and hypoelastic each use different EOS formulations. Wrong formula = wrong physics.</li>
352
352
<li><b>Conservative-primitive conversion:</b> Density recovery, kinetic energy, and pressure each have model-specific paths. Verify the correct branch is taken.</li>
353
353
<li><b>Volume fractions</b> must sum to 1. <spanclass="tt">alpha_rho_K</span> must be non-negative. Species mass fractions should be clipped to [0,1].</li>
354
354
<li><b>Boundary conditions:</b> Periodic BCs must match at both ends (<spanclass="tt">bc_x%beg</span> and <spanclass="tt">bc_x%end</span>). Cylindrical coordinates have special requirements (<spanclass="tt">bc_y%beg = -14</span> for axis in 3D).</li>
<li><spanclass="tt">model_eqns = 1</span>: <b>Gamma/pi_inf model</b> — simplified single-fluid formulation using mixture \(\gamma\) and \(\pi_\infty\) directly without tracking individual volume fractions (Johnsen <aclass="el" href="citelist.html#CITEREF_johnsen08">[24]</a>).</li>
471
-
<li><spanclass="tt">model_eqns = 4</span>: <b>Four-equation model</b> — reduced model from the six-equation system after full pressure-temperature equilibrium relaxation (Tait-like compressible liquid).</li>
0 commit comments