STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
engine.pipeline.comprehensive_optimizer.ComprehensivePintleOptimizer Class Reference

Public Member Functions

 __init__ (self, PintleEngineConfig base_config)
Dict[str, Any] optimize_pintle_geometry (self, float target_thrust, Optional[float] target_isp=None, Optional[float] target_mr=None, float P_tank_O=3.0e6, float P_tank_F=3.0e6, Optional[Dict[str, Any]] constraints=None)

Public Attributes

 base_config = base_config
 runner = PintleEngineRunner(base_config)
list optimization_history = []

Protected Member Functions

Dict[str, Any] _default_constraints (self)
Bounds _setup_pintle_bounds (self, Dict[str, Any] constraints)
np.ndarray _generate_pintle_initial_guess (self, float target_thrust, Dict[str, Any] constraints)
PintleEngineConfig _update_config_from_pintle_x (self, np.ndarray x, PintleEngineConfig base_config)

Detailed Description

Comprehensive optimizer that solves for all pintle dimensions and chamber geometry.

Optimizes:
- Pintle injector: d_pintle_tip, h_gap, n_orifices, d_orifice, theta_orifice
- Chamber: A_throat, A_exit, Lstar, D_chamber
- Materials: ablative thickness, graphite thickness
- Feed system: tank pressures, COPV sizing

All coupled with flight simulation and stability analysis.

Definition at line 24 of file comprehensive_optimizer.py.

Constructor & Destructor Documentation

◆ __init__()

engine.pipeline.comprehensive_optimizer.ComprehensivePintleOptimizer.__init__ ( self,
PintleEngineConfig base_config )

Definition at line 37 of file comprehensive_optimizer.py.

Member Function Documentation

◆ _default_constraints()

Dict[str, Any] engine.pipeline.comprehensive_optimizer.ComprehensivePintleOptimizer._default_constraints ( self)
protected
Default design constraints for small-scale engines.

Definition at line 188 of file comprehensive_optimizer.py.

Referenced by optimize_pintle_geometry().

◆ _generate_pintle_initial_guess()

np.ndarray engine.pipeline.comprehensive_optimizer.ComprehensivePintleOptimizer._generate_pintle_initial_guess ( self,
float target_thrust,
Dict[str, Any] constraints )
protected
Generate initial guess for pintle optimization.

Definition at line 238 of file comprehensive_optimizer.py.

Referenced by optimize_pintle_geometry().

◆ _setup_pintle_bounds()

Bounds engine.pipeline.comprehensive_optimizer.ComprehensivePintleOptimizer._setup_pintle_bounds ( self,
Dict[str, Any] constraints )
protected
Set up optimization bounds for pintle variables.

Definition at line 209 of file comprehensive_optimizer.py.

Referenced by optimize_pintle_geometry().

◆ _update_config_from_pintle_x()

PintleEngineConfig engine.pipeline.comprehensive_optimizer.ComprehensivePintleOptimizer._update_config_from_pintle_x ( self,
np.ndarray x,
PintleEngineConfig base_config )
protected
Update configuration from pintle optimization variables.

Definition at line 275 of file comprehensive_optimizer.py.

Referenced by optimize_pintle_geometry().

◆ optimize_pintle_geometry()

Dict[str, Any] engine.pipeline.comprehensive_optimizer.ComprehensivePintleOptimizer.optimize_pintle_geometry ( self,
float target_thrust,
Optional[float] target_isp = None,
Optional[float] target_mr = None,
float P_tank_O = 3.0e6,
float P_tank_F = 3.0e6,
Optional[Dict[str, Any]] constraints = None )
Optimize complete pintle injector geometry.

Design variables:
- d_pintle_tip: Pintle tip diameter [m]
- h_gap: Annular gap height [m]
- n_orifices: Number of LOX orifices
- d_orifice: LOX orifice diameter [m]
- theta_orifice: LOX injection angle [deg]
- A_throat: Throat area [m²]
- A_exit: Exit area [m²]
- Lstar: Characteristic length [m]
- D_chamber: Chamber diameter [m]

Parameters:
-----------
target_thrust : float
    Target thrust [N]
target_isp : float, optional
    Target specific impulse [s]
target_mr : float, optional
    Target mixture ratio
P_tank_O : float
    Oxidizer tank pressure [Pa]
P_tank_F : float
    Fuel tank pressure [Pa]
constraints : dict, optional
    Design constraints

Returns:
--------
results : dict
    Optimized configuration and performance

Definition at line 42 of file comprehensive_optimizer.py.

References _default_constraints(), _generate_pintle_initial_guess(), _setup_pintle_bounds(), _update_config_from_pintle_x(), engine.pipeline.chamber_optimizer.ChamberOptimizer.base_config, base_config, and max.

Member Data Documentation

◆ base_config

engine.pipeline.comprehensive_optimizer.ComprehensivePintleOptimizer.base_config = base_config

◆ optimization_history

list engine.pipeline.comprehensive_optimizer.ComprehensivePintleOptimizer.optimization_history = []

Definition at line 40 of file comprehensive_optimizer.py.

◆ runner


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