"""Single canonical source of Simulation-tab parameter defaults. All Simulation-tab widgets, the initial `sim_params_state`, and the CSV I/O key set derive from this dict. Keeping one source prevents drift between Simulation widget defaults, Sweep-tab defaults, and engine defaults. Keys match the `run_simulation` signature (murphy_unified/tabs/simulation.py). """ from __future__ import annotations SIM_DEFAULTS: dict = { # ── Operating ───────────────────────────────────────────────────── "engine_name": "Lightspeed", "fluid": "H2", "Pexit": 350.0, "speed": 0.65, "Ptank": 7.0, "Psat": 2.0, # ── ICV (9) ─────────────────────────────────────────────────────── "icv_port": 20.5, "icv_mass": 48.0, "icv_travel": 5.0, "icv_dp_area": 779.3, "icv_Fs": 33.4, "icv_SC": 3.75, "icv_leakKv": 7.36e-5, "icv_comp_eff": 1.0, "icv_npts": 100, # ── DCV (9) ─────────────────────────────────────────────────────── "dcv_port": 8.3, "dcv_mass": 25.0, "dcv_travel": 3.79, "dcv_dp_area": 78.54, "dcv_Fs": 7.8, "dcv_SC": 1.053, "dcv_leakKv": 2.6e-6, "dcv_comp_eff": 0.8, "dcv_npts": 200, # ── Pump geometry (12) ──────────────────────────────────────────── "bore": 40.3, "stroke": 60.0, "hOD": 120.0, "cLen": 300.0, "emH": 0.8, "emS": 0.8, "kvoid": 0.026, "kH": 15.0, "Vfv": 37.0, "vac": 760000.0, "cpm": 500.0, "dvf": 0.01, # ── Process / losses (9) ────────────────────────────────────────── "Tamb": 300.0, "htc": 10.0, "drive": 4.0, "Fmult": 30.0, "KvBB": 0.006, "Pbb": 0.0, "fric": 0.5, "Exp": 0.2, "flash_eff": 0.02, # ── Downstream / fill (6) ───────────────────────────────────────── "fill_type": "Fixed Pexit", "num_cycles": 1, "vsnubber": 5.0, "vchss": 50.0, "aov140f": 1.0, "rodia": 0.94, # ── Output selector ─────────────────────────────────────────────── "extra_plots": ["Energy Balance"], }