X Tutup
Skip to content

MNT: net thrust addition to 3 dof in flight class#907

Merged
Gui-FernandesBR merged 6 commits intodevelopfrom
mnt/net-thrust-addition-3-dof
Dec 4, 2025
Merged

MNT: net thrust addition to 3 dof in flight class#907
Gui-FernandesBR merged 6 commits intodevelopfrom
mnt/net-thrust-addition-3-dof

Conversation

@aZira371
Copy link
Collaborator

@aZira371 aZira371 commented Dec 4, 2025

Pull request type

  • Code changes (bugfix, features)

Checklist

  • Tests for the changes have been added (if needed)
  • Docs have been reviewed and added / updated
  • Lint (black rocketpy/ tests/) has passed locally
  • All tests (pytest tests -m slow --runslow) have passed locally
  • CHANGELOG.md has been updated (if relevant)

Current behavior

net_thrust is not a return of u_dot_generalized_3dof. This is causing errors in when flight object for 3 dof is plotted

New behavior

added net_thrust on the output of u_dot_generalized_3dof. This will allow to have consistent output format as 6 dof.

Breaking change

  • No

Additional information

Enter text here...

- MNT: added net_thrust to u_dot_generalized_3dof in flight.py
@aZira371 aZira371 self-assigned this Dec 4, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds net_thrust to the 3 DOF flight simulation output, fixing an issue where plotting flight objects in 3 DOF mode would fail because the net_thrust property was not available.

Key changes:

  • Added net_thrust calculation with pressure correction to u_dot_generalized_3dof method
  • Updated post_processed_variables to include net_thrust (making it consistent with 6 DOF format)
  • Added test to verify net_thrust and thrust_power properties are available in 3 DOF mode

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
rocketpy/simulation/flight.py Added net_thrust calculation with pressure correction and appended it to post_processed_variables in the 3 DOF simulation method to match 6 DOF format
tests/integration/simulation/test_flight_3dof.py Added integration test to verify net_thrust property is available and thrust_power can be computed in 3 DOF mode

@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.03%. Comparing base (9cf3dd4) to head (5104be4).
⚠️ Report is 22 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #907      +/-   ##
===========================================
+ Coverage    80.27%   81.03%   +0.76%     
===========================================
  Files          104      107       +3     
  Lines        12769    13645     +876     
===========================================
+ Hits         10250    11057     +807     
- Misses        2519     2588      +69     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aZira371 aZira371 marked this pull request as ready for review December 4, 2025 20:43
@aZira371 aZira371 requested a review from a team as a code owner December 4, 2025 20:43
@aZira371 aZira371 linked an issue Dec 4, 2025 that may be closed by this pull request
@aZira371 aZira371 changed the title MNT: net-thrust-addition-3-dof MNT: net thrust addition 3 dof in flight class Dec 4, 2025
@aZira371 aZira371 changed the title MNT: net thrust addition 3 dof in flight class MNT: net thrust addition to 3 dof in flight class Dec 4, 2025
Copy link
Member

@Gui-FernandesBR Gui-FernandesBR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changelog.md?

@Gui-FernandesBR Gui-FernandesBR merged commit eaa9181 into develop Dec 4, 2025
10 checks passed
@Gui-FernandesBR Gui-FernandesBR deleted the mnt/net-thrust-addition-3-dof branch December 4, 2025 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: energy_data plot not working for 3 dof sims

3 participants

X Tutup