MFC
Exascale flow solver
Loading...
Searching...
No Matches
Physics Constraints

Physics Constraints Reference

Auto-generated from PHYSICS_DOCS in case_validator.py and AST-extracted validation rules. Do not edit by hand.

This document catalogs the physics constraints enforced by MFC's case parameter validator. Constraints are organized by physical category with mathematical justifications.

For parameter syntax and allowed values, see Case Files and the Case Parameters reference. For feature compatibility and working examples, see Case Creator Guide.


Thermodynamic Constraints

Stiffened EOS Positivity

\[\Gamma > 0, \quad \Pi_\infty \geq 0, \quad c_v \geq 0\]

The equation-of-state parameters must satisfy basic positivity requirements for thermodynamic stability.

Stage: common, pre_process, simulation, post_process | Severity: error

Enforced checks:

  • fluid_pp(i)%gamma must be positive
  • fluid_pp(i)%pi_inf must be non-negative
  • fluid_pp(i)%cv must be positive
  • model_eqns = 1 does not support fluid_pp(i)%gamma
  • model_eqns = 1 does not support fluid_pp(i)%pi_inf

References: Wilfong et al. [93]

Initial States Inside a State-Dependent Equation of State

\[\rho e = \Gamma p + \Pi(\rho) > 0, \quad \Gamma c^2 = \frac{(\Gamma + 1) p + \Pi}{\rho} - \Pi' - p\,\Gamma' > 0\]

A reference-curve EOS is only defined where the internal energy and the sound speed it implies are positive; outside that region the solver has no clamp and produces NaNs. Every patch is checked at the state it starts each state-dependent fluid in.

Stage: common, pre_process, simulation, post_process | Severity: error

Enforced checks:

  • patch_icpp(j) starts fluid i outside its equation of state: rho = ar / a (err)
  • patch_icpp(j) starts fluid i outside its equation of state: rho = ar / a, p = p gives rho e = rho_e and Gamma c^2 = c2; both must be positive

References:

Equation of State Selector

\[\rho e = \Gamma\,p + \Pi(\rho), \quad \Gamma = 1/\Gamma_G, \quad \Pi(\rho) = \rho\, e_{\mathrm{ref}}(\rho) - p_{\mathrm{ref}}(\rho)/\Gamma_G\]

Every backend supplies the same two coefficients, and a case may only set the parameters its backend reads: an ideal gas has no pi_inf, and a state-dependent fluid (mie_gruneisen, jwl, vinet) has neither gamma nor pi_inf; qv stays a formation energy shared by every family. A family's parameters are read only when that family is selected, and a temperature (T_wrt, or an Arrhenius burn rate) needs the reference temperature *_t0 as well as cv. The initial state of every patch must lie inside the equation of state (rho e > 0 and c^2 > 0). The features a state-dependent fluid is refused with still read stiffened-gas coefficients directly.

Stage: common, pre_process, simulation, post_process | Severity: error

Enforced checks:

  • fluid_pp(i)%prefix_* are only read when fluid_pp(i)%eos = '{v: n for n, v in eos_names.items()}[value]'
  • fluid_pp(i)%eos must be one of ', '.join((repr(n) for n in eos_names))
  • fluid_pp(i)%eos = 'ideal_gas' has no stiffness; do not set fluid_pp(i)%pi_inf
  • fluid_pp(i)%eos = 'name' requires fluid_pp(i)%prefix_{', '.join(keys)}
  • fluid_pp(i)%k is not read with eos = 'name'; the reference curve replaces it
  • fluid_pp(i)%mg_rho0, mg_c0 and mg_gruneisen must be positive
  • fluid_pp(i)%mg_s must be >= 1 (u_s = c0 + s u_p; s < 1 gives no shock)
  • fluid_pp(i)%jwl_a, jwl_omega and jwl_rho0 must be positive
  • fluid_pp(i)%jwl_r1 > jwl_r2 > 0 is required
  • fluid_pp(i)%vinet_k0, vinet_rho0 and vinet_gruneisen must be positive
  • fluid_pp(i)%vinet_k0p must exceed 1
  • T_wrt = T needs fluid_pp(i)%cv > 0
  • the temperature of fluid i needs fluid_pp(i)%prefix_t0 > 0
  • a state-dependent eos (state_dependent_names) requires model_eqns = 2 or 3
  • a state-dependent eos (state_dependent_names) requires riemann_solver = 1, 2 or 5
  • a state-dependent eos (state_dependent_names) requires wave_speeds = 1 (the PVRS estimate is stiffened-gas only)
  • patch_icpp(j)%hcid = 202/203 read fluid_pp(1)%gamma, which a state-dependent eos does not set
  • a state-dependent eos (state_dependent_names) is not supported with flag = T

References: Wilfong et al. [93]

EOS Parameter Sanity (Transformed Gamma)

\[\Gamma = \frac{1}{\gamma - 1}\]

MFC uses the transformed stiffened gas parameter. A common mistake is entering the physical gamma (e.g., 1.4 for air) instead of the transformed value 1/(gamma-1) = 2.5.

Stage: common, pre_process, simulation, post_process | Severity: warning

Enforced checks:

  • \(\triangle\) fluid_pp(i)%gamma implies physical gamma (unusually high). MFC uses the transformed parameter Gamma = 1/(gamma-1)
  • \(\triangle\) fluid_pp(i)%gamma implies physical gamma (very close to 1). Did you enter the physical gamma instead of 1/(gamma-1)?

References: Wilfong et al. [93], Allaire et al. [1]

Patch Initial Condition Constraints

\[p > 0, \quad \alpha_i \rho_i \geq 0, \quad 0 \leq \alpha_i \leq 1\]

All initial patch pressures must be strictly positive. Partial densities must be non-negative. Volume fractions must be in [0,1].

Stage: pre_process | Severity: error

Enforced checks:

  • patch_icpp(i)%pres must be positive
  • patch_icpp(i)%alpha(j) must be non-negative
  • patch_icpp(i)%alpha(j) must be <= 1
  • patch_icpp(i)%alpha_rho(j) must be non-negative
  • patch_icpp(i)%length_x must be positive
  • patch_icpp(i)%length_y must be positive
  • patch_icpp(i)%length_z must be positive
  • patch_icpp(i)%radius must be positive
  • patch_icpp(i)%r0 must be positive

Mixture Constraints

Volume Fraction Sum

\[\sum_{i=1}^{N_f} \alpha_i = 1\]

For multi-component models, volume fractions must satisfy the mixture constraint.

Stage: pre_process | Severity: warning

Enforced checks:

  • \(\triangle\) patch_icpp(i): volume fractions sum to alpha_sum, expected 1.0

Exceptions (constraint does not apply):

  • Single-fluid Euler-Euler bubble models (alpha represents void fraction)
  • Lagrangian bubble models (Lagrangian phase not tracked on Euler grid)
  • IBM cases (alpha acts as level-set indicator)
  • Alter patches and hard-coded IC patches (values computed at runtime)
  • Analytical expressions (cannot validate statically)

Alpha-Rho Consistency

\[\alpha_j = 0 \Rightarrow \alpha_j \rho_j = 0, \quad \alpha_j > 0 \Rightarrow \alpha_j \rho_j > 0\]

Warns about physically inconsistent combinations: density assigned to an absent phase, or a present phase with zero density.

Stage: pre_process | Severity: warning

Enforced checks:

  • \(\triangle\) patch_icpp(i): alpha(j) = 0 but alpha_rho(j) = alpha_rho (density in absent phase)
  • \(\triangle\) patch_icpp(i): alpha(j) = alpha but alpha_rho(j) = 0 (present phase has zero density)

Domain and Geometry

Domain Bounds

\[x_{\mathrm{end}} > x_{\mathrm{beg}}, \quad y_{\mathrm{end}} > y_{\mathrm{beg}}, \quad z_{\mathrm{end}} > z_{\mathrm{beg}}\]

Each active spatial dimension must have positive extent.

Stage: common, pre_process, simulation, post_process | Severity: error

Enforced checks:

  • x_domain%end (x_end) must be greater than x_domain%beg (x_beg)
  • y_domain%end (y_end) must be greater than y_domain%beg (y_beg)
  • z_domain%end (z_end) must be greater than z_domain%beg (z_beg)

Dimensionality

\[m > 0, \quad n \geq 0, \quad p \geq 0\]

The x-direction must have cells. Cannot have z without y. Cylindrical coordinates require odd p.

Stage: common, pre_process, simulation, post_process | Severity: error

Enforced checks:

  • m must be set
  • m must be positive
  • n must be non-negative
  • p must be non-negative
  • p must be odd for cylindrical coordinates
  • p must be 0 if n = 0

Domain Extents Specified

\[m > 0 \Rightarrow x_{\mathrm{beg}}, x_{\mathrm{end}} \ \mathrm{set}\]

Every dimension that has cells needs its physical extents so that the grid can be generated. Skipped on restarts (old_grid = T), where the mesh is read from the existing grid files.

Stage: pre_process | Severity: error

Enforced checks:

  • x_domain%beg must be set when m > 0
  • x_domain%end must be set when m > 0
  • y_domain%beg must be set when n > 0
  • y_domain%end must be set when n > 0
  • z_domain%beg must be set when p > 0
  • z_domain%end must be set when p > 0

Patch Within Domain

For patches with centroid + length geometry, the bounding box must not be entirely outside the computational domain. Skipped when grid stretching is active.

Stage: pre_process | Severity: error

Enforced checks:

  • patch_icpp(i): x-extent [patch_x_lo, patch_x_hi] is entirely outside domain [x_beg, x_end]
  • patch_icpp(i): y-extent [patch_y_lo, patch_y_hi] is entirely outside domain [y_beg, y_end]
  • patch_icpp(i): z-extent [patch_z_lo, patch_z_hi] is entirely outside domain [z_beg, z_end]

Velocity and Dimensional Consistency

Velocity Components in Inactive Dimensions

\[n = 0 \Rightarrow v_2 = 0, \quad p = 0 \Rightarrow v_3 = 0\]

Setting velocity components in dimensions that do not exist is almost certainly a mistake.

Stage: pre_process | Severity: error

Enforced checks:

  • patch_icpp(i)%vel(2) is nonzero but n = 0 (1D simulation)
  • patch_icpp(i)%vel(3) is nonzero but p = 0 (1D/2D simulation)

Exceptions (constraint does not apply):

  • MHD simulations (transverse velocity couples to magnetic field in 1D)

Model Equations

Model Equation Selection

Model 1: gamma-law single-fluid. Model 2: five-equation (Allaire). Model 3: six-equation (Saurel). Model 4: four-equation (single-component with bubbles).

Stage: common, pre_process, simulation, post_process | Severity: error

Enforced checks:

  • model_eqns must be 1, 2, or 3
  • num_fluids must be positive
  • num_fluids is not supported for model_eqns = 1
  • 5-equation model (model_eqns = 2) requires num_fluids to be set
  • 6-equation model (model_eqns = 3) requires num_fluids to be set
  • model_eqns = 1 does not support mpp_lim
  • num_fluids = 1 does not support mpp_lim
  • 6-equation model (model_eqns = 3) does not support cylindrical coordinates (cyl_coord = T and p != 0)

References: Wilfong et al. [93], Allaire et al. [1], Saurel et al. [71]


Boundary Conditions

Inflow Ramp

\[f(t) = f_0 + (1 - f_0)\left[1 + \tanh\left(6 (t - t_0)/\tau - 3\right)\right]/2\]

A ramped inflow scales the inflow velocity from a fraction f_0 of its final value to that value over a duration tau. It requires an inflow to act on (grcbc_in, or a Dirichlet boundary or patch), a non-negative duration, and f_0 in [0, 1].

Stage: common, pre_process, simulation, post_process | Severity: error

Enforced checks:

  • bc_d%vel_in_ramp must be >= 0
  • bc_d%vel_in_ramp requires bc_d%grcbc_in or a Dirichlet (-17) boundary or patch normal to d
  • bc_d%vel_in_frac0 must lie in [0, 1]

Boundary Condition Compatibility

Periodicity must match on both ends. Valid BC values range from -1 to -17. Cylindrical coordinates have specific BC requirements at the axis.

Stage: common, pre_process, simulation, post_process | Severity: error

Enforced checks:

  • Boundary condition -13 (BC_NULL) is not supported
  • bc_key is not supported for var = 0
  • var != 0 but bc_key is not set
  • bc_dir%beg and bc_dir%end must be both periodic (= -1) or both non-periodic
  • bc_key must be between -1 and -17
  • bc_key must not be -14 (BC_AXIS) for non-cylindrical coordinates
  • n must be positive (2D or 3D) for cylindrical coordinates
  • bc_y%beg must be -2 (BC_REFLECTIVE) for 2D cylindrical coordinates (p = 0)
  • bc_y%beg must be -14 (BC_AXIS) for 3D cylindrical coordinates (p > 0)
  • bc_y%end must be between -1 and -17
  • bc_y%end must not be -14 (BC_AXIS)
  • bc_z%beg must be -1 (periodic) or -2 (reflective) for 3D cylindrical coordinates
  • bc_z%end must be -1 (periodic) or -2 (reflective) for 3D cylindrical coordinates

Bubble Physics

Euler-Euler Bubble Model

\[\Gamma_l\,p_l = \frac{1}{1-\alpha}\left(E - \tfrac{1}{2}\rho|\mathbf{u}|^2\right) - \Pi_{\infty,l}\]

Requires nb >= 1, positive reference quantities. Polydisperse requires odd nb > 1 and poly_sigma > 0. QBMM requires nnode = 4. The closure is written for a single carrier liquid, whose own coefficients enter undiluted with the void fraction appearing only as the 1/(1 - alpha) on the energy, so num_fluids <= 2 (the last advection slot being the void).

Stage: common, pre_process, simulation, post_process | Severity: error + warning

Enforced checks:

  • The Ensemble-Averaged Bubble Model requires nb >= 1
  • Polydisperse bubble dynamics requires nb > 1
  • nb must be odd for polydisperse bubbles
  • thermal must be <= 3
  • Bubble models untested with 6-equation model (model_eqns = 3)
  • Bubble models untested with pi-gamma model (model_eqns = 1)
  • Bubble models untested in cylindrical coordinates
  • The Ensemble-Averaged Bubble Model is derived for a single carrier liquid; num_fluids must be <= 2
  • \(\triangle\) patch_icpp(i)%alpha(void_idx) = alpha is not a dilute void fraction; the Ensemble-Averaged Bubble Model is an O(alpha) expansion and is not recommended above DILUTE_VOID_FRACTION_MAX
  • bub_pp%R0ref (reference bubble radius) must be positive
  • bub_pp%p0ref (reference pressure) must be positive
  • bub_pp%rho0ref (reference density) must be positive
  • bub_pp%T0ref (reference temperature) must be positive
  • bub_pp%mu_l (liquid viscosity) must be non-negative
  • bub_pp%mu_g (gas viscosity) must be non-negative
  • bub_pp%mu_v (vapor viscosity) must be non-negative
  • bub_pp%ss (surface tension) must be non-negative

References: Bryngelson et al. [10]

Bubble Simulation Constraints

Requires HLLC Riemann solver and arithmetic average. Five-equation model does not support Gilmore bubble_model.

Stage: simulation | Severity: error

Enforced checks:

  • Activate only one of the bubble subgrid models (bubbles_euler or bubbles_lagrange)
  • Bubble modeling requires HLLC Riemann solver (riemann_solver = 2)
  • Bubble modeling requires arithmetic average (avg_state = 2)
  • The 5-equation bubbly flow model does not support bubble_model = 1 (Gilmore)

Euler-Lagrange Bubble Model

2D/3D only. Requires polytropic = F and thermal = 3. Not compatible with model_eqns = 3. cluster_type = 1 requires fd_order = 2 or 4. coupling in {one_way, two_way}. Kahan summation not compatible with –mixed precision.

Stage: simulation | Severity: error

Enforced checks:

  • bubbles_lagrange accepts 2D and 3D simulations only
  • file_per_process must be false for bubbles_lagrange
  • The 6-equation flow model does not support bubbles_lagrange
  • bubbles_lagrange requires polytropic = F
  • bubbles_lagrange requires thermal = 3
  • cluster_type >= 2 requires smooth_type = 1
  • lag_params%cluster_type = 1 requires fd_order = 2 or 4 (the cell-pressure interpolation)
  • lag_params%coupling must be one_way or two_way
  • lag_params%vel_model must be 0, 1, or 2
  • lag_params%drag_model must be 0, 1, 2, or 3
  • lag_params%charNz must be positive for 2D bubbles_lagrange
  • lag_params%charwidth must be positive for 2D bubbles_lagrange
  • Non-zero lag_params%vel_model requires fd_order to be set
  • lag_params%kahan_summation = T is not compatible with –mixed precision
  • bubbles_lagrange restarts require parallel_io = T

Feature Compatibility

Magnetohydrodynamics (MHD)

Requires model_eqns = 2, num_fluids = 1, HLL or HLLD Riemann solver. No relativity with HLLD. The relativistic enthalpy h = 1 + (Gamma + 1)p/rho carries no stiffness, so relativity requires pi_inf = 0.

Stage: common, pre_process, simulation, post_process | Severity: error

Enforced checks:

  • MHD is only available for single-component flows (num_fluids = 1)
  • MHD is only available for the 5-equation model (model_eqns = 2)
  • MHD is not available with bubbles_euler (the HLLD mixture coefficients are single-fluid stiffened gas)
  • relativity requires mhd to be enabled
  • relativity assumes an ideal gas; fluid_pp(1)%pi_inf must be 0
  • Bx0 must not be set if MHD is not enabled
  • Bx0 must be set in 1D MHD simulations
  • Bx0 must not be set in 2D/3D MHD simulations

Surface Tension

Requires model_eqns 2 or 3, num_fluids = 2.

Stage: common, pre_process, simulation, post_process | Severity: error

Enforced checks:

  • sigma must be set if surface_tension is enabled
  • sigma must be greater than or equal to zero
  • sigma is set but surface_tension is not enabled
  • The surface tension model requires model_eqns = 2 or model_eqns = 3
  • The surface tension model requires num_fluids = 2

Hypoelasticity

Requires model_eqns = 2, HLL/HLLC/HLLD Riemann solver.

Stage: common, pre_process, simulation, post_process | Severity: error

Enforced checks:

  • riemann_hypo_ADC requires hypoelasticity to be enabled
  • hypo_hll_interface_rhs requires hypoelasticity to be enabled
  • hypoelasticity requires model_eqns = 2
  • hypoelasticity requires HLL (1), HLLC (2), or HLLD (4) Riemann solver
  • riemann_hypo_ADC only applies to HLLC (2) or HLLD (4)
  • hypo_hll_interface_rhs requires HLL Riemann solver (riemann_solver = 1)
  • HLLD hypoelasticity does not support viscous effects (the dual-pass omits the viscous source term)
  • HLLD hypoelasticity does not support surface tension (the dual-pass omits the surface-tension source term)
  • 3D cylindrical hypoelasticity is not supported
  • HLLD hypoelasticity requires at least 2D (n > 0)
  • HLLD hypoelasticity requires exactly 2 fluid components
  • hypoelastic alt_soundspeed requires exactly 2 fluid components
  • MHD and hypoelasticity cannot be enabled together
  • Hypoelasticity does not support Euler-Euler bubbles
  • HLLD hypoelasticity does not support continuum damage (the dual-pass does not damage-scale the shear modulus)
  • HLLD hypoelasticity does not support chemistry
  • riemann_hypo_ADC does not support bubbles, surface tension, chemistry, or continuum damage (the ADC HLL blend omits their flux components)
  • hypoelasticity requires fd_order to be set (1, 2, or 4); the finite-difference coefficients are initialized unconditionally
  • Pressure-based wave speeds (wave_speeds = 2) omit the elastic longitudinal speed and are not supported with hypoelasticity
  • riemann_hypo_ADC does not support low_Mach (the ADC HLL reference flux uses pre-correction velocities)
  • ADC_kappa must be positive
  • Automatic CFL time stepping uses the acoustic sound speed only and does not bound the elastic characteristic speed; set dt explicitly for hypoelastic runs

Phase Change

Model 2: relax_model 5 or 6. Model 3: relax_model 1, 4, 5, or 6.

Stage: common, pre_process, simulation, post_process | Severity: error

Enforced checks:

  • phase change requires num_fluids >= 2 (liquid = 1, vapor = 2)
  • phase change requires model_eqns==2 with relax_model in [5,6] or model_eqns==3 with relax_model in [1,4,5,6]
  • palpha_eps must be positive
  • palpha_eps must be less than 1
  • ptgalpha_eps must be positive
  • ptgalpha_eps must be less than 1

Alternative Sound Speed

Requires model_eqns = 2, exactly two fluid components, HLL/HLLC/HLLD solver. Incompatible with bubbles.

Stage: simulation | Severity: error

Enforced checks:

  • 5-equation model (model_eqns = 2) is required for alt_soundspeed
  • alt_soundspeed is not compatible with bubbles_euler
  • alt_soundspeed requires avg_state = 2
  • alt_soundspeed requires HLL (1), HLLC (2), or HLLD (4) Riemann solver
  • alt_soundspeed requires exactly 2 fluid components (the Kapila K coefficient is a two-fluid closure)
  • alt_soundspeed with HLL Method 1 is not supported for 2D axisymmetric geometry
  • alt_soundspeed with HLL is not currently supported for 3D cylindrical geometry
  • alt_soundspeed with HLLD requires hypoelasticity = T

Iterative Generalized Riemann (IGR)

Requires model_eqns = 2. Incompatible with characteristic BCs, bubbles, MHD, and elastic models.

Stage: common, pre_process, simulation, post_process | Severity: error

Enforced checks:

  • igr_pres_lim requires igr to be enabled
  • igr does not support fluid_pp(i)%qv (heat of formation); it is discarded
  • igr_order must be 3 or 5

Non-Newtonian (Herschel-Bulkley) Viscosity

\[\tau = (\tau_0 + K \dot{\gamma}^n) \hat{e}, \quad \mu_{\rm eff} \in [\mu_{\min}, \mu_{\max}]\]

Per-fluid Herschel-Bulkley shear-dependent viscosity. Requires viscous=T, model_eqns 2 or 3, riemann_solver 1 (HLL) or 2 (HLLC), and K, nn, mu_max to be set. When tau0 > 0, hb_m (Papanastasiou regularization) must also be set. K, nn, mu_max must be positive; mu_min and hb_m must be positive when set; tau0 must be non-negative. Re(2) and mu_bulk (bulk viscosity) are rejected for non-Newtonian fluids, and HB parameters are rejected on fluids without non_newtonian=T. Incompatible with igr.

Stage: simulation | Severity: error

Enforced checks:

  • fluid_pp(i)%hb_param is set, but fluid_pp(i)%non_newtonian is not enabled
  • fluid_pp(i)%non_newtonian requires viscous = T
  • fluid_pp(i)%non_newtonian requires fluid_pp(i)%K to be set
  • fluid_pp(i)%non_newtonian requires fluid_pp(i)%nn to be set
  • fluid_pp(i)%non_newtonian requires fluid_pp(i)%mu_max to be set
  • fluid_pp(i)%K must be positive
  • fluid_pp(i)%nn must be positive
  • fluid_pp(i)%mu_max must be positive
  • fluid_pp(i)%mu_min must be positive
  • fluid_pp(i)%hb_m must be positive
  • fluid_pp(i)%tau0 must be non-negative
  • fluid_pp(i)%non_newtonian: tau0 > 0 requires fluid_pp(i)%hb_m to be set
  • fluid_pp(i)%non_newtonian: mu_max must exceed mu_min
  • fluid_pp(i)%non_newtonian is incompatible with igr
  • fluid_pp(i)%non_newtonian requires model_eqns 2 or 3
  • fluid_pp(i)%non_newtonian requires riemann_solver 1 (HLL) or 2 (HLLC)
  • fluid_pp(i)%mu_bulk (non-Newtonian bulk viscosity) is not yet supported
  • fluid_pp(i)%Re(2) (bulk viscosity) is not supported for non-Newtonian fluids

References: C. [60]

Mean Pressure Gradient Forcing

\[f_i^{n+1} = f_i^n + \frac{G}{\Delta t}\left(Q_i^\ast - 2Q_i^n + Q_i^{n-1}\right)\]

mean_dpdx(i) or mean_mflux(i) requires direction i to be active and periodic on both ends, in Cartesian coordinates. A mean_mflux target requires mean_dpdx_gain G in (0, 4/3), the stable range of the controller; a gain without a target is rejected.

Stage: simulation | Severity: error

Enforced checks:

  • mean_dpdx(i)/mean_mflux(i) set for an inactive direction
  • mean_dpdx(i)/mean_mflux(i) require periodic bc_d (-1) on both ends
  • mean_dpdx/mean_mflux require Cartesian coordinates
  • mean_dpdx/mean_mflux have not been validated with amr

Mean Gas Temperature Source

\[\dot q^{n+1} = \dot q^n + \frac{G\,\overline{\rho c_v}}{\Delta t}\left(T_b^\ast - 2T_b^n + T_b^{n-1}\right)\]

mean_qdot or mean_temp requires chemistry, Cartesian coordinates, periodic x, and periodic or wall (-15, -16) boundaries in y and z. A mean_temp target requires mean_temp_gain G in (0, 4/3); a gain without a target is rejected. mean_temp_wall (positive) requires a mean_temp target.

Stage: simulation | Severity: error

Enforced checks:

  • mean_temp_wall requires a mean_temp target
  • mean_temp_wall must be positive
  • mean_qdot/mean_temp require chemistry
  • mean_qdot/mean_temp require Cartesian coordinates
  • mean_qdot/mean_temp have not been validated with amr
  • mean_qdot/mean_temp require kinds bc_d on both ends
  • mean_temp must be positive
  • mean_temp_wall requires chem_params%diffusion = T (the only conduction path)
  • mean_temp_wall requires mean_mflux(1) > 0: the mixing-cup temperature needs a held streamwise flow
  • mean_temp_wall requires bc_d%side to be isothermal at mean_temp_wall (t_wall K): set bc_d%isothermal_tag and bc_d%Twall_tag
  • mean_temp_wall requires patch_ib(i) to be isothermal at mean_temp_wall (t_wall K): thermal_bc = 1 and Twall

Synthetic Turbulence Forcing

num_turbulent_sources must be > 0 and <= num_turb_sources_max. Each active forcing zone i needs turb_pos(i,d) set and synth_L(i,d) > 0 for every active dimension d (d = 1..num_dims); components beyond num_dims are unused and not required.

Stage: simulation | Severity: error

Enforced checks:

  • num_turbulent_sources must be > 0 when synthetic_turbulence is enabled
  • num_turbulent_sources must be <= num_turb_sources_max (num_turb_sources_max in m_constants.fpp)
  • turb_pos(i,d) must be specified for all num_dims when synthetic_turbulence is enabled
  • synth_L(i,d) must be positive for all num_dims when synthetic_turbulence is enabled

Numerical Schemes

WENO Reconstruction

weno_order must be 1, 3, 5, or 7. Grid must have enough cells. Only one of mapped_weno, wenoz, teno can be active.

Stage: common, pre_process, simulation, post_process | Severity: error

Enforced checks:

  • recon_type = 1 (WENO) is not compatible with muscl_order
  • recon_type = 1 (WENO) is not compatible with muscl_lim
  • weno_order must be 1, 3, 5, or 7

MUSCL Reconstruction

muscl_order must be 1 or 2. Second order requires muscl_lim in {0,1,2,3,4,5}.

Stage: common, pre_process, simulation, post_process | Severity: error

Enforced checks:

  • recon_type = 2 (MUSCL) is not compatible with mapped_weno = T
  • recon_type = 2 (MUSCL) is not compatible with wenoz = T
  • recon_type = 2 (MUSCL) is not compatible with teno = T
  • recon_type = 2 (MUSCL) is not compatible with mp_weno = T
  • recon_type = 2 (MUSCL) is not compatible with weno_avg = T
  • recon_type = 2 (MUSCL) is not compatible with null_weights = T
  • recon_type = 2 (MUSCL) is not compatible with weno_Re_flux = T
  • recon_type = 2 (MUSCL) is not compatible with wenoz_q
  • recon_type = 2 (MUSCL) is not compatible with teno_CT
  • recon_type = 2 (MUSCL) is not compatible with weno_eps
  • recon_type = 2 (MUSCL) requires weno_order unset or 0, but got weno_order
  • muscl_order must be 1 or 2

Time Stepping

time_stepper in {1,2,3}. Fixed dt must be positive. CFL-based modes require cfl_target in (0,1].

Stage: simulation, post_process | Severity: error

Enforced checks:

  • time_stepper must be 1, 2, or 3
  • dt must be positive
  • cfl_target must be in (0, 1]
  • t_stop must be positive
  • t_save must be positive
  • t_save must be <= t_stop
  • n_start must be non-negative
  • t_step_start must be non-negative
  • t_step_stop must be non-negative
  • t_step_stop must be > t_step_start
  • t_step_save must be positive
  • t_step_save must be <= (t_step_stop - t_step_start)
  • dt must be set when using fixed time stepping (t_step_start/t_step_stop)

Viscosity

\[\mathrm{Re}_1 > 0, \quad \mathrm{Re}_2 > 0\]

Reynolds numbers must be positive. Not supported with model_eqns = 1.

Stage: simulation | Severity: error + warning

Enforced checks:

  • fluid_pp(i)%Re(j) must be positive
  • model_eqns = 1 does not support fluid_pp(i)%Re(j)
  • weno_order = 1 without weno_avg does not support fluid_pp(i)%Re(j)
  • Re(j) is specified, but viscous is not set to true
  • viscous is set to true, but fluid_pp(i)%Re(1) is not specified
  • weno_Re_flux requires viscous to be enabled
  • \(\triangle\) weno_Re_flux without weno_avg: a cell's velocity gradient uses only its own two face values, so the viscous flux misses a jump between neighbouring cells (zero wall shear on an impulsive start); set weno_avg = T
  • weno_Re_flux_compact requires weno_Re_flux
  • weno_Re_flux_compact requires Cartesian coordinates

Fourier Heat Conduction

\[k_i \geq 0, \quad k = \sum_i \alpha_i k_i\]

fluid_pp(i)k_therm must be non-negative and, when positive, requires fluid_pp(i)cv > 0 (the thermal-equilibrium mixture temperature is undefined without it). Only the stiffened-gas and ideal-gas equations of state are supported, and only model_eqns = 2 (5-equation) or 3 (6-equation): the mixture conductivity is weighted by the volume fractions those models carry, which model_eqns = 1 does not have. Not supported with igr or chemistry (which carries its own mixture-averaged conduction).

Stage: simulation | Severity: error

Enforced checks:

  • fluid_pp(i)%k_therm must be non-negative
  • fluid_pp(i)%cv must be positive when fluid_pp(i)%k_therm is set: the mixture temperature is undefined without it
  • heat conduction supports only the stiffened-gas and ideal-gas equations of state
  • heat conduction requires model_eqns = 2 (5-equation) or model_eqns = 3 (6-equation): fluid_pp(i)%k_therm is weighted by a volume fraction that model_eqns = 1 does not carry
  • heat conduction is not supported with igr
  • heat conduction is not supported with chemistry: the reacting path already carries mixture-averaged conduction through chem_params%diffusion

Acoustic Sources

Acoustic Sources

Dimension-specific support types. Pulse type in {1,2,3,4}. Non-planar sources require foc_length and aperture.

Stage: simulation | Severity: error

Enforced checks:

  • num_source must be specified for acoustic_source
  • num_source must be non-negative
  • acoustic(j)%support must be specified for acoustic_source
  • Only acoustic(j)%support = 1 is allowed for 1D simulations
  • acoustic(j)%loc(1) must be specified for support = 1
  • Only acoustic(j)%support = 2, 6, or 10 is allowed for 2D axisymmetric
  • Only acoustic(j)%support = 2, 5, 6, 9, or 10 is allowed for 2D
  • acoustic(j)%loc(1:2) must be specified for the given support
  • Only acoustic(j)%support = 3, 7, or 11 is allowed for 3D
  • Acoustic source is not supported in 3D cylindrical simulations
  • acoustic(j)%loc(1:2) must be specified for support = 3
  • acoustic(j)%loc(1:3) must be specified for the given support
  • acoustic(j)%mag must be specified
  • acoustic(j)%pulse must be specified
  • Only acoustic(j)%pulse = 1, 2, 3, or 4 is allowed
  • One and only one of acoustic(j)%frequency or wavelength must be specified for the given pulse
  • acoustic(j)%frequency must be positive
  • acoustic(j)%wavelength must be positive
  • One and only one of acoustic(j)%gauss_sigma_time or gauss_sigma_dist must be specified for pulse = 2
  • acoustic(j)%delay must be specified for pulse = 2 (Gaussian)
  • acoustic(j)%gauss_sigma_time must be positive
  • acoustic(j)%gauss_sigma_dist must be positive
  • acoustic(j)%bb_num_freq must be specified for pulse = 4
  • acoustic(j)%bb_bandwidth must be specified for pulse = 4
  • acoustic(j)%bb_lowest_freq must be specified for pulse = 4
  • acoustic(j)%npulse must be specified
  • acoustic(j)%npulse must be an integer for support >= 5 (non-planar)
  • acoustic(j)%dipole is not supported for npulse >= 5
  • acoustic(j)%dir must be specified for support < 5 (planar)
  • acoustic(j)%dir must be non-zero for support = 1
  • acoustic(j)%support >= 5 is not allowed for pulse = 3 (square wave)
  • acoustic(j)%length must be specified for the given support
  • acoustic(j)%length must be positive for the given support
  • acoustic(j)%height must be specified for support = 3
  • acoustic(j)%height must be positive for support = 3
  • acoustic(j)%foc_length must be specified for support >= 5 (non-planar)
  • acoustic(j)%foc_length must be positive for support >= 5
  • acoustic(j)%aperture must be specified for support >= 5 (non-planar)
  • acoustic(j)%aperture must be positive for support >= 5
  • acoustic(j)%num_elements must be specified for the given support (transducer array)
  • acoustic(j)%num_elements must be positive for the given support
  • acoustic(j)%element_on must be non-negative for the given support
  • acoustic(j)%element_on must be <= num_elements for the given support
  • acoustic(j)%element_spacing_angle must be specified for the given support (2D transducer)
  • acoustic(j)%element_spacing_angle must be non-negative for the given support
  • acoustic(j)%element_polygon_ratio must be specified for support = 11 (3D transducer)
  • acoustic(j)%element_polygon_ratio must be positive for support = 11

Post-Processing

Vorticity Output

omega_wrt requires at least 2D (n > 0). 3D components require p > 0. Requires fd_order.

Stage: post_process | Severity: error

Enforced checks:

  • omega_wrt requires n > 0 (at least 2D)
  • omega_wrt(1) and omega_wrt(2) require p > 0 (3D)
  • fd_order must be set for omega_wrt

FFT Output

Requires 3D with all periodic boundaries. Global dimensions must be even. Incompatible with cylindrical coordinates.

Stage: post_process | Severity: error

Enforced checks:

  • FFT WRT requires periodic BCs (all BCs should be -1)
  • FFT WRT only supported in 3D
  • FFT WRT incompatible with cylindrical coordinates
  • FFT WRT requires global dimensions divisible by 2

Adaptive Mesh Refinement

Adaptive Mesh Refinement (AMR)

Block-structured AMR (Experimental) adds up to amr_max_blocks refined blocks at amr_ref_ratio:1 refinement (amr_ref_ratio = 2 or 4); amr_max_level > 1 nests blocks recursively and needs amr_ref_ratio = 2 and amr_max_blocks >= 2. Requires WENO or MUSCL reconstruction (recon_type = 1 or 2) or IGR, SSP-RK (time_stepper = 1, 2 or 3; 2 or 3 with amr_subcycle) and model_eqns = 2 or 3; num_fluids > 1 additionally requires mpp_lim. Incompatible with Euler-Euler bubbles, QBMM, surface tension, cylindrical coordinates, stretched grids, 2D/3D MHD, Riemann-extrapolation and CBC boundaries, and operator-split reaction or burn substeps. Immersed boundaries must be non-STL on a static block (amr_regrid_int = 0) with no reacting surface. Dynamic regrid (amr_regrid_int > 0) requires amr_tag_eps > 0 and amr_buf >= 1. Under MPI a block covers at most about half of a rank's subdomain per dimension unless amr_max_grid_size caps it explicitly. See docs/documentation/amr.md.

Stage: simulation | Severity: error + warning

Enforced checks:

  • amr_device_pack requires amr = T
  • amr_regrid_int requires amr = T
  • amr requires Cartesian coordinates (cyl_coord = F)
  • amr requires a uniform grid (no stretching)
  • amr is incompatible with k = T
  • amr is incompatible with chem_params%reaction_substeps > 0: the operator-split reaction integrates the coarse grid once per step, after the fine solution has been folded back, so the refined region would never react
  • amr is incompatible with rburn%substeps > 0: the operator-split burn integrates the coarse grid once per step, after the fine solution has been folded back, so the refined region would never burn
  • amr is incompatible with bc_d%e = -4 under null_weights (block-face WENO weight edits)
  • amr has not been validated with ', '.join(unvetted) = T (see the grid-swap contract in amr_implementation.md)
  • amr_max_blocks must be >= 1
  • amr_max_grid_size must be >= 0 (0 derives the block size cap from the decomposition)
  • amr_max_grid_size must be >= 2 coarse cells when set (a block must admit a refinement stencil)
  • amr_max_level must be >= 1
  • multi-level AMR (amr_max_level > 1) needs amr_max_blocks >= 2 (at least one level-1 block plus one nested level-2 block)
  • amr_ref_ratio must be 2 or 4
  • amr_prolong must be 1 (minmod-limited linear) or 2 (quartic)
  • amr_prolong = 2 requires amr_ref_ratio = 2
  • amr_subcycle requires amr_ref_ratio = 2
  • amr_subcycle supports up to two refined levels (amr_max_level <= 2)
  • amr_subcycle requires time_stepper = 2 or 3 (RK1 keeps no step-start state)
  • amr_subcycle does not support IGR
  • amr_subcycle does not support chemistry
  • amr_subcycle does not support Lagrangian bubbles
  • amr_subcycle does not support moving immersed boundaries yet
  • amr_ref_ratio /= 2 is only supported at amr_max_level = 1
  • amr_cluster_eff must satisfy 0 < amr_cluster_eff <= 1
  • amr_blocking_factor must be >= 1 (1 = no minimum box size; the default is 4)
  • amr requires WENO or MUSCL reconstruction (recon_type = 1 or 2) or the IGR solver
  • amr requires time_stepper = 1, 2 or 3 (SSP-RK)
  • amr requires model_eqns = 2 (5-equation) or 3 (6-equation)
  • amr with num_fluids > 1 requires mpp_lim (its volume-fraction clamp+renormalize maintains coarse/fine alpha consistency); Lagrangian bubbles are exempt (their alphas sum to the local liquid fraction)
  • amr with mhd is 1D-only (the coarse/fine seam is not divergence-preserving for B; in 1D div(B) = 0 by construction)
  • amr does not support characteristic (CBC) boundary conditions (bc = -5..-12): the fine-block advance would apply the boundary treatment at block edges inside the domain
  • static multi-level AMR (amr_regrid_int = 0) nests exactly one level-2 block in block 1, so it supports at most amr_max_level = 2; use amr_regrid_int > 0 for deeper or multi-block nesting
  • amr_block_beg must be >= 0
  • amr_block_end must be <= global cell max per axis
  • amr_block_end must exceed amr_block_beg on each active axis (both default to 0, so an amr run must set the initial block)
  • amr fine extent exceeds the base grid (module scratch is sized to the base)
  • amr with ib does not support STL-model geometry (not yet validated)
  • amr with a moving immersed body or dynamic regrid supports circle/rectangle/sphere/box/cylinder geometry only (the block containment bounding box)
  • amr with ib does not support patch_ib thermal_bc or surface_reaction (not yet validated)
  • amr with ib does not support wrt (not yet validated)
  • multi-level AMR (amr_max_level > 1) with a MOVING immersed body is not yet supported; use a static body
  • amr_regrid_int must be >= 0
  • amr_tag_eps must be > 0 when amr_regrid_int > 0
  • amr_tag_var must be 1 (density), 2 (volume fraction of fluid 1), 3 (velocity magnitude), 4 (pressure), 5 (vorticity), 6 (temperature) or 7 (species mass fraction)
  • amr_tag_var = 5 (vorticity) vanishes in 1D: it requires n > 0
  • amr_tag_var = 6 (temperature) and 7 (species mass fraction) require chemistry = T
  • amr_tag_species must be >= 1 (and <= the mechanism's species count, checked at run time)
  • amr_tag_var = 4 (pressure) uses the five-equation mixture pressure: it requires model_eqns = 2 without chemistry, mhd, bubbles_euler or hypoelasticity
  • amr_tag_var = amr_tag_var (velocity magnitude, species mass fraction) requires amr_tag_abs = T: a relative jump is undefined where the variable vanishes
  • amr_buf must be >= 1 when amr_regrid_int > 0
  • amr_snap must be >= 0
  • amr_snap must leave two cells of amr_buf (amr_snap <= amr_buf - 2): a snapped box keeps at least that much tag padding on every face
  • \(\triangle\) amr_buf < amr_regrid_int: at CFL near 1 a feature can outrun the tag buffer between regrids

Combustion

Condensed-Phase Reactive Burn

Programmed pressure-driven burn converting a reactant fluid to a product fluid on the multi-fluid model. Requires model_eqns = 2 or 3 and num_fluids = 2 (reactant, product) sharing the stiffened-gas EOS (equal gamma, pi_inf) with qv_reactant > qv_product. rburnk (> 0), rburnpign (> 0), rburnpref (> 0), and rburnn (>= 0) must all be set. rburnta (activation temperature [K]) is optional and must be >= 0; >0 adds an Arrhenius exp(-rburnta/T) factor and requires fluid_pp(1)cv > 0.

Stage: common, pre_process, simulation, post_process | Severity: error

Enforced checks:

  • reactive_burn requires model_eqns = 2 or 3 (5- or 6-equation multi-fluid model) to be set
  • reactive_burn requires num_fluids = 2 (reactant then product) to be set
  • reactive_burn requires both fluid_pp(1)%prop and fluid_pp(2)%prop to be set (reactant and product share the EOS)
  • reactive_burn requires fluid_pp(1)%prop == fluid_pp(2)%prop (reactant and product share the EOS)
  • reactive_burn requires fluid_pp(1)%qv > fluid_pp(2)%qv (reactant releases energy on conversion to product)
  • reactive_burn requires rburn%k > 0 (rate coefficient [1/s])
  • reactive_burn requires rburn%pign > 0 (ignition pressure threshold [Pa]); unset, or any non-positive value, ignites the reactant everywhere from t = 0
  • reactive_burn requires rburn%pref > 0 (it normalizes the pressure drive and is used as a divisor)
  • reactive_burn requires rburn%n >= 0 (pressure-drive exponent)
  • reactive_burn requires rburn%ta >= 0 (activation temperature [K]; 0 disables the Arrhenius factor)
  • reactive_burn requires rburn%substeps >= 0 (operator-split sub-steps per time step; 0 adds the source to the flow RHS)
  • reactive_burn with rburn%ta > 0 requires fluid_pp(1)%cv > 0 (the reactant temperature needs a physical heat capacity; cv = 0 silently disables the Arrhenius factor)

IC Extrusion

IC Extrusion File Parameters

Extrusion hcids (170, 270, 271, 272, 370, 371) read initial condition data from files. Both files_dir and file_extension must be set.

Stage: pre_process | Severity: error

Enforced checks:

  • patch_icpp(i)%hcid=hcid requires files_dir to be set
  • patch_icpp(i)%hcid=hcid requires file_extension to be set

Particle Physics

Euler-Lagrange Particle Model

2D/3D only, 5-equation model, stiffened-gas EOS; not with bubbles_lagrange, bubbles_euler, ib, igr, cyl_coord, body forces, bubble-only lag_*_wrt outputs, or periodic/reflective boundaries (not yet supported). two_way coupling needs pressure_gradient_force = T; added_mass_force needs coupling = two_way; qs_fluct_force needs qs_force > 0; lag_voidfrac_wrt needs particles_lagrange; rho0ref_particle > 0. lag_db_wrt needs parallel_io = T. coupling in {one_way, two_way}, qs_force in {0..3}, added_mass_force in {0, 1}, even interpolation_order > 0, fd_order = 2 or 4 (centered gradient stencil and halo width), interpolation_order/2 <= 4 (<= 2 + fd_order/2 with the pressure-gradient or added-mass force), charwidth > 0 in 2D, 0 < valmaxvoid < 1. Inviscid, non-chemistry QS drag needs mu_ref(l) > 0 per fluid; suth(l) is optional but positive if given.

Stage: simulation | Severity: error

Enforced checks:

  • lag_voidfrac_wrt requires particles_lagrange (it writes the particle volume fraction)
  • particles_lagrange and bubbles_lagrange cannot both be enabled
  • particles_lagrange requires at least 2D (n > 0)
  • particles_lagrange is not compatible with igr
  • particles_lagrange does not support cyl_coord yet: the axisymmetric projection and source terms are not implemented
  • ppadded_mass_force requires coupling = two_way: the fluid acceleration it uses is only computed with two-way coupling
  • ppqs_fluct_force requires qs_force > 0: the fluctuations are built on the quasi-steady drag
  • ppcoupling = two_way requires pppressure_gradient_force = T: the gas momentum source carries the full -grad p, so without the force on the particles the gas also takes the particles' share
  • particles_lagrange is not supported with flag = T
  • particles_lagrange does not support body forces (bf_x/y/z): the particles get no gravity, and the added-mass force would read g as a fluid acceleration
  • lag_flag_wrt is a bubble output and is not supported with particles_lagrange
  • particle_pp%rho0ref_particle must be positive
  • particles_lagrange requires model_eqns = 2 (5-equation model)
  • particles_lagrange with lag_db_wrt requires parallel_io = T
  • ppcoupling must be one_way (one_way) or two_way (two_way)
  • ppqs_force must be 0 (off), 1 (Gidaspow), 2 (Parmar), or 3 (Osnes)
  • ppvel_model must be 0 (fixed), 1 (tracer), or 2 (Newton's second law)
  • ppvel_model = 1 (tracer) follows the fluid velocity: it requires coupling = one_way and no particle forces
  • ppadded_mass_force must be 0 (off) or 1
  • ppnparticles_glb must be positive
  • ppinterpolation_order must be a positive even integer
  • particles_lagrange requires fd_order = 2 or 4: the particle gradients use a centered stencil of fd_order + 1 points, and fd_order sets the particle halo width
  • ppinterpolation_order = interp_order reaches interp_order // 2 cells past a rank edge, but only max_half ghost layers hold valid data (reason); use interpolation_order <= 2 * max_half
  • ppcharwidth must be positive for 2D particles_lagrange
  • bc_d%loc = bc: periodic and reflective boundaries are not yet supported with particles_lagrange
  • ppvalmaxvoid must be in (0, 1)
  • ppmu_ref(fluid) must be positive for QS drag in an inviscid case
  • ppsuth(fluid) must be positive if given
  • ppsuth(fluid) needs fluid_pp(fluid)%cv > 0: Sutherland's law uses the temperature p/(rho cv (gamma - 1)) in K
Page last updated: 2026-11-24