Source code for tud_lbm.config.config_overview

"""Central configuration flags for TUD-LBM.

Edit these flags to control framework behaviour across the entire package.
All other config modules import from here.
"""

from pathlib import Path

# Configuration flags
[docs] ENABLE_X64: bool = True # Enable 64-bit precision for JAX arrays
[docs] DISABLE_JIT: bool = False # Set to True for debugging (disables JIT compilation)
[docs] DEBUG_FLAG_WETTING: bool = False # Set to True to enable debug output (jax.debug.print calls)
[docs] DEBUG_FLAG_STABILITY: bool = False # Set via --debug-stability; enables stability diagnostics
# Stability-diagnostics tunables (only read when DEBUG_FLAG_STABILITY is True)
[docs] STABILITY_VAPOR_FRACTION: float = 0.2 # wake mask: rho < rho_v + frac * (rho_l - rho_v)
[docs] STABILITY_GRAD_RHO_FRACTION: float = 0.05 # exclude cells with |grad rho| > frac * (rho_l - rho_v)
#: Default directory for storing simulation_type results
[docs] BASE_RESULTS_DIR: str = str(Path("~/TUD_LBM_data/results").expanduser())