Intake Ramp Analysis
This module provides functions for analyzing multi-ramp external-compression intakes. Each ramp is treated as an oblique shock and the downstream Mach number and property ratios are computed sequentially.
Overview
A typical supersonic inlet uses one or more compression ramps to slow and compress the incoming flow. For an incoming Mach number $M_\infty$ and a list of ramp deflection angles $\theta_i$, the intake is modeled by applying the oblique-shock relations at each ramp. The function intake_ramp
returns the Mach number after each shock along with density, pressure, and total-pressure ratios.
Functions
CompAir.intake_ramp
— Functionintake_ramp(M_infty::Real, ramp_angle::Vector{<:Real}, gamma::Real=1.4)
주어진 램프 각도(rampangle) 배열과 자유류 마하수(Minfty), 비열비(gamma)에 대해 다단 램프 흡입구의 각 단에서의 마하수, 밀도비, 압력비, 전체압비, 충격파 각도를 계산한다.
Arguments
M_infty::Real
: 자유류(입구) 마하수ramp_angle::Vector{<:Real}
: 각 램프의 각도 (degree)gamma::Float64
: 비열비(기본값 1.4)
Returns
NamedTuple
:M
: 각 단의 마하수 벡터 (길이 n+1)rho2_ratio
: 각 단의 밀도비 벡터 (길이 n)p2_ratio
: 각 단의 압력비 벡터 (길이 n)p0_ratio
: 각 단의 전체압비 벡터 (길이 n)beta
: 각 단의 충격파 각도 벡터 (길이 n)
Function Details
intake_ramp
intake_ramp(M_infty, ramp_angle, gamma=1.4)
Compute the flow properties across a series of intake ramps.
Arguments:
M_infty::Real
: Freestream Mach numberramp_angle::Vector{<:Real}
: Ramp deflection angles in degreesgamma::Real=1.4
: Specific heat ratio
Returns:
NamedTuple
containing:M
: Vector of Mach numbers at each stage (lengthn+1
)rho2_ratio
: Density ratios across each shock (lengthn
)p2_ratio
: Pressure ratios across each shock (lengthn
)p0_ratio
: Total-pressure ratios across each shock (lengthn
)beta
: Shock angles in degrees (lengthn
)
Algorithm:
- Initialize the Mach number array with
M_infty
. - For each ramp angle, call
solve_oblique
to obtain the downstream Mach number and property ratios. - Collect the results into vectors and return them as a
NamedTuple
.
Example:
julia> sol = intake_ramp(2.5, [10, 16])
(M = [2.5, 2.085, ...], rho2_ratio = [...], p2_ratio = [...], p0_ratio = [...], beta = [...])
See Also
```