|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Functions | |
| Dict[str, Any] | calculate_copv_pressure_curve (np.ndarray time_array, np.ndarray mdot_O, np.ndarray mdot_F, np.ndarray P_tank_O, np.ndarray P_tank_F, PintleEngineConfig config, float copv_volume_m3, float T0_K=260.0, float Tp_K=260.0) |
| Dict[str, Any] | run_flight_simulation (PintleEngineConfig config, Dict[str, np.ndarray] pressure_curves, float burn_time) |
COPV and Flight Simulation Helper Functions. This module contains: - COPV pressure curve calculation - Flight simulation execution
| Dict[str, Any] engine.optimizer.copv_flight_helpers.calculate_copv_pressure_curve | ( | np.ndarray | time_array, |
| np.ndarray | mdot_O, | ||
| np.ndarray | mdot_F, | ||
| np.ndarray | P_tank_O, | ||
| np.ndarray | P_tank_F, | ||
| PintleEngineConfig | config, | ||
| float | copv_volume_m3, | ||
| float | T0_K = 260.0, | ||
| float | Tp_K = 260.0 ) |
Calculate COPV pressure curve using polytropic blowdown model. Uses the same method as the COPV tab with user-specified temperatures (260K).
Definition at line 17 of file copv_flight_helpers.py.
References max.
| Dict[str, Any] engine.optimizer.copv_flight_helpers.run_flight_simulation | ( | PintleEngineConfig | config, |
| Dict[str, np.ndarray] | pressure_curves, | ||
| float | burn_time ) |
Run flight simulation on the optimized engine.
Uses the existing setup_flight function from flight_sim.py.
Args:
config: Engine configuration (will be updated with burn_time)
pressure_curves: Dict with 'time', 'thrust', 'mdot_O', 'mdot_F' arrays
burn_time: Actual burn time to use (may be truncated from original)
Returns:
Dict with flight simulation results
Definition at line 91 of file copv_flight_helpers.py.