ENH: implement power series nose cones (#475)#603
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #603 +/- ##
===========================================
- Coverage 73.69% 73.46% -0.24%
===========================================
Files 70 70
Lines 10304 10340 +36
===========================================
+ Hits 7594 7596 +2
- Misses 2710 2744 +34 ☔ View full report in Codecov by Sentry. |
|
Nice one! @Lucas-Prates can you mark the PR 475 in the "Development" section at the top right corner of your PR? |
MateusStano
left a comment
There was a problem hiding this comment.
Hey! This is great! The center of pressure values seem to be correct, so just a few comments:
- Can you add
NoseCone.powerto the class attributes docs? - The parameter
bluffnessshould not be used withpowerI think. It would be good to have a check on this. The drawing breaks if you addbluffnessto a powerseries nose cone.
Gui-FernandesBR
left a comment
There was a problem hiding this comment.
Very good PR, simple and effective, congratulations!
This PR made me to realize that we do not have a docs page for each aerodynamic surface. maybe this is something to be added to the documentation tasks. @phmbressan
…g docs for power series nose cones.
|
@Lucas-Prates your PR looks nice to me. Just to attention points:
The changelog needs to be updated before merging the PR, it is really simple so it is a must. We can help you with theses tests, no rocket science, don't worry. |
|
Thanks a lot for the review, @Gui-FernandesBR. With respect to the tests, I have extremely basic experience with it. However, I do not mind implementing the tests in this PR since it seems to be a good opportunity to learn. Also, I do not know what a changelog is or how to adequately update it, so I will need guidance with that as well. |
|
One minor issue: the documentation states that the When Should we still raise a Here are some drawings to understand. |
Passing 0 should raise an error since it does not make physical sense. Passing 1 should work normally |
Gui-FernandesBR
left a comment
There was a problem hiding this comment.
Good job with this PR @Lucas-Prates!! I believe we are ready to merge it already, we will just need to fix a simple conflict within the CHANGELOG.md file




Pull request type
Checklist
black rocketpy/ tests/) has passed locallypytest tests -m slow --runslow) have passed locallyCHANGELOG.mdhas been updated (if relevant)Current behavior
This PR implements power series nose cones, as requested in #475 .
New behavior
The implementation required adding an extra argument,
power, to the initialization of theNoseConeclass and theadd_nosemethod on theRocketclass.I tried to maintain the implementation style using setters and property decorators.
I calculated the enigmatic
self.kattribute, used to compute the Center of Pressure, in the same way other methods calculate it:Since this is a simple integral, the final result, if I computed things correctly, is:
Breaking change
Additional information
I tested it on the example rocket in the Getting Started notebook. Here are some drawings with different values for the 'power' parameter: