STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
engine.control.robust_ddp.engine_lut_wrapper.EngineLUTWrapper Class Reference

Public Member Functions

 __init__ (self, str|Path lut_path)
EngineEstimate estimate_from_pressures (self, float P_d_F, float P_d_O, bool use_cache=True)

Public Attributes

 meta = meta
 path = path

Protected Member Functions

Dict[str, float] _evaluate (self, Dict[str, float] point)

Protected Attributes

list _axes = []
dict _outputs = {}

Detailed Description

EngineWrapper interface backed by a precomputed engine performance LUT.

Loads .npz from generate_controller_lut (engine-only mode). Axes: P_u_fuel, P_u_ox.
Outputs: F, MR, P_ch, mdot_F, mdot_O, injector_dp_F, injector_dp_O, stability_score,
injector_stiffness_ok.

Definition at line 19 of file engine_lut_wrapper.py.

Constructor & Destructor Documentation

◆ __init__()

engine.control.robust_ddp.engine_lut_wrapper.EngineLUTWrapper.__init__ ( self,
str | Path lut_path )

Definition at line 27 of file engine_lut_wrapper.py.

Member Function Documentation

◆ _evaluate()

Dict[str, float] engine.control.robust_ddp.engine_lut_wrapper.EngineLUTWrapper._evaluate ( self,
Dict[str, float] point )
protected
Multilinear interpolation at point.

Definition at line 83 of file engine_lut_wrapper.py.

References controller_lut.engine_lut.EngineLUT._axes, _axes, controller_lut.engine_lut.EngineLUT._outputs, and _outputs.

Referenced by estimate_from_pressures().

◆ estimate_from_pressures()

EngineEstimate engine.control.robust_ddp.engine_lut_wrapper.EngineLUTWrapper.estimate_from_pressures ( self,
float P_d_F,
float P_d_O,
bool use_cache = True )
Estimate engine performance from tank/ullage pressures via LUT lookup.

Parameters P_d_F, P_d_O are tank pressures (P_u_fuel, P_u_ox).

Definition at line 48 of file engine_lut_wrapper.py.

References _evaluate().

Member Data Documentation

◆ _axes

list engine.control.robust_ddp.engine_lut_wrapper.EngineLUTWrapper._axes = []
protected

Definition at line 33 of file engine_lut_wrapper.py.

Referenced by _evaluate().

◆ _outputs

dict engine.control.robust_ddp.engine_lut_wrapper.EngineLUTWrapper._outputs = {}
protected

Definition at line 40 of file engine_lut_wrapper.py.

Referenced by _evaluate().

◆ meta

engine.control.robust_ddp.engine_lut_wrapper.EngineLUTWrapper.meta = meta

Definition at line 45 of file engine_lut_wrapper.py.

◆ path


The documentation for this class was generated from the following file: