turbo_moc.jax_rotor.vortex_blade module#
Vortex-flow supersonic rotor blade (Goldman & Scullin, NASA TN D-4421) in JAX.
A line-by-line port of turbo_moc.core.vortex_blade.design_rotor_vortex_blade (the reference), traceable and
differentiable in the continuous design inputs:
M_inlet, M_outlet, M_lower, M_upper, beta_inlet, le_te_ratio, le_wedge_half_angle, le_ellipse_ratio, te_ellipse_ratio, boundary-layer chord / viscosity / factor, r_star.
The discrete structure of the outline is static (fixed during tracing): num_points, which edge closures are used,
whether the boundary-layer correction is on, and the number of points on each circular arc. The reference sets the
latter from the turning angle, max(num_points, int(|alpha_out - alpha_in| in deg) + 2); structure evaluates it
once on concrete inputs and design_core keeps it fixed, so the geometry is a smooth function of the inputs while
the point count only changes where the reference’s own count jumps (whole degrees of turning).
Input checks that raise in the reference (Mach number outside the table, no real outlet angle, wedge radius too large)
are made by structure on the concrete inputs; inside a trace they cannot raise.
Usage#
iso = JaxIsentrope.from_manager(get_fluid_manager(…)) blade = design_rotor_vortex_blade(iso, M_inlet=…, …) # same keys as the reference (arrays) f = make_design_function(iso, base_inputs) # f(params dict) -> outputs, for jax.grad / jit
- class turbo_moc.jax_rotor.vortex_blade.Structure(num_points: int, n_circ_lower: int, n_circ_upper: int, le_wedge: bool, le_round_tip: bool, le_ellipse: bool, te_ellipse: bool, boundary_layer: bool, dimensional: bool)[source]#
Bases:
objectStatic (non-differentiable) layout of the blade outline.
- boundary_layer: bool#
- dimensional: bool#
- le_ellipse: bool#
- le_round_tip: bool#
- le_wedge: bool#
- n_circ_lower: int#
- n_circ_upper: int#
- num_points: int#
- te_ellipse: bool#
- turbo_moc.jax_rotor.vortex_blade.design_core(iso, p, s)[source]#
Traceable blade design:
pdict of continuous inputs (jnp scalars),sa staticStructure.
- turbo_moc.jax_rotor.vortex_blade.design_rotor_vortex_blade(iso, **inputs)[source]#
Drop-in counterpart of the reference (minus fluid arguments, which
isocarries); returns arrays.
- turbo_moc.jax_rotor.vortex_blade.make_design_function(iso, inputs)[source]#
(f, p0, s): f(p) -> design dict, pure in the continuous params p; layout frozen at
inputs.
- turbo_moc.jax_rotor.vortex_blade.structure(iso, num_points=60, le_te_ratio=25.0, le_wedge_half_angle=None, le_round_tip=False, le_ellipse_ratio=None, te_ellipse_ratio=None, boundary_layer=None, r_star=None, **flow)[source]#
Static layout on concrete inputs, plus the reference’s input checks (raises like the reference).