Inlet
- class turbodesign.inlet.Inlet[source]
Station defined at Inlet
- Inherits:
(BladeRow): Defines the properties of the blade row
- __initialize_velocity__(passage: Passage, num_streamlines: int)[source]
- Initialize velocity calculations. Assumes streamlines and inclination angles have been calculated
Call this before performing calculations
- Parameters:
passage (Passage) – Passage object
num_streamlines (int) – number of streamlines
- __interpolate_quantities__(num_streamlines: int = 5)[source]
Initializes the inputs
- Parameters:
num_streamlines (int, optional) – _description_. Defaults to 5.
IsCompressor (bool, optional) – This is if static pressure is defined at the inlet and total pressure at the outlet. Defaults to False.
- get_total_pressure(percent_hub_shroud: float | ndarray[tuple[Any, ...], dtype[_ScalarT]])[source]
Returns the static pressure at a certain percent hub_shroud
- Parameters:
percent_hub_shroud (Union[float,npt.NDArray]) – _description_
- Returns:
_description_
- Return type:
_type_
- get_total_temperature(percent_hub_shroud: float | ndarray[tuple[Any, ...], dtype[_ScalarT]])[source]
Returns the static pressure at a certain percent hub_shroud
- Parameters:
percent_hub_shroud (Union[float,npt.NDArray]) – _description_
- Returns:
_description_
- Return type:
_type_
- init_static(P: float | List[float], T: float | List[float], M: float | List[float], percent_radii: float | List[float] = [0.5])[source]
Initializes the inlet with static quantities at the inlet
- Parameters:
P (Union[float,List[float]]) – Static Pressure either as a float or array
T (Union[float,List[float]]) – Static Temperature either as a float or array
M (Union[float,List[float]]) – Mach Number either as a float or array
percent_radii (Union[float,List[float]], optional) – Percent radii where P,T, and M are defined. Defaults to [0.5].
- init_total(P0: float | List[float], T0: float | List[float], M: float | List[float], percent_radii: float | List[float] | None = None)[source]
Initializes the inlet with total quantities at the inlet
- Parameters:
P0 (Union[float,List[float]]) – Total Pressure either as a float or array
T0 (Union[float,List[float]]) – Total Temperature either as a float or array
M (Union[float,List[float]]) – Mach Number either as a float or array
percent_radii (Optional[Union[float,List[float]]], optional) – Percent radii where P0, T0, and M are defined. Defaults to None, which uses evenly spaced radii when multiple values exist or [0.5] otherwise.