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

Functions

 lookup_angles (expansion_ratio, bell_percent=0.8)
 lookup_angles_interp_bell (area_throat, area_exit, bell_percent=0.8)
 plot_nozzle_angles (save_path=None, show_plot=True)

Variables

dict NOZZLE_ANGLES_TABLE

Detailed Description

Nozzle angle lookup table for Rao nozzle design.

This table provides theta_n (nozzle entrance angle) and theta_e (nozzle exit angle)
as functions of:
- Nozzle expansion ratio (eps = area_exit / area_throat)
- Bell percentage (60%, 70%, 80%, 90%, 100%)

Data extracted from parabola angles graph.

Usage:
    from nozzle_angles import lookup_angles
    
    theta_n, theta_e = lookup_angles(expansion_ratio=10.0, bell_percent=0.8)

Function Documentation

◆ lookup_angles()

engine.core.nozzle_angles.lookup_angles ( expansion_ratio,
bell_percent = 0.8 )
Look up nozzle angles for given expansion ratio and bell percentage.

Parameters:
-----------
expansion_ratio : float
    Nozzle expansion ratio (eps = area_exit / area_throat)
bell_percent : float
    Bell percentage (0.60, 0.70, 0.80, 0.90, or 1.00)

Returns:
--------
theta_n_deg : float
    Nozzle entrance angle in degrees
theta_e_deg : float
    Nozzle exit angle in degrees

Definition at line 68 of file nozzle_angles.py.

References max, and min.

Referenced by lookup_angles_interp_bell(), and plot_nozzle_angles().

◆ lookup_angles_interp_bell()

engine.core.nozzle_angles.lookup_angles_interp_bell ( area_throat,
area_exit,
bell_percent = 0.8 )
Look up nozzle angles with interpolation in both expansion ratio and bell percentage.

Parameters:
-----------
expansion_ratio : float
    Nozzle expansion ratio (eps = area_exit / area_throat)
bell_percent : float
    Bell percentage (0.60 to 1.00)

Returns:
--------
theta_n_deg : float
    Nozzle entrance angle in degrees
theta_e_deg : float
    Nozzle exit angle in degrees

Definition at line 148 of file nozzle_angles.py.

References lookup_angles(), max, and min.

◆ plot_nozzle_angles()

engine.core.nozzle_angles.plot_nozzle_angles ( save_path = None,
show_plot = True )
Plot the nozzle angle lookup table to match the original graph format.

Parameters:
-----------
save_path : str, optional
    Path to save the plot (e.g., 'nozzle_angles_plot.png')
show_plot : bool
    Whether to display the plot (default: True)

Returns:
--------
fig, ax : matplotlib figure and axes objects

Definition at line 214 of file nozzle_angles.py.

References lookup_angles().

Variable Documentation

◆ NOZZLE_ANGLES_TABLE

dict engine.core.nozzle_angles.NOZZLE_ANGLES_TABLE

Definition at line 26 of file nozzle_angles.py.