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

Fix plot torsional and axial modes #1122

Merged
merged 12 commits into from
Oct 22, 2024

Conversation

jguarato
Copy link
Contributor

@jguarato jguarato commented Oct 22, 2024

Resolves #1096


This PR introduces corrections related to the plotting of mode shapes and includes new methods to handle the plotting of torsional and axial modes in the 6-DoF model.

The plot_with_mode_shape method was not functioning due to changes in the frequency_units parameter in the ModalResults class from previous PRs. To resolve this, corrections were made to manage speed_units separately from frequency_units.

Additionally, new methods were added to the Shape class, including _plot_torsional and _plot_axial, which are now integrated into the plot_mode_2d and plot_mode_3d methods of ModalResults. For 3D plots, an optional animation feature was added, which can be activated by passing animation=True as an argument.

@codecov-commenter
Copy link

codecov-commenter commented Oct 22, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 26.92308% with 95 lines in your changes missing coverage. Please review.

Project coverage is 83.53%. Comparing base (f6ca34f) to head (1f96fab).
Report is 50 commits behind head on main.

Files with missing lines Patch % Lines
ross/results.py 26.92% 95 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1122      +/-   ##
==========================================
- Coverage   84.52%   83.53%   -0.99%     
==========================================
  Files          35       37       +2     
  Lines        7966     8090     +124     
==========================================
+ Hits         6733     6758      +25     
- Misses       1233     1332      +99     
Files with missing lines Coverage Δ
ross/results.py 78.59% <26.92%> (-5.61%) ⬇️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 32c5f1a...1f96fab. Read the comment docs.

@raphaeltimbo raphaeltimbo merged commit 9ea2f50 into petrobras:main Oct 22, 2024
9 checks passed
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.

Fix plot_mode functions for 6 DoF model
3 participants