Skip to content

Conversation

@svenn-t
Copy link
Contributor

@svenn-t svenn-t commented Sep 18, 2025

Added Python one-phase (water) simulator in the same way as the Python gas-water simulator in PR #6075. A Python one-phase simulator can be useful in many applications, especially coupling to external geochemistry and geomechanics solvers.

@totto82 totto82 added the manual:new-feature This is a new feature and should be described in the manual label Sep 18, 2025
@daavid00 daavid00 added this to the Release 2025.10 milestone Sep 18, 2025
@daavid00
Copy link
Member

jenkins build this please

@@ -0,0 +1,53 @@
/*
Copyright 2020 Equinor ASA.
Copy link
Member

Choose a reason for hiding this comment

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

2025?

getPropValue<TypeTag, Properties::EnableBrine>(),
/*PVOffset=*/0,
/*enabledCompIdx=*/FluidSystem::waterCompIdx,
getPropValue<TypeTag, Properties::EnableMICP>()>;
Copy link
Member

Choose a reason for hiding this comment

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

Since this was merged #6462, then EnableBioeffects instead of EnableMICP.

export_PyOnePhaseSimulator(m);
}

} // namespace Opm::Pybind No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

eol at eof

@akva2
Copy link
Member

akva2 commented Sep 19, 2025

While this is most welcome, please stabilize previous work first, ref https://ci.opm-project.org/job/opm-nightly-pypi/1713/console

@svenn-t
Copy link
Contributor Author

svenn-t commented Sep 19, 2025

While this is most welcome, please stabilize previous work first, ref https://ci.opm-project.org/job/opm-nightly-pypi/1713/console

I'm a bit puzzled because on my local Ctest of test_fluidstate_variables.py, it passes with the reference value in current master. And it passed Jenkins in PR #6075 as well?

I can of course update the reference values to the ones given in the opm-nightly-pypi output. My local Ctest fails if I do that, but perhaps Jenkins and opm-nightly-pypi will be happy? Is this some kind of MPI-related issue? Sorry, I'm a bit confused and would like to understand the issue, to not get similar errors again : P

@akva2
Copy link
Member

akva2 commented Sep 19, 2025

It's passing on some python versions, and not on others, probably related to numpy version. You will have to find something that works everywhere.

@svenn-t
Copy link
Contributor Author

svenn-t commented Sep 19, 2025

Ok, I put up a fix in new PR: #6488. Still unsure if it will pass all tests, crossing my fingers.

I will update this PR after the fix has been merged.

@akva2
Copy link
Member

akva2 commented Sep 19, 2025

I'll check soon, in the middle of something right now. For reference, it's all done using https://github.com/OPM/opm-simulators/tree/master/python/docker and https://github.com/OPM/opm-simulators/tree/master/python/docker/test_wheels/scripts

@svenn-t
Copy link
Contributor Author

svenn-t commented Sep 23, 2025

I have rebased and updated the code to accommodate for changes from PRs #6491 and #6418.

@daavid00 Thanks for your comments! I have addressed them in the new update.

@akva2
Copy link
Member

akva2 commented Sep 23, 2025

jenkins build this please

Copy link
Member

@akva2 akva2 left a comment

Choose a reason for hiding this comment

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

Green on jenkins, I tested wheels, comments addressed, looks fine to me. In she goes.

@akva2 akva2 merged commit 0afc5f3 into OPM:master Sep 23, 2025
2 checks passed
@daavid00 daavid00 removed this from the Release 2025.10 milestone Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:new-feature This is a new feature and should be described in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants