-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! This is great! The center of pressure values seem to be correct, so just a few comments:
- Can you add
NoseCone.power
to the class attributes docs? - The parameter
bluffness
should not be used withpower
I think. It would be good to have a check on this. The drawing breaks if you addbluffness
to a powerseries nose cone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.md
has 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 theNoseCone
class and theadd_nose
method on theRocket
class.I tried to maintain the implementation style using setters and property decorators.
I calculated the enigmatic
self.k
attribute, 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: