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 for black oil #2937

Merged
merged 12 commits into from
Jan 22, 2024
Merged

Fix for black oil #2937

merged 12 commits into from
Jan 22, 2024

Conversation

paveltomin
Copy link
Contributor

@paveltomin paveltomin commented Jan 16, 2024

Fix small bug in black oil computations
One test case requires rebaseline, rebase PR here https://github.com/GEOS-DEV/integratedTests/pull/84

@paveltomin paveltomin added type: bug Something isn't working flag: ready for review labels Jan 16, 2024
@paveltomin paveltomin self-assigned this Jan 16, 2024
phaseCompFraction.value[ipOil][icOil] = zo;
phaseCompFraction.value[ipOil][icGas] = zg;
phaseCompFraction.value[ipOil][icOil] = zo / ( zo + zg );
phaseCompFraction.value[ipOil][icGas] = zg / ( zo + zg );
Copy link
Contributor

Choose a reason for hiding this comment

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

I would have written this as for example zo / (1 - zw) which should have no impact here but would have an impact on the derivatives. Have you looked at the Jacobian in this alternative formulation. I find these composition derivatives a bit confusing when honouring that they sum to 1.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just checked - Jacobian is the same, number of linear iterations is the same, I will update with your version

@paveltomin paveltomin added ci: run integrated tests Allows to run the integrated tests in GEOS CI and removed flag: ready for review labels Jan 16, 2024
@paveltomin paveltomin linked an issue Jan 17, 2024 that may be closed by this pull request
@paveltomin paveltomin added ci: run CUDA builds Allows to triggers (costly) CUDA jobs flag: requires rebaseline Requires rebaseline branch in integratedTests labels Jan 17, 2024
Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (dc79a6c) 51.33% compared to head (3c1e48f) 51.33%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2937   +/-   ##
========================================
  Coverage    51.33%   51.33%           
========================================
  Files          968      968           
  Lines        86817    86819    +2     
========================================
+ Hits         44570    44572    +2     
  Misses       42247    42247           

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

@rrsettgast rrsettgast merged commit 3ccaaf9 into develop Jan 22, 2024
@rrsettgast rrsettgast deleted the pt/black-oil-fix branch January 22, 2024 21:43
ouassimkh pushed a commit that referenced this pull request Feb 16, 2024
* fix for black oil

---------

Co-authored-by: Pavel Tomin <“paveltomin@users.noreply.github.com”>
Co-authored-by: Matteo Cusini <49037133+CusiniM@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci: run CUDA builds Allows to triggers (costly) CUDA jobs ci: run integrated tests Allows to run the integrated tests in GEOS CI flag: requires rebaseline Requires rebaseline branch in integratedTests type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"NotConverged" in linear solver
4 participants