Add opening shock force estimation to Parachute class - #1050
Merged
ArthurJWH merged 2 commits intoAug 5, 2026
Merged
Conversation
Adds an opening_shock_coefficient parameter and a calculate_opening_shock_force method to estimate the peak transient force during parachute inflation, following the simplified model in Knacke's Parachute Recovery Systems Design Manual (1992, Section 5.5). Closes RocketPy-Team#161
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## enh/opening-shock-force #1050 +/- ##
==========================================================
Coverage ? 82.52%
==========================================================
Files ? 128
Lines ? 16554
Branches ? 0
==========================================================
Hits ? 13662
Misses ? 2892
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Member
|
@Matanski please rebase your work on top of the develop branch, your PR should be targeting develop (not master) |
Contributor
|
Since this is a simplified equation for the opening shock force that would not directly impact the flight simulation, I believe that it would be better to add it as an utilities function (e.g. |
7 tasks
ArthurJWH
merged commit Aug 5, 2026
cb3b0bc
into
RocketPy-Team:enh/opening-shock-force
6 of 7 checks passed
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.
Summary
Addresses #161 — estimates the peak transient "opening shock" force
experienced by recovery hardware during parachute inflation.
Changes
opening_shock_coefficientparameter toParachute.__init__(default 1.5, per Knacke's typical range of 1.2–2.0).
Parachute.calculate_opening_shock_force(air_density, velocity),implementing F₀ = Cx · Cd·S · q from Knacke's "Parachute Recovery
Systems Design Manual" (1992, Section 5.5).
to_dict/from_dictwith backward-compatible defaulting for old serialized data.
scaling, and serialization round-trip.
Test plan
pytest tests/unit/rocket/test_parachute.py— 19 passedpytest tests/unit— 1546 passed, 12 skipped