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

Classes

class  ChamberSolver

Functions

dict _cea_table_range (cache)

Variables

float PC_CHOKE_FLOOR_PA = 2.0 * 101325.0
float PC_MIN_TOTAL_DROP_FRAC = 0.02
int PC_BRACKET_SCAN_POINTS = 32

Detailed Description

Chamber pressure solver: solve supply(Pc) = demand(Pc).

This is the authoritative, pure-Python chamber solver used by every general
evaluation path (frontend solves, time-varying, flight, Layer-1 finalization). The
native C kernel does not hook in here: it accelerates only the Layer-1 inner loop,
through a single ``ed_evaluate`` call in
``engine.accel.evaluate``. Keeping the accelerator out of this solver
is deliberate — it leaves the general path simple, authoritative, and free of any
runtime native/Python switch.

Function Documentation

◆ _cea_table_range()

dict engine.core.chamber_solver._cea_table_range ( cache)
protected
The CEA table's extent per axis, {"Pc": [Pa, Pa], "MR": [..], "eps": [..]}; {} if unknown.

``CEACache.eval`` clamps an off-table input to the edge and says so (``clamped``); a clamped
point is solved on the edge's thermochemistry, which can be far from its own (c* falls
~116 m/s per unit O/F just inside the ethalox table's 2.5 edge and is flat past it).

Definition at line 57 of file chamber_solver.py.

Variable Documentation

◆ PC_BRACKET_SCAN_POINTS

int engine.core.chamber_solver.PC_BRACKET_SCAN_POINTS = 32

Definition at line 54 of file chamber_solver.py.

◆ PC_CHOKE_FLOOR_PA

float engine.core.chamber_solver.PC_CHOKE_FLOOR_PA = 2.0 * 101325.0

Definition at line 48 of file chamber_solver.py.

◆ PC_MIN_TOTAL_DROP_FRAC

float engine.core.chamber_solver.PC_MIN_TOTAL_DROP_FRAC = 0.02

Definition at line 52 of file chamber_solver.py.