Add opening shock force estimation to Parachute class#1050
Open
Matanski wants to merge 1 commit into
Open
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 @@
## master #1050 +/- ##
==========================================
+ Coverage 81.12% 81.43% +0.30%
==========================================
Files 107 107
Lines 13881 14030 +149
==========================================
+ Hits 11261 11425 +164
+ Misses 2620 2605 -15 ☔ 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) |
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