File size: 2,913 Bytes
2db5fdd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
"""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"],
}