Skip to content

Conversation

@raphaeltimbo
Copy link
Collaborator

Adds interactive hover information to bearing and seal elements in rotor plots, similar to the existing shaft element hover functionality.

Features

  • Hover markers at bearing/seal centers show detailed element information
  • Frequency-dependent coefficients displayed at first and last frequencies
  • Frequency/speed values shown in RPM
  • Customized hover info for each bearing type (Seal, Ball Bearing, Magnetic Bearing, Cylindrical Bearing)
  • Markers are invisible but fully interactive to avoid visual clutter
  • Marker size scales proportionally with bearing scale_factor

Example

Hovering over a seal now displays: tag, node, frequency range (RPM), stiffness coefficients (Kxx, Kyy, Kxy, Kyx), damping coefficients (Cxx, Cyy, Cxy, Cyx), and seal leakage.

Implement interactive hover information for bearing and seal elements
in rotor plots, similar to existing shaft element hover functionality.

- Add _hover_info() method to BearingElement base class
- Add invisible hover markers at bearing centers in _patch() method
- Display frequency-dependent coefficients at first and last frequencies
- Show frequency/speed values in RPM for better readability
- Scale marker size proportionally to bearing icon height
- Include customized hover info for each bearing type:
  * SealElement: shows cross-coupled coefficients and seal leakage
  * BallBearingElement: shows geometric parameters (balls, diameter, etc.)
  * MagneticBearingElement: shows electromagnetic and PID parameters
  * CylindricalBearing: shows fluid film properties and eccentricity

The hover markers are invisible (opacity=0) but fully interactive,
allowing users to view detailed bearing information without visual
clutter. Marker size automatically scales with the bearing's scale_factor
to maintain proportional sizing across different bearing types.
@codecov-commenter
Copy link

codecov-commenter commented Oct 25, 2025

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

Codecov Report

❌ Patch coverage is 38.23529% with 42 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.99%. Comparing base (bc15f55) to head (f9902a4).

Files with missing lines Patch % Lines
ross/bearing_seal_element.py 38.23% 42 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    #1229      +/-   ##
==========================================
- Coverage   83.25%   82.99%   -0.26%     
==========================================
  Files          42       42              
  Lines       12120    12188      +68     
==========================================
+ Hits        10090    10116      +26     
- Misses       2030     2072      +42     
Files with missing lines Coverage Δ
ross/bearing_seal_element.py 87.27% <38.23%> (-7.53%) ⬇️

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 bc15f55...f9902a4. Read the comment docs.

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

@raphaeltimbo raphaeltimbo merged commit 418e44d into petrobras:main Oct 25, 2025
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.

2 participants