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

Functions

Dict[str, any] analyze_burn_degradation (np.ndarray time_history, np.ndarray thrust_history, np.ndarray Pc_history, np.ndarray Isp_history, np.ndarray MR_history, np.ndarray mdot_history, Optional[np.ndarray] A_throat_history=None, Optional[np.ndarray] recession_history=None)
Dict[str, any] calculate_mission_performance (np.ndarray time_history, np.ndarray thrust_history, np.ndarray mdot_history, Optional[np.ndarray] altitude_history=None, Optional[float] target_altitude=None)
Dict[str, any] predict_burnout_time (np.ndarray time_history, np.ndarray thrust_history, np.ndarray mdot_history, float propellant_mass_remaining, Optional[float] threshold_thrust=None)
str generate_burn_report (np.ndarray time_history, Dict[str, np.ndarray] results_dict, PintleEngineConfig config)

Detailed Description

Comprehensive burn analysis for time-varying engine performance.

This module provides:
1. Performance degradation tracking
2. Ablative geometry evolution
3. Thrust curve analysis
4. Failure prediction
5. Mission performance metrics

Function Documentation

◆ analyze_burn_degradation()

Dict[str, any] engine.pipeline.burn_analysis.analyze_burn_degradation ( np.ndarray time_history,
np.ndarray thrust_history,
np.ndarray Pc_history,
np.ndarray Isp_history,
np.ndarray MR_history,
np.ndarray mdot_history,
Optional[np.ndarray] A_throat_history = None,
Optional[np.ndarray] recession_history = None )
Analyze performance degradation over a burn.

Parameters:
-----------
time_history : array
    Time points [s]
thrust_history : array
    Thrust [N]
Pc_history : array
    Chamber pressure [Pa]
Isp_history : array
    Specific impulse [s]
MR_history : array
    Mixture ratio
mdot_history : array
    Mass flow rate [kg/s]
A_throat_history : array, optional
    Throat area evolution [m²]
recession_history : array, optional
    Cumulative recession [m]

Returns:
--------
results : dict
    Degradation metrics and analysis

Definition at line 18 of file burn_analysis.py.

Referenced by generate_burn_report().

◆ calculate_mission_performance()

Dict[str, any] engine.pipeline.burn_analysis.calculate_mission_performance ( np.ndarray time_history,
np.ndarray thrust_history,
np.ndarray mdot_history,
Optional[np.ndarray] altitude_history = None,
Optional[float] target_altitude = None )
Calculate mission performance metrics.

Parameters:
-----------
time_history : array
    Time points [s]
thrust_history : array
    Thrust [N]
mdot_history : array
    Mass flow rate [kg/s]
altitude_history : array, optional
    Altitude [m] (for altitude-specific analysis)
target_altitude : float, optional
    Target altitude [m]

Returns:
--------
results : dict
    Mission performance metrics

Definition at line 189 of file burn_analysis.py.

Referenced by generate_burn_report().

◆ generate_burn_report()

str engine.pipeline.burn_analysis.generate_burn_report ( np.ndarray time_history,
Dict[str, np.ndarray] results_dict,
PintleEngineConfig config )
Generate a comprehensive text report of burn analysis.

Parameters:
-----------
time_history : array
    Time points [s]
results_dict : dict
    Results dictionary from evaluate_arrays_with_time
config : PintleEngineConfig
    Engine configuration

Returns:
--------
report : str
    Formatted text report

Definition at line 344 of file burn_analysis.py.

References analyze_burn_degradation(), and calculate_mission_performance().

◆ predict_burnout_time()

Dict[str, any] engine.pipeline.burn_analysis.predict_burnout_time ( np.ndarray time_history,
np.ndarray thrust_history,
np.ndarray mdot_history,
float propellant_mass_remaining,
Optional[float] threshold_thrust = None )
Predict when engine will burn out (propellant depletion or thrust threshold).

Parameters:
-----------
time_history : array
    Time points [s]
thrust_history : array
    Thrust [N]
mdot_history : array
    Mass flow rate [kg/s]
propellant_mass_remaining : float
    Remaining propellant mass [kg]
threshold_thrust : float, optional
    Thrust threshold for "burnout" [N]

Returns:
--------
results : dict
    Burnout predictions

Definition at line 261 of file burn_analysis.py.

References min.