|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Classes | |
| class | Run |
Functions | |
| float | area (float d) |
| float | tube_id (float od_in, float wall_in=0.035) |
| None | main () |
Variables | |
| float | IN = 0.0254 |
| float | PSI = 6894.757 |
| float | ROUGHNESS_M = 1.5e-6 |
Compute EngineDesign's lumped feed ``K0`` from an actual component list.
EngineDesign's feed model is a single lumped coefficient per side:
dp = K0 * 0.5 * rho * v^2, v = mdot / (rho * A_hydraulic)
``docs/integration/line-loss-plan.md`` rates that "estimated K" -- rung 4 of 5, a
guess. Until the P&ID path lands, this script is rung 3: itemise the run, take each
K from a correlation rather than memory, and refer every one to a single reference
bore so the sum is a valid K0 for that A_hydraulic.
Reference-area conversion. dp is one number, so for two bores
K_ref = K_local * (A_ref / A_local)^2
because v ~ 1/A. Losses at a WIDE section shrink when expressed against the high
velocity of a NARROW reference bore. Getting this backwards is the classic error.
Friction factors come from ``fluids`` (Colebrook); fitting K's are Crane TP-410 /
Idelchik forms, each labelled at its call site. Run:
python3 scripts/feed_line_K.py
| float feed_line_K.area | ( | float | d | ) |
Definition at line 32 of file feed_line_K.py.
Referenced by feed_line_K.Run._refer(), and feed_line_K.Run.straight().
| None feed_line_K.main | ( | ) |
Definition at line 97 of file feed_line_K.py.
References main(), and tube_id().
Referenced by main().
| float feed_line_K.tube_id | ( | float | od_in, |
| float | wall_in = 0.035 ) |
Definition at line 35 of file feed_line_K.py.
Referenced by main().
| float feed_line_K.IN = 0.0254 |
Definition at line 28 of file feed_line_K.py.
| float feed_line_K.PSI = 6894.757 |
Definition at line 29 of file feed_line_K.py.
| float feed_line_K.ROUGHNESS_M = 1.5e-6 |
Definition at line 30 of file feed_line_K.py.