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

PR 185 Cleanup #193

Merged
merged 8 commits into from
Apr 30, 2024
Merged

Conversation

softwareengineerprogrammer
Copy link
Collaborator

@softwareengineerprogrammer softwareengineerprogrammer commented Apr 30, 2024

Follow-up from #185 (self-reviewed in softwareengineerprogrammer#22)

  1. Calculate lithostatic_pressure as an overridden class method in CylindricalReservoir instead of passing parameters from WellBores for less code duplication and better consistency; plus other related code cleanup
  2. Unit tests for lithostatic pressure calculation
  3. More user-friendly message when MC fails
  4. Work-in-progress (skipped for now) Unit test for MC ignoring first input variable? #192

@softwareengineerprogrammer softwareengineerprogrammer marked this pull request as ready for review April 30, 2024 16:22
…#issuecomment-2086009787 for now - appears to experience intermittent failures in GH Actions
@softwareengineerprogrammer softwareengineerprogrammer merged commit cb29e6f into NREL:main Apr 30, 2024
11 checks passed
def lithostatic_pressure(self, rho_rock_kg_per_m3: float, depth_m: float) -> PlainQuantity:
return quantity(static_pressure_MPa(rho_rock_kg_per_m3, depth_m), 'MPa')
return quantity(static_pressure_MPa(self.rhorock.quantity().to('kg/m**3').magnitude,
self.InputDepth.quantity().to('m').magnitude), 'MPa')
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tangentially relevant to #122

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