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 potential difference calculations in molar variables #1228

Merged
merged 6 commits into from
Nov 30, 2020

Conversation

francoishamon
Copy link
Contributor

@francoishamon francoishamon commented Nov 10, 2020

This PR changes the potential difference calculations in the compositional solvers (CompositionalMultiphaseFlow and CompositionalMultiphaseWell) to make sure that we always use the phase mass densities in the gravity term. The constitutive models are also modified so that they always compute the phase mass densities, even when useMass = 1.

I tested this PR with deadoil_3ph_staircase_gravity_segregation_3d, co2_flux_3d, and staircase_co2_wells_3d to make sure that useMass = 0 and useMass = 1 produce the same results when gravity is on.

Related to https://github.com/GEOSX/integratedTests/pull/106.

Fixes #1209.

@francoishamon francoishamon added type: bug Something isn't working flag: ready for review flag: requires rebaseline Requires rebaseline branch in integratedTests labels Nov 10, 2020
Copy link
Collaborator

@CusiniM CusiniM left a comment

Choose a reason for hiding this comment

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

Looks good to me. Well done noticing that bug!

@francoishamon francoishamon added ci: run CUDA builds Allows to triggers (costly) CUDA jobs and removed flag: ready for review labels Nov 30, 2020
@francoishamon francoishamon merged commit c258d6a into develop Nov 30, 2020
@francoishamon francoishamon deleted the bugfix/hamon/gravTermWithMolarVars branch November 30, 2020 17:58
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 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.

[Bug] Potential difference calculation using molar variables for compositional simulations
3 participants