You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting up a rocket with multiple fuselage sections with different diameters, RocketPy may calculate the wrong value of center of pressure position.
The expected static margin for the example above is: 2.71
The returned value is: 1.75
Screenshots
Current result:
Expected result:
Additional context
This bug was caught by Faraday Rocketry UPV when attempting to simulate a two-stage rocket.
Workaround
The current workaround is to use all rocket_radius values as the largest rocket radius. This causes the following side-effects:
Rocket.draw will return a drawing where the fuselage does not meet the nose cone or transitions appropriately.
Lift coefficient interference factors between fins and the fuselage will be badly estimated. This, however, should result in negligible differences in the overall lift coefficient and center of pressure position, for most cases.
Gui-FernandesBR
changed the title
Invalid Center of Pressure for Rockets with Variable Diameter
BUG: Invalid Center of Pressure for Rockets with Variable Diameter
Feb 14, 2024
Describe the bug
When setting up a rocket with multiple fuselage sections with different diameters, RocketPy may calculate the wrong value of center of pressure position.
To Reproduce
Here is an example:
Expected behavior
The expected static margin for the example above is: 2.71
The returned value is: 1.75
Screenshots
Current result:
Expected result:
Additional context
This bug was caught by Faraday Rocketry UPV when attempting to simulate a two-stage rocket.
Workaround
The current workaround is to use all
rocket_radius
values as the largest rocket radius. This causes the following side-effects:Rocket.draw
will return a drawing where the fuselage does not meet the nose cone or transitions appropriately.Here is an example code:
Results in a static margin of: 2.71.
The rocket drawing ends up like this:
The text was updated successfully, but these errors were encountered: