From b41f2c663c19d04a78744ea425301587dc9502b2 Mon Sep 17 00:00:00 2001 From: MateusStano Date: Mon, 16 Nov 2026 20:40:49 -0300 Subject: [PATCH 1/4] ENH: base the tube fins on ring wing measurements and drop add_tube_fins Follow-up of #1144 for the v1.14.0 release. - Normal force: Ribner's result that a ring wing lifts twice as much as an elliptic flat wing spanning its diameter, with Helmbold's equation for that wing. Within 3.1% of the five lift slopes measured in NACA TN 4117. The lifting-line formula used before is 11 to 68% higher on those points. - Center of pressure: the positions measured in NACA TN 4117, interpolated on inner diameter over length, in place of a fixed quarter of the length. - The 20 degree cap on the normal force is removed. No other surface has a stall model. - Roll damping: each tube takes the normal force its sideways motion produces. - Rocket.add_tube_fins and Rocket.tube_fins are removed. Tube fins are added with Rocket.add_surfaces. Co-Authored-By: Claude Fable 5.2 --- rocketpy/rocket/aero_surface/tube_fins.py | 130 +++++++++++---- rocketpy/rocket/rocket.py | 67 -------- .../rocket/aero_surface/test_tube_fins.py | 157 +++++++++++++++--- 3 files changed, 233 insertions(+), 121 deletions(-) diff --git a/rocketpy/rocket/aero_surface/tube_fins.py b/rocketpy/rocket/aero_surface/tube_fins.py index ca585d08a..7f50f4031 100644 --- a/rocketpy/rocket/aero_surface/tube_fins.py +++ b/rocketpy/rocket/aero_surface/tube_fins.py @@ -10,13 +10,18 @@ class TubeFins(AeroSurface): - """Defines a symmetric set of tube fins for subsonic flight. + """Defines a symmetric set of tube fins. - The aerodynamic model follows the Ribner ring-airfoil normal-force - derivative used by OpenRocket. It is limited to uncanted tube fins that - touch both the rocket body and their two neighboring tubes. The center of - pressure is fixed at the quarter chord, so the model is intended for - Mach numbers up to 0.5. + Each tube is treated as a ring wing on its own. Its normal force follows + Ribner's result that a ring wing lifts twice as much as an elliptic flat + wing spanning its diameter, and its center of pressure follows the wind + tunnel measurements of NACA TN 4117. Both were obtained at low speed and + are used unchanged at every Mach number. A roll rate is damped by the + normal force it produces on each tube. + + The model is limited to uncanted tubes that touch both the rocket body and + their two neighboring tubes. The effect the tubes have on each other, and + the effect of the rocket body on them, are not accounted for. Parameters ---------- @@ -37,13 +42,21 @@ class TubeFins(AeroSurface): Notes ----- - This model calculates normal force only. Tube-fin friction and pressure - drag must be included in the rocket's power-on and power-off drag curves. - Cant, roll, side-force, yaw, separated tubes, and overlapping tubes are not - supported. + Tube-fin friction and pressure drag are not calculated and must be + included in the rocket's power-on and power-off drag curves. The normal + force grows in proportion to the angle of attack, with no stall. Cant, + separated tubes and overlapping tubes are not supported. + + See Also + -------- + :doc:`Tube Fin Aerodynamics ` """ - stall_angle = np.radians(20) + # Center of pressure of a ring wing measured in NACA TN 4117 (figure 8): + # distance from the leading edge, in tube lengths, against the ratio of + # inner diameter to length + _CP_ASPECT_RATIOS = (1 / 3, 2 / 3, 1.0, 1.5, 3.0) + _CP_POSITIONS = (-0.11, 0.14, 0.20, 0.25, 0.35) def __init__( self, @@ -182,30 +195,42 @@ def rocket_diameter(self): return 2 * self.rocket_radius def evaluate_geometrical_parameters(self): - """Evaluate the ring-airfoil aspect ratio and tube spacing.""" + """Evaluate the ring wing aspect ratio, the tube spacing and the + distance from the rocket axis to the center of each tube.""" self.aspect_ratio = 2 * self.inner_radius / self.length self.touching_outer_radius = self._touching_outer_radius( self.n, self.rocket_radius ) self.tube_separation = 2 * (self.touching_outer_radius - self.outer_radius) + self.tube_center_radius = self.rocket_radius + self.outer_radius def evaluate_center_of_pressure(self): - """Set the subsonic center of pressure at the quarter chord.""" + """Evaluate the center of pressure from the measurements of NACA + TN 4117, interpolated on the ratio of inner diameter to length. Outside + the measured range (1/3 to 3) the nearest measured value is used.""" self.cpx = 0 self.cpy = 0 - self.cpz = self.length / 4 + self.cpz = self.length * float( + np.interp(self.aspect_ratio, self._CP_ASPECT_RATIOS, self._CP_POSITIONS) + ) self.cp = (self.cpx, self.cpy, self.cpz) def evaluate_lift_coefficient(self): - """Evaluate the Ribner normal-force derivative for the tube set.""" - modified_aspect_ratio = 2 * self.aspect_ratio / np.pi - single_tube_constant = ( + """Evaluate the normal force coefficient derivative of the tube set. + + A ring wing lifts twice as much as an elliptic flat wing that spans its + diameter and has the tube length as root chord. The lift slope of that + wing comes from Helmbold's equation. + """ + elliptic_aspect_ratio = 4 * self.aspect_ratio / np.pi + elliptic_area = np.pi * self.inner_radius * self.length / 2 + elliptic_lift_slope = ( 2 - * (modified_aspect_ratio / (1 + modified_aspect_ratio)) - * np.pi**2 - * self.inner_radius - * self.length + * np.pi + * elliptic_aspect_ratio + / (2 + np.sqrt(elliptic_aspect_ratio**2 + 4)) ) + single_tube_constant = 2 * elliptic_lift_slope * elliptic_area clalpha_value = self.n * single_tube_constant / self.reference_area self.clalpha = Function( @@ -214,14 +239,64 @@ def evaluate_lift_coefficient(self): f"Lift coefficient derivative for {self.name}", ) self.cl = Function( - lambda alpha, mach: ( - self.clalpha(mach) * np.clip(alpha, -self.stall_angle, self.stall_angle) - ), + lambda alpha, mach: clalpha_value * alpha, ["Alpha (rad)", "Mach"], "Lift coefficient", ) return self.cl + def compute_forces_and_moments( + self, + stream_velocity, + stream_speed, + stream_mach, + rho, + cp, + omega, + *args, + ): # pylint: disable=arguments-differ + """Computes the forces and moments acting on the tube fins. + + Parameters + ---------- + stream_velocity : tuple of float + The velocity of the airflow relative to the surface. + stream_speed : float + The magnitude of the airflow speed. + stream_mach : float + The Mach number of the airflow. + rho : float + Air density. + cp : Vector + Center of pressure coordinates in the body frame. + omega : tuple[float, float, float] + Tuple containing angular velocities around the x, y, z axes. + + Returns + ------- + tuple of float + The aerodynamic forces (lift, side_force, drag) and moments + (pitch, yaw, roll) in the body frame. + """ + R1, R2, R3, M1, M2, _ = super().compute_forces_and_moments( + stream_velocity, + stream_speed, + stream_mach, + rho, + cp, + ) + # A roll rate moves each tube sideways at omega[2] * tube_center_radius. + # The tube sees this as an angle of attack, and the normal force it + # produces acts against the roll. + M3 = -( + (1 / 2 * rho * stream_speed) + * self.reference_area + * self.clalpha.get_value_opt(stream_mach) + * self.tube_center_radius**2 + * omega[2] + ) + return R1, R2, R3, M1, M2, M3 + def evaluate_shape(self): """Store a side-view outline for plotting the tube-fin envelope.""" lower = self.rocket_radius @@ -259,12 +334,9 @@ def to_dict(self, **kwargs): clalpha = self.clalpha cl = self.cl if kwargs.get("discretize", False): - clalpha = clalpha.set_discrete(0, 0.5, 10, mutate_self=False) + clalpha = clalpha.set_discrete(0, 4, 50, mutate_self=False) cl = cl.set_discrete( - (-self.stall_angle, 0), - (self.stall_angle, 0.5), - (10, 10), - mutate_self=False, + (-np.pi / 6, 0), (np.pi / 6, 2), (10, 10), mutate_self=False ) data.update( { diff --git a/rocketpy/rocket/rocket.py b/rocketpy/rocket/rocket.py index b83d67d4c..62496e945 100644 --- a/rocketpy/rocket/rocket.py +++ b/rocketpy/rocket/rocket.py @@ -27,7 +27,6 @@ RailButtons, Tail, TrapezoidalFins, - TubeFins, ) from rocketpy.rocket.aero_surface.fins.elliptical_fin import EllipticalFin from rocketpy.rocket.aero_surface.fins.free_form_fin import FreeFormFin @@ -492,11 +491,6 @@ def fins(self): """A list containing all the fins currently added to the rocket.""" return self.aerodynamic_surfaces.get_by_type(Fins) - @property - def tube_fins(self): - """A list containing all tube-fin sets currently added to the rocket.""" - return self.aerodynamic_surfaces.get_by_type(TubeFins) - @property def tails(self): """A list with all the tails currently added to the rocket""" @@ -1669,67 +1663,6 @@ def add_free_form_fins( self.add_surfaces(fin_set, position) return fin_set - def add_tube_fins( - self, - n, - length, - inner_radius, - outer_radius, - position, - radius=None, - name="Tube Fins", - ): - """Create and add a symmetric set of tube fins to the rocket. - - This first-order model uses the Ribner ring-airfoil normal-force slope - and a fixed quarter-chord center of pressure. It is intended for Mach - numbers up to 0.5 and angles of attack up to 20 degrees. - - Parameters - ---------- - n : int - Number of tubes. Must be at least 3. - length : int, float - Tube length along the rocket axis, in meters. - inner_radius : int, float - Inner radius of each tube, in meters. - outer_radius : int, float - Outer radius of each tube, in meters. The current model requires - neighboring tubes to touch, so this must equal - ``radius * sin(pi / n) / (1 - sin(pi / n))``. - position : int, float - Axial position of the tube leading edges in the user-defined rocket - coordinate system. - radius : int, float, optional - Rocket-body radius where the tubes are mounted. If ``None``, the - rocket radius is used. - name : str, optional - Name of the tube-fin set. Default is ``"Tube Fins"``. - - Returns - ------- - TubeFins - Tube-fin set created and added to the rocket. - - Notes - ----- - Only uncanted, mutually tangent tubes are supported. Component drag, - roll, side-force, yaw, separated tubes, and overlapping tubes are not - included in this model. Tube-fin drag must be represented in the - rocket's power-on and power-off drag curves. - """ - radius = self.radius if radius is None else radius - tube_fins = TubeFins( - n=n, - length=length, - inner_radius=inner_radius, - outer_radius=outer_radius, - rocket_radius=radius, - name=name, - ) - self.add_surfaces(tube_fins, position) - return tube_fins - def add_parachute( self, name, diff --git a/tests/unit/rocket/aero_surface/test_tube_fins.py b/tests/unit/rocket/aero_surface/test_tube_fins.py index 296a13ea1..c56424302 100644 --- a/tests/unit/rocket/aero_surface/test_tube_fins.py +++ b/tests/unit/rocket/aero_surface/test_tube_fins.py @@ -18,35 +18,138 @@ def tube_fins(): ) -def test_tube_fins_geometry_and_normal_force_slope(tube_fins): - aspect_ratio = 2 * tube_fins.inner_radius / tube_fins.length - modified_aspect_ratio = 2 * aspect_ratio / np.pi - expected_clalpha = ( - tube_fins.n - * 2 - * modified_aspect_ratio - / (1 + modified_aspect_ratio) - * np.pi**2 - * tube_fins.inner_radius - * tube_fins.length - / (np.pi * tube_fins.rocket_radius**2) +def _single_ring(aspect_ratio, length=0.1): + """Tube-fin set whose tubes have the given inner diameter to length ratio. + The tube count only sets the outer radius the geometry check asks for.""" + n = 6 + rocket_radius = 1.0 + outer_radius = rocket_radius # touching tubes for n = 6 + return TubeFins( + n=n, + length=length, + inner_radius=aspect_ratio * length / 2, + outer_radius=outer_radius, + rocket_radius=rocket_radius, ) - assert tube_fins.aspect_ratio == pytest.approx(aspect_ratio) - assert tube_fins.cp == pytest.approx((0, 0, tube_fins.length / 4)) + +def test_tube_fins_geometry(tube_fins): + assert tube_fins.aspect_ratio == pytest.approx(0.9) assert tube_fins.reference_area == pytest.approx(np.pi * tube_fins.rocket_radius**2) assert tube_fins.reference_length == pytest.approx(2 * tube_fins.rocket_radius) assert tube_fins.tube_separation == pytest.approx(0, abs=1e-12) - assert tube_fins.clalpha(0) == pytest.approx(expected_clalpha) - assert tube_fins.clalpha(0.5) == pytest.approx(expected_clalpha) + assert tube_fins.tube_center_radius == pytest.approx(0.1) + + +# Lift-curve slope per degree of an isolated ring wing, on the area +# inner diameter x length, read from figure 11 of NACA TN 4117 +@pytest.mark.parametrize( + ("aspect_ratio", "measured_slope_per_degree"), + [(1 / 3, 0.018), (2 / 3, 0.034), (1.0, 0.049), (1.5, 0.069), (3.0, 0.102)], +) +def test_tube_fins_normal_force_slope_matches_ring_wing_measurements( + aspect_ratio, measured_slope_per_degree +): + tube_fins = _single_ring(aspect_ratio) + planform_area = 2 * tube_fins.inner_radius * tube_fins.length + + slope_per_tube = tube_fins.clalpha(0) * tube_fins.reference_area / tube_fins.n + slope_per_degree = np.radians(slope_per_tube / planform_area) + + assert slope_per_degree == pytest.approx(measured_slope_per_degree, rel=0.05) -def test_tube_fins_lift_is_capped_at_twenty_degrees(tube_fins): - capped_lift = tube_fins.clalpha(0) * np.radians(20) +def test_tube_fins_normal_force_slope_limits(): + """A long tube tends to the slender body value and a wide ring to the + lifting line value, both on the area inner diameter x length.""" + long_tube, wide_ring = _single_ring(0.01), _single_ring(100.0, length=0.01) - assert tube_fins.cl(np.radians(10), 0) == pytest.approx(capped_lift / 2) - assert tube_fins.cl(np.radians(30), 0) == pytest.approx(capped_lift) - assert tube_fins.cl(np.radians(-30), 0) == pytest.approx(-capped_lift) + def slope(tube_fins): + planform_area = 2 * tube_fins.inner_radius * tube_fins.length + return tube_fins.clalpha(0) * tube_fins.reference_area / (6 * planform_area) + + assert slope(long_tube) == pytest.approx(np.pi * 0.01, rel=0.01) + assert slope(wide_ring) == pytest.approx(np.pi**2, rel=0.03) + + +def test_tube_fins_normal_force_does_not_depend_on_mach(tube_fins): + assert tube_fins.clalpha(0.8) == pytest.approx(tube_fins.clalpha(0)) + assert tube_fins.clalpha(2.0) == pytest.approx(tube_fins.clalpha(0)) + + +def test_tube_fins_lift_is_linear_in_the_angle_of_attack(tube_fins): + slope = tube_fins.clalpha(0) + + assert tube_fins.cl(np.radians(10), 0) == pytest.approx(slope * np.radians(10)) + assert tube_fins.cl(np.radians(30), 0) == pytest.approx(slope * np.radians(30)) + assert tube_fins.cl(np.radians(-30), 0) == pytest.approx(-slope * np.radians(30)) + + +# Center of pressure from the leading edge, in tube lengths, read from +# figure 8 of NACA TN 4117 +@pytest.mark.parametrize( + ("aspect_ratio", "measured_position"), + [ + (1 / 3, -0.11), + (2 / 3, 0.14), + (1.0, 0.20), + (1.5, 0.25), + (3.0, 0.35), + (0.1, -0.11), # below the measured range: nearest measured value + (5.0, 0.35), # above the measured range: nearest measured value + (0.5, 0.015), # halfway between the first two measured points + ], +) +def test_tube_fins_center_of_pressure_follows_measurements( + aspect_ratio, measured_position +): + tube_fins = _single_ring(aspect_ratio, length=0.2) + + assert tube_fins.cp == pytest.approx((0, 0, measured_position * 0.2)) + + +def test_tube_fins_damp_a_roll_rate(tube_fins): + """The roll moment opposes the roll rate, grows in proportion to it and + equals the normal force the roll produces on the tubes times their + distance from the rocket axis.""" + rho, speed, roll_rate = 1.2, 100.0, 10.0 + stream_velocity = (0.0, 0.0, -speed) + + def roll_moment(rate): + return tube_fins.compute_forces_and_moments( + stream_velocity, speed, 0.3, rho, (0, 0, 0), (0, 0, rate) + )[5] + + dynamic_pressure = 0.5 * rho * speed**2 + local_angle_of_attack = roll_rate * tube_fins.tube_center_radius / speed + normal_force = ( + dynamic_pressure + * tube_fins.reference_area + * tube_fins.clalpha(0) + * local_angle_of_attack + ) + + assert roll_moment(0.0) == 0 + assert roll_moment(roll_rate) == pytest.approx( + -normal_force * tube_fins.tube_center_radius + ) + assert roll_moment(-roll_rate) == pytest.approx(-roll_moment(roll_rate)) + assert roll_moment(2 * roll_rate) == pytest.approx(2 * roll_moment(roll_rate)) + + +def test_tube_fins_roll_rate_does_not_change_the_normal_force(tube_fins): + rho, speed = 1.2, 100.0 + stream_velocity = (speed * np.sin(0.05), 0.0, -speed * np.cos(0.05)) + + still = tube_fins.compute_forces_and_moments( + stream_velocity, speed, 0.3, rho, (0, 0, 0), (0, 0, 0) + ) + rolling = tube_fins.compute_forces_and_moments( + stream_velocity, speed, 0.3, rho, (0, 0, 0), (0, 0, 10.0) + ) + + assert still[0] > 0 + assert rolling[:5] == pytest.approx(still[:5]) @pytest.mark.parametrize( @@ -82,8 +185,10 @@ def test_tube_fins_setters_update_dependent_values(tube_fins): initial_clalpha = tube_fins.clalpha(0) tube_fins.length = 0.2 - assert tube_fins.cpz == pytest.approx(0.05) assert tube_fins.aspect_ratio == pytest.approx(0.45) + assert tube_fins.cpz == pytest.approx( + 0.2 * np.interp(0.45, [1 / 3, 2 / 3], [-0.11, 0.14]) + ) assert tube_fins.clalpha(0) != pytest.approx(initial_clalpha) previous_outer_radius = tube_fins.outer_radius @@ -94,15 +199,17 @@ def test_tube_fins_setters_update_dependent_values(tube_fins): def test_tube_fins_add_to_rocket(calisto): initial_clalpha = calisto.total_lift_coeff_der(0) - tube_fins = calisto.add_tube_fins( + tube_fins = TubeFins( n=6, length=0.12, inner_radius=0.055, outer_radius=calisto.radius, - position=-1.1, + rocket_radius=calisto.radius, ) - assert tube_fins in calisto.tube_fins + calisto.add_surfaces(tube_fins, -1.1) + + assert not hasattr(calisto, "add_tube_fins") assert calisto.aerodynamic_surfaces[-1].component is tube_fins assert calisto.aerodynamic_surfaces[-1].position.z == pytest.approx(-1.1) assert calisto.total_lift_coeff_der(0) == pytest.approx( From 7ca6a08d3d93587a9ba1cc36f1238256b6f0ba7d Mon Sep 17 00:00:00 2001 From: MateusStano Date: Mon, 16 Nov 2026 20:40:49 -0300 Subject: [PATCH 2/4] DOC: describe the tube fin model, its data and its limits Co-Authored-By: Claude Fable 5.2 --- docs/technical/aerodynamics/tube_fins.rst | 171 ++++++++++++++++++---- docs/user/aerodynamics/surfaces.rst | 48 +++--- 2 files changed, 170 insertions(+), 49 deletions(-) diff --git a/docs/technical/aerodynamics/tube_fins.rst b/docs/technical/aerodynamics/tube_fins.rst index 46005d24b..5d77f9a43 100644 --- a/docs/technical/aerodynamics/tube_fins.rst +++ b/docs/technical/aerodynamics/tube_fins.rst @@ -1,11 +1,12 @@ Tube Fin Aerodynamics ===================== -RocketPy models a tube-fin set as a symmetric ring of uncanted ring airfoils. -The implementation follows the preliminary tube-fin model in OpenRocket's -`TubeFinSetCalc `_. -The normal-force derivative is based on Ribner's analysis of a ring airfoil in -nonaxial flow [1]_. +RocketPy models a tube-fin set as a symmetric ring of uncanted ring wings, each +treated as if it were alone in the flow. The model started from the tube-fin +calculation of OpenRocket +(`TubeFinSetCalc `_). +The normal force and the center of pressure are different from OpenRocket's: +they follow the wind tunnel measurements of ring wings in NACA TN 4117 [2]_. Geometry -------- @@ -23,60 +24,162 @@ This constraint also places each tube against the rocket body. Configurations with fewer than three tubes, gaps between tubes, or overlapping tubes are rejected. +The aspect ratio of one tube is its inner diameter divided by its length: + +.. math:: + + A = \frac{2 r_i}{L}. + Normal Force ------------ -The ring-airfoil aspect ratio and its modified form are +Ribner [1]_ showed that a ring wing lifts twice as much as an elliptic flat +wing that spans its diameter and has the length of the ring as root chord. +That wing has the area and the aspect ratio .. math:: - AR = \frac{2 r_i}{L}, \qquad AR' = \frac{2 AR}{\pi}. + S_e = \frac{\pi r_i L}{2}, \qquad A_e = \frac{(2 r_i)^2}{S_e} = \frac{4 A}{\pi}. -For a rocket reference area :math:`A_{ref} = \pi R^2`, the normal-force -coefficient derivative of the complete tube set is +Its lift slope is taken from Helmbold's equation [3]_, which holds for both +low and high aspect ratios: .. math:: - C_{N_\alpha} = - \frac{n}{A_{ref}} - 2 \left(\frac{AR'}{1 + AR'}\right) \pi^2 r_i L. + a_e = \frac{2 \pi A_e}{2 + \sqrt{A_e^2 + 4}}. -RocketPy applies this derivative symmetrically for positive and negative -angles of attack and caps the magnitude at 20 degrees: +For a rocket reference area :math:`A_{ref} = \pi R^2`, the normal-force +coefficient derivative of the complete tube set is .. math:: - C_N(\alpha) = C_{N_\alpha} - \operatorname{clip}\left(\alpha, -20^\circ, 20^\circ\right). + C_{N_\alpha} = \frac{n}{A_{ref}} \, 2 \, a_e \, S_e. + +The normal force grows in proportion to the angle of attack, +:math:`C_N = C_{N_\alpha} \alpha`. + +For a long tube this tends to the slender-body value, a normal force of +:math:`4 \pi r_i^2` per unit of dynamic pressure and angle of attack. For a +wide ring it tends to the lifting-line value, :math:`2 \pi^2 r_i L`. + +The table compares the lift slope of one ring wing, per degree and based on +the area :math:`2 r_i L`, with the measurements of NACA TN 4117 (figure 11). +The last column is the lifting-line formula of [1]_, which OpenRocket uses and +which only holds for wide rings. + +.. list-table:: + :header-rows: 1 + :widths: 16 20 22 22 20 + + * - :math:`A` + - Measured + - RocketPy + - Difference + - Lifting line + * - 1/3 + - 0.018 + - 0.0181 + - +0.4% + - 0.0302 + * - 2/3 + - 0.034 + - 0.0350 + - +3.1% + - 0.0513 + * - 1.0 + - 0.049 + - 0.0502 + - +2.4% + - 0.0670 + * - 1.5 + - 0.069 + - 0.0690 + - +0.1% + - 0.0841 + * - 3.0 + - 0.102 + - 0.1042 + - +2.2% + - 0.1131 Center of Pressure ------------------ -For Mach numbers up to 0.5, the center of pressure is placed at the quarter -chord: +The center of pressure of a ring wing depends on its aspect ratio. RocketPy +uses the positions measured in NACA TN 4117 (figure 8), given from the tube +leading edge as a fraction of the tube length: + +.. list-table:: + :header-rows: 1 + :widths: 30 30 + + * - :math:`A` + - :math:`x_{CP} / L` + * - 1/3 + - -0.11 + * - 2/3 + - 0.14 + * - 1.0 + - 0.20 + * - 1.5 + - 0.25 + * - 3.0 + - 0.35 + +Values in between are interpolated linearly. Below :math:`A = 1/3` and above +:math:`A = 3` the nearest measured value is used. A negative value means the +center of pressure is ahead of the leading edge, as it is on a slender body. + +Roll Damping +------------ + +When the rocket rolls at the rate :math:`\omega`, the center of each tube +moves sideways at :math:`\omega (R + r_o)`. The tube sees this as an angle of +attack :math:`\omega (R + r_o) / V`, with :math:`V` the airspeed, and the +normal force it produces acts against the roll. For the complete set the roll +moment is .. math:: - x_{CP} = \frac{L}{4}. + M_{roll} = -\frac{1}{2} \rho V A_{ref} C_{N_\alpha} (R + r_o)^2 \omega. + +This is the same assumption OpenRocket makes. It has not been compared with +measurements. + +Mach Number +----------- -The position is measured from the tube leading edge. OpenRocket moves this -position with Mach number above Mach 0.5; RocketPy does not yet implement that -correction. Simulations that exceed Mach 0.5 should use aerodynamic data from a -higher-fidelity source instead of this fixed-CP model. +The measurements behind the normal force and the center of pressure were made +at low speed. RocketPy uses both unchanged at every Mach number. + +For the normal force this is a small approximation in subsonic flight. The +Prandtl-Glauert rule, which RocketPy applies to the fins, would raise the lift +slope of a tube with :math:`A = 1` by 2.0% at Mach 0.5 and by 5.6% at Mach 0.8. +For :math:`A = 1/3` the increase is 0.7% at Mach 0.8. The longer the tube, the +closer it is to a slender body, whose normal force does not depend on the Mach +number. + +Above about Mach 0.8 the model should not be relied on. The flow through the +tubes and through the gaps between the tubes and the body changes in ways this +model does not describe. + +OpenRocket also keeps the normal force independent of the Mach number. For the +center of pressure it uses the quarter of the tube length up to Mach 0.5 and +the rule of its flat fins above that. RocketPy does not, because that rule was +not derived for ring wings. Model Limits ------------ -The tube-fin surface contributes normal force and the corresponding pitch and -yaw moments about its center of pressure. It does not calculate: - -- friction or pressure drag from the tubes; -- roll forcing or damping; -- side-force or yaw behavior for asymmetric tube layouts; -- tube cant; or -- aerodynamic corrections for separated or overlapping tubes. +- Each tube is treated as an isolated ring wing. The effect of the tubes on + each other, and of the rocket body on the tubes, is not accounted for. The + measurements used here were made on single ring wings with no body. +- There is no stall. In the measurements the normal force is proportional to + the angle of attack up to about 16 to 20 degrees and levels off beyond that. +- Friction and pressure drag of the tubes are not calculated. Represent them + in the rocket's power-on and power-off drag curves. +- Tube cant, separated tubes and overlapping tubes are not supported. -Represent tube-fin drag in the rocket's power-on and power-off drag curves. Use :class:`rocketpy.GenericSurface` when measured, wind-tunnel, or CFD coefficients are available outside the limits above. @@ -85,3 +188,7 @@ References .. [1] Ribner, H. S. "The Ring Airfoil in Nonaxial Flow." *Journal of the Aeronautical Sciences*, 14(9), 529--530, 1947. +.. [2] Fletcher, H. S. "Experimental Investigation of Lift, Drag, and Pitching + Moment of Five Annular Airfoils." NACA Technical Note 4117, 1957. +.. [3] Helmbold, H. B. "Der unverwundene Ellipsenflügel als tragende Fläche." + *Jahrbuch 1942 der Deutschen Luftfahrtforschung*, I111--I113, 1942. diff --git a/docs/user/aerodynamics/surfaces.rst b/docs/user/aerodynamics/surfaces.rst index 11d7629c4..a10000913 100644 --- a/docs/user/aerodynamics/surfaces.rst +++ b/docs/user/aerodynamics/surfaces.rst @@ -112,8 +112,8 @@ RocketPy distinguishes between two levels of fin definition: configurations, or when you need fine-grained control. - **Tube-fin sets** (:class:`rocketpy.TubeFins`): This class defines a - symmetric ring of cylindrical fins. Its normal-force derivative follows - Ribner's ring-airfoil model rather than the planar-fin Barrowman equations. + symmetric ring of cylindrical fins. Each tube is treated as a ring wing, + not with the planar-fin Barrowman equations. .. seealso:: @@ -185,23 +185,38 @@ Tube Fins ~~~~~~~~~ Tube fins are defined by the number and length of the tubes, their inner and -outer radii, and the rocket-body radius at the mounting position. Add them to a -rocket with :meth:`rocketpy.Rocket.add_tube_fins` or create a -:class:`rocketpy.TubeFins` object and pass it to -:meth:`rocketpy.Rocket.add_surfaces`. +outer radii, and the rocket-body radius at the mounting position. Create a +:class:`rocketpy.TubeFins` object and add it to the rocket with +:meth:`rocketpy.Rocket.add_surfaces`. The position is that of the leading edge +of the tubes: -The current implementation is a subsonic normal-force model with these -limits: +.. code-block:: python + + from rocketpy import TubeFins + + tube_fins = TubeFins( + n=6, + length=0.12, + inner_radius=0.060, + outer_radius=0.0635, + rocket_radius=0.0635, + ) + rocket.add_surfaces(tube_fins, -1.1) + +Things to know about the model: -- The center of pressure is fixed at one quarter of the tube length, measured - from the leading edge. Use the model only through Mach 0.5. -- Lift is capped at an absolute angle of attack of 20 degrees. +- Each tube is treated as a ring wing on its own. The normal force and the + center of pressure follow wind tunnel measurements of single ring wings made + at low speed, and are used unchanged at every Mach number. Do not rely on + the model above about Mach 0.8. +- The normal force grows in proportion to the angle of attack, with no stall. +- A roll rate is damped by the tubes. - At least three uncanted tubes must be distributed evenly around the body. - Every tube must touch the body and both adjacent tubes. Separated and - overlapping tube layouts are rejected. -- The model does not calculate tube-fin friction drag, pressure drag, roll, - side force, or yaw. Include tube-fin drag in the rocket's power-on and - power-off drag curves. + Every tube must touch the body and both adjacent tubes, which for six tubes + means an outer radius equal to the body radius. Separated and overlapping + tube layouts are rejected. +- The model does not calculate tube-fin friction or pressure drag. Include + tube-fin drag in the rocket's power-on and power-off drag curves. For the equations and geometry constraint, see :doc:`Tube Fin Aerodynamics `. @@ -288,7 +303,6 @@ Fins can be added to a rocket using the ``Rocket`` class methods: - :meth:`rocketpy.Rocket.add_trapezoidal_fins` - :meth:`rocketpy.Rocket.add_elliptical_fins` - :meth:`rocketpy.Rocket.add_free_form_fins` - - :meth:`rocketpy.Rocket.add_tube_fins` - :meth:`rocketpy.Rocket.add_surfaces` (for individual fins) Tail From e1d37721a88bac6c4650ea71626e084468aba2d1 Mon Sep 17 00:00:00 2001 From: MateusStano Date: Mon, 16 Nov 2026 20:40:49 -0300 Subject: [PATCH 3/4] DOC: say where the Prandtl factor is applied in AeroSurface._beta Only the fins use it. The docstring also named the nose cone and the tails, which stopped using it in 97ea9aef. Co-Authored-By: Claude Fable 5.2 --- rocketpy/rocket/aero_surface/aero_surface.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rocketpy/rocket/aero_surface/aero_surface.py b/rocketpy/rocket/aero_surface/aero_surface.py index 6727476c6..2f2a61a5a 100644 --- a/rocketpy/rocket/aero_surface/aero_surface.py +++ b/rocketpy/rocket/aero_surface/aero_surface.py @@ -30,8 +30,9 @@ def _beta(mach): """Defines a parameter that is often used in aerodynamic equations. It is commonly used in the Prandtl factor which corrects subsonic force coefficients for compressible flow. - This is applied to the lift coefficient of the nose cone, - fins and tails/transitions as in [1]. + This is applied to the lift coefficient of the fins as in [1]. + The lift coefficients of nose cones and tails/transitions do not + depend on the Mach number, so the factor is not applied to them. Parameters ---------- From 02abd54ed86f0a459e500b714cfd468249ed33bb Mon Sep 17 00:00:00 2001 From: MateusStano Date: Mon, 16 Nov 2026 21:11:53 -0300 Subject: [PATCH 4/4] DOC: link the tube fin references Co-Authored-By: Claude Fable 5.2 --- docs/technical/aerodynamics/tube_fins.rst | 2 ++ rocketpy/rocket/aero_surface/tube_fins.py | 20 +++++++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/docs/technical/aerodynamics/tube_fins.rst b/docs/technical/aerodynamics/tube_fins.rst index 5d77f9a43..a61790613 100644 --- a/docs/technical/aerodynamics/tube_fins.rst +++ b/docs/technical/aerodynamics/tube_fins.rst @@ -188,7 +188,9 @@ References .. [1] Ribner, H. S. "The Ring Airfoil in Nonaxial Flow." *Journal of the Aeronautical Sciences*, 14(9), 529--530, 1947. + https://doi.org/10.2514/8.1437 .. [2] Fletcher, H. S. "Experimental Investigation of Lift, Drag, and Pitching Moment of Five Annular Airfoils." NACA Technical Note 4117, 1957. + https://ntrs.nasa.gov/citations/19930084906 .. [3] Helmbold, H. B. "Der unverwundene Ellipsenflügel als tragende Fläche." *Jahrbuch 1942 der Deutschen Luftfahrtforschung*, I111--I113, 1942. diff --git a/rocketpy/rocket/aero_surface/tube_fins.py b/rocketpy/rocket/aero_surface/tube_fins.py index 7f50f4031..553e9c31c 100644 --- a/rocketpy/rocket/aero_surface/tube_fins.py +++ b/rocketpy/rocket/aero_surface/tube_fins.py @@ -13,11 +13,11 @@ class TubeFins(AeroSurface): """Defines a symmetric set of tube fins. Each tube is treated as a ring wing on its own. Its normal force follows - Ribner's result that a ring wing lifts twice as much as an elliptic flat - wing spanning its diameter, and its center of pressure follows the wind - tunnel measurements of NACA TN 4117. Both were obtained at low speed and - are used unchanged at every Mach number. A roll rate is damped by the - normal force it produces on each tube. + Ribner's result [1] that a ring wing lifts twice as much as an elliptic + flat wing spanning its diameter, and its center of pressure follows the + wind tunnel measurements of NACA TN 4117 [2]. Both were obtained at low + speed and are used unchanged at every Mach number. A roll rate is damped + by the normal force it produces on each tube. The model is limited to uncanted tubes that touch both the rocket body and their two neighboring tubes. The effect the tubes have on each other, and @@ -50,6 +50,16 @@ class TubeFins(AeroSurface): See Also -------- :doc:`Tube Fin Aerodynamics ` + + References + ---------- + [1] Ribner, H. S. "The Ring Airfoil in Nonaxial Flow." Journal of the + Aeronautical Sciences, 14(9), 529-530, 1947. + https://doi.org/10.2514/8.1437 + + [2] Fletcher, H. S. "Experimental Investigation of Lift, Drag, and + Pitching Moment of Five Annular Airfoils." NACA Technical Note 4117, 1957. + https://ntrs.nasa.gov/citations/19930084906 """ # Center of pressure of a ring wing measured in NACA TN 4117 (figure 8):