Skip to content

Conversation

@ViniciusTxc3
Copy link
Collaborator

Creating a class for simulating hcomb seals, along with @vitorp0604

@ViniciusTxc3 ViniciusTxc3 self-assigned this Sep 3, 2025
@codecov-commenter
Copy link

codecov-commenter commented Sep 8, 2025

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

Codecov Report

❌ Patch coverage is 18.93333% with 304 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.18%. Comparing base (795715e) to head (773ca73).
⚠️ Report is 21 commits behind head on main.

Files with missing lines Patch % Lines
ross/seals/holepattern_seal.py 17.61% 304 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    #1207      +/-   ##
==========================================
- Coverage   79.11%   77.18%   -1.93%     
==========================================
  Files          40       41       +1     
  Lines       11058    11430     +372     
==========================================
+ Hits         8748     8822      +74     
- Misses       2310     2608     +298     
Files with missing lines Coverage Δ
ross/__init__.py 93.33% <100.00%> (+0.22%) ⬆️
ross/rotor_assembly.py 92.77% <100.00%> (+<0.01%) ⬆️
ross/seals/labyrinth_seal.py 12.20% <100.00%> (+0.87%) ⬆️
ross/seals/holepattern_seal.py 17.61% <17.61%> (ø)

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 795715e...773ca73. Read the comment docs.

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

Enable gas_composition parameter to work seamlessly with or without REFPROP by:
- Handling HEOS convergence issues when fitting Sutherland coefficients
- Making ccp a required dependency (not optional) to leverage auto-backend selection
- Adding comprehensive test coverage for both REFPROP and HEOS backends

This ensures users without REFPROP license can still use gas_composition parameter
via CoolProp's HEOS backend, while maintaining full backward compatibility.
Similar to test_hcomb.py, add 13 comprehensive tests covering:
- Manual parameter tests (always run)
- gas_composition tests (both REFPROP and HEOS)
- REFPROP vs HEOS comparison tests (REFPROP-only)
- Edge cases and error handling
- Multiple frequencies support
- Coefficient symmetry validation
- Backward compatibility

Tests verify that gas_composition parameter works seamlessly with
or without REFPROP, with differences <0.05% between backends.
Rename class, files, and all references from hcomb/honeycomb to holepattern:
- Rename hcomb_seal.py → holepattern_seal.py
- Rename test_hcomb.py → test_holepattern.py
- Rename HoneycombSeal → HolePatternSeal
- Update all imports in __init__.py and rotor_assembly.py
- Update all variable names and docstrings
- All tests passing (13 passed in 5.40s)
Replace manual thermodynamic parameters (b_suther, s_suther, molar,
gamma, r, tz, muz) with gas_composition in docstring examples for both
HolePatternSeal and LabyrinthSeal.

This promotes the recommended approach and demonstrates the simpler API.
@raphaeltimbo raphaeltimbo merged commit 017d115 into petrobras:main Oct 8, 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.

4 participants