Skip to content

BUG: fix center of pressure of LV-Haack and parabolic nose cones - #1252

Open
rundvd wants to merge 1 commit into
RocketPy-Team:developfrom
rundvd:bug/nose-cone-center-of-pressure
Open

rundvd wants to merge 1 commit into
RocketPy-Team:developfrom
rundvd:bug/nose-cone-center-of-pressure

Conversation

@rundvd

@rundvd rundvd commented Dec 1, 2026

Copy link
Copy Markdown

Pull request type

  • Code changes (bugfix, features)

Checklist

  • Tests for the changes have been added (if needed)
  • CHANGELOG.md: no action needed; an LLM workflow auto-updates it after merge

Current behavior

In slender body theory, the center of pressure of a nose cone is at L - V/A from the tip, which is what the ogive case already uses. Two of the constants in NoseCone don't follow from the shapes they're paired with:

  • lvhaack uses k = 0.563. For an LV-Haack nose, V/(A*L) is exactly 9/16 = 0.5625, so this is the volume ratio instead of 1 - V/(A*L) = 7/16.
  • parabolic uses k = 0.5, which is the value for a paraboloid (radius proportional to the square root of x). The shape in the code is the tangent parabola 2*x/L - (x/L)**2, which gives 7/15.

Both put the center of pressure too far aft, so the static margin is too high. For the Calisto rocket from the docs with an LV-Haack nose, it's 2.271 calibers at ignition instead of 2.118.

New behavior

k is 7/16 for lvhaack and 7/15 for parabolic. A new test compares the center of pressure of each kind with a numerical integral of its own shape. On develop, it fails for these two and passes for the other five.

test_add_nose_assert_cp_cm_plus_nose expected 0.563, so I updated it and added the parabolic nose.

Breaking change

  • Yes

Static margins of rockets with these two nose cones will be lower.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant