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

add parameter to set maximum water saturation. Default is 1.0 #816

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

totto82
Copy link
Member

@totto82 totto82 commented Aug 7, 2023

This is the second part of

#803

which adds a option to set the maximum water saturation. For some cases using a value slightly above 1.0 (for instance 1.05) improves the convergence significantly. Default is 1.0 so this PR should not change default results.

@totto82
Copy link
Member Author

totto82 commented Aug 7, 2023

jenkins build this please

@totto82
Copy link
Member Author

totto82 commented Aug 16, 2023

jenkins build this please

@totto82
Copy link
Member Author

totto82 commented Aug 16, 2023

jenkins build this please

Copy link
Member

@atgeirr atgeirr left a comment

Choose a reason for hiding this comment

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

I think this is acceptable. I would be very nervous about a future PR changing the default, especially for MaxWaterSaturation! However, I acknowledge that this makes it much easier to test various combinations and in turn perhaps find a better solution.

@hnil What do you think?

// special case cells with almost only water
// use both saturations (if the phase is enabled)
// special case for cells with almost only water
//thresholdWaterFilledCell = std::min(thresholdWaterFilledCell, 1.0 - eps);
Copy link
Member

Choose a reason for hiding this comment

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

Remove this?

@totto82
Copy link
Member Author

totto82 commented Aug 30, 2023

jenkins build this please

@totto82
Copy link
Member Author

totto82 commented Aug 30, 2023

Thanks for approving. Will merge.

@totto82 totto82 merged commit 077ac8e into OPM:master Aug 30, 2023
1 check 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.

None yet

2 participants