Skip to content
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

DOCS: reshape docs (closes #659) #781

Merged
merged 3 commits into from
Mar 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Attention: The newest changes should be on top -->

### Changed

- DOCS: reshape docs (closes #659) [#781](https://github.com/RocketPy-Team/RocketPy/pull/781)
- MNT: EmptyMotor class inherits from Motor(ABC) [#779](https://github.com/RocketPy-Team/RocketPy/pull/779)

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions docs/user/motors/thrust.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ class also supports them. Let's see how to use it.
)
solid_lambda.info()

.. _reshaping_thrust_curve:

Reshaping and interpolating the thrust curve
--------------------------------------------

Expand Down
7 changes: 6 additions & 1 deletion rocketpy/motors/motor.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,8 @@ def propellant_I_23(self):
def reshape_thrust_curve(thrust, new_burn_time, total_impulse):
"""Transforms the thrust curve supplied by changing its total
burn time and/or its total impulse, without altering the
general shape of the curve.
general shape of the curve. This method does not mutate the original
object, it only returns a new thrust curve.

Parameters
----------
Expand All @@ -893,6 +894,10 @@ def reshape_thrust_curve(thrust, new_burn_time, total_impulse):
-------
Function
Reshaped thrust curve.

Tip
---
See the User Guide page for examples on how to use this method.
"""
# Retrieve current thrust curve data points
time_array, thrust_array = thrust.x_array, thrust.y_array
Expand Down