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

Compositional simulator expanded to three phases #5851

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

svenn-t
Copy link
Contributor

@svenn-t svenn-t commented Jan 8, 2025

Added a "dummy"/immiscible water phase to the compositional simulator using the three-phase fluid system in OPM/opm-common#4410. An additional equation for the water phase has been added with water saturation as primary variable. Water phase properties are set using standard keywords as in black oil simulations.

@svenn-t svenn-t marked this pull request as ready for review January 9, 2025 11:35
@totto82 totto82 requested a review from GitPaean January 14, 2025 14:16
@svenn-t svenn-t marked this pull request as draft January 16, 2025 10:39
@svenn-t svenn-t force-pushed the dummy_water_compositional branch from 4a79ef0 to 4a0b8ab Compare January 20, 2025 11:58
@svenn-t svenn-t marked this pull request as ready for review January 20, 2025 12:16
@svenn-t svenn-t force-pushed the dummy_water_compositional branch from 4a0b8ab to 253e5c2 Compare January 21, 2025 12:49
@svenn-t svenn-t force-pushed the dummy_water_compositional branch from b6ea038 to 41b232d Compare February 3, 2025 09:31
@GitPaean
Copy link
Member

GitPaean commented Feb 4, 2025

Sorry for the delay. But I will review the PR now. Due to the change in master branch, there is some update needed in opm-simulators/opm/simulators/flow/FIPContainer.cpp.

@svenn-t svenn-t force-pushed the dummy_water_compositional branch from 41b232d to 20ca154 Compare February 5, 2025 07:35
@svenn-t
Copy link
Contributor Author

svenn-t commented Feb 5, 2025

Sorry for the delay. But I will review the PR now. Due to the change in master branch, there is some update needed in opm-simulators/opm/simulators/flow/FIPContainer.cpp.

I've pushed a new update with changes in the mentioned file.

INSTANTIATE_COMP_TWOPHASE(4)
INSTANTIATE_COMP_TWOPHASE(5)
INSTANTIATE_COMP_TWOPHASE(6)
INSTANTIATE_COMP_TWOPHASE(7)
Copy link
Member

Choose a reason for hiding this comment

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

make a new macro

 #define INSTANTIATE_COMP(NUM) \
    INSTANTIATE_COMP_THREEPHASE(NUM) \
   INSTANTIATE_COMP_TWOPHASE(NUM)

less duped lines, easier maintenance (you can still call the threephase one for 0).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

So /= sumS;
Sg /= sumS;
Sw /= sumS;
Copy link
Member

Choose a reason for hiding this comment

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

Just leaving some notes for later,

should we update the water saturation in the fluidState_ again here?

@GitPaean
Copy link
Member

GitPaean commented Feb 5, 2025

I is very well done job. I went through without noticing anything significant. We will wait to check against some reference output. It is possible there will be some minor comments here and there.

I will invite @akva2 to have a look for the part that he is interested, since he has some quite some overview related FluidSystem.

@GitPaean GitPaean requested a review from akva2 February 5, 2025 15:05
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.

3 participants