Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request type
Checklist
CHANGELOG.md: no action needed; an LLM workflow auto-updates it after mergeCurrent behavior
In slender body theory, the center of pressure of a nose cone is at
L - V/Afrom the tip, which is what the ogive case already uses. Two of the constants inNoseConedon't follow from the shapes they're paired with:lvhaackusesk = 0.563. For an LV-Haack nose,V/(A*L)is exactly 9/16 = 0.5625, so this is the volume ratio instead of1 - V/(A*L)= 7/16.parabolicusesk = 0.5, which is the value for a paraboloid (radius proportional to the square root ofx). The shape in the code is the tangent parabola2*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
kis 7/16 forlvhaackand 7/15 forparabolic. A new test compares the center of pressure of each kind with a numerical integral of its own shape. Ondevelop, it fails for these two and passes for the other five.test_add_nose_assert_cp_cm_plus_noseexpected 0.563, so I updated it and added the parabolic nose.Breaking change
Static margins of rockets with these two nose cones will be lower.