STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
injector_layout Namespace Reference

Functions

 solved_flows (str path)

Variables

float PSI = 6894.757
list args = [a for a in sys.argv[1:] if a != "--no-flows"]
list path = args[0]
str flows = None if "--no-flows" in sys.argv[1:] else solved_flows(path)

Detailed Description

Print the injector layout (engine/core/injectors/layout.py) for a config, as JSON.

    python3 scripts/injector_layout.py configs/ethalox_8kN_SHIP.yaml

The config is evaluated at its tank pressures (lox_tank / fuel_tank ``initial_pressure_psi``) and
the solve's flows go to the layout, so it also reports the channels' velocity head, the orifices'
cavitation margin and the plate's bending at the solved Pc. ``--no-flows`` skips the solve:
geometry only, with the plate checked at ``target_chamber_pressure_psi``.

Regenerate the frontend's drawing fixture (geometry only, so it does not move with the physics):

    python3 scripts/injector_layout.py --no-flows configs/ethalox_6500N.yaml \
        > frontend/src/components/__fixtures__/layout_6500N.json

Function Documentation

◆ solved_flows()

injector_layout.solved_flows ( str path)
The flows of ``path`` evaluated at its tank pressures.

Definition at line 28 of file injector_layout.py.

Variable Documentation

◆ args

list injector_layout.args = [a for a in sys.argv[1:] if a != "--no-flows"]

Definition at line 39 of file injector_layout.py.

◆ flows

str injector_layout.flows = None if "--no-flows" in sys.argv[1:] else solved_flows(path)

Definition at line 41 of file injector_layout.py.

◆ path

list injector_layout.path = args[0]

Definition at line 40 of file injector_layout.py.

◆ PSI

float injector_layout.PSI = 6894.757

Definition at line 25 of file injector_layout.py.