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

Classes

class  EngineEstimate
class  EngineWrapper

Functions

EngineEstimate estimate_from_pressures (float P_d_F, float P_d_O, PintleEngineConfig config, bool use_cache=True)

Detailed Description

Engine physics wrapper for robust DDP controller.

Wraps the existing PintleEngineRunner to provide estimates from feed pressures
with caching for efficient DDP rollouts.

Function Documentation

◆ estimate_from_pressures()

EngineEstimate engine.control.robust_ddp.engine_wrapper.estimate_from_pressures ( float P_d_F,
float P_d_O,
PintleEngineConfig config,
bool use_cache = True )
Estimate engine performance from tank/ullage pressures (convenience function).

**IMPORTANT**: Despite parameter names (P_d_F, P_d_O), these represent
TANK/ULLAGE PRESSURES (P_u_F, P_u_O), NOT feed/downstream pressures.

Parameters:
-----------
P_d_F : float
    Fuel tank/ullage pressure [Pa] (P_u_F - parameter name is misleading)
P_d_O : float
    Oxidizer tank/ullage pressure [Pa] (P_u_O - parameter name is misleading)
config : PintleEngineConfig
    Engine configuration
use_cache : bool
    Whether to use caching (default: True)

Returns:
--------
estimate : EngineEstimate
    Engine performance estimate with validated thrust, MR, and mass flows

Note:
-----
This function creates a temporary EngineWrapper. For repeated calls,
create an EngineWrapper instance and reuse it.

Definition at line 308 of file engine_wrapper.py.