Skip to content

Commit

Permalink
Merge pull request #611 from RocketPy-Team/fix/nosecone_bluffness_#610
Browse files Browse the repository at this point in the history
BUG: Fixes nose cone bluffness issue #610
  • Loading branch information
Gui-FernandesBR authored May 25, 2024
2 parents e7b730a + 836cde7 commit 92fb685
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

- BUG: Fixes nose cone bluffness issue #610 [#611](https://github.com/RocketPy-Team/RocketPy/pull/611)
- BUG: plot drag curves when function source is callable [#599](https://github.com/RocketPy-Team/RocketPy/pull/599)
- BUG: Fix minor type hinting problems [#598](https://github.com/RocketPy-Team/RocketPy/pull/598)
- BUG: Optional Dependencies Naming in pyproject.toml. [#592](https://github.com/RocketPy-Team/RocketPy/pull/592)
Expand Down
4 changes: 2 additions & 2 deletions rocketpy/rocket/aero_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,11 @@ def test_circle(x):
r_circle, circle_center, x_init = 0, 0, 0
else:
# Find the intersection point between circle and nosecone curve
x_init = fsolve(lambda x: find_radius(x) - r_circle, r_circle)[0]
x_init = fsolve(lambda x: find_radius(x[0]) - r_circle, r_circle)[0]
circle_center = find_x_intercept(x_init)
else:
# Find the intersection point between circle and nosecone curve
x_init = fsolve(lambda x: find_radius(x) - r_circle, r_circle)[0]
x_init = fsolve(lambda x: find_radius(x[0]) - r_circle, r_circle)[0]
circle_center = find_x_intercept(x_init)

# Calculate a function to create the circle at the correct position
Expand Down

0 comments on commit 92fb685

Please sign in to comment.