Skip to content

using the solvent related from BlackOilFluidState#6939

Open
GitPaean wants to merge 1 commit intoOPM:masterfrom
GitPaean:adding_solvent_blackoilfluidstate
Open

using the solvent related from BlackOilFluidState#6939
GitPaean wants to merge 1 commit intoOPM:masterfrom
GitPaean:adding_solvent_blackoilfluidstate

Conversation

@GitPaean
Copy link
Member

following OPM/opm-common#5064 to move the solvent related from the solventmodule to fluid state.

@GitPaean GitPaean added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Mar 15, 2026
@GitPaean GitPaean requested a review from Copilot March 16, 2026 10:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aligns opm-simulators with opm-common/opm-common#5064 by threading the solvent enable-flag into BlackOilFluidState instantiations and starting to store solvent-related state (e.g., solvent saturation, rsSolw, solvent PVT props) directly on the fluid state rather than as separate members in the solvent module.

Changes:

  • Add EnableSolvent as a template argument to BlackOilFluidState typedefs across wells/flow/aquifer/experimental paths.
  • Refactor BlackOilSolventIntensiveQuantities to set/get solvent saturation, rsSolw, solvent invB, and solvent density via fluidState_.
  • Adjust a few call sites to avoid binding references to values returned from the updated solvent accessors.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
opm/simulators/wells/WellInterface.hpp Include has_solvent in the BlackOilFluidState alias used by wells.
opm/simulators/flow/TemperatureModel.hpp Include enableSolvent in the temperature-model BlackOilFluidState alias.
opm/simulators/flow/EquilInitializer.hpp Include enableSolvent in EQUIL initialization fluid state type.
opm/simulators/aquifers/AquiferAnalytical.hpp Include enableSolvent in aquifer analytical fluid state type.
opm/models/blackoil/blackoilsolventmodules.hh Move solvent-related storage/access to fluidState_; update solvent PVT handling accordingly.
opm/models/blackoil/blackoilintensivequantities.hh Thread enableSolvent into main intensive-quantities fluid state typedefs.
flowexperimental/BlackOilIntensiveQuantitiesGlobalIndex.hpp Thread enableSolvent into experimental/global-index fluid state typedef.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@GitPaean GitPaean force-pushed the adding_solvent_blackoilfluidstate branch from 29f8d96 to eefaf1e Compare March 16, 2026 10:46
@GitPaean GitPaean requested a review from totto82 March 16, 2026 12:08
Copy link
Member

@totto82 totto82 left a comment

Choose a reason for hiding this comment

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

I notice we don't have any regression tests for the CO2SOL option. Maybe we should one before we merge this? Or we can merge this first and add it later. I can make a PR with it asap.

@GitPaean
Copy link
Member Author

I notice we don't have any regression tests for the CO2SOL option. Maybe we should one before we merge this? Or we can merge this first and add it later. I can make a PR with it asap.

It will be fine after, since we do not have a master reference anyway. The only reason to do it before merging this is to make sure it is running through fine.

Sure. We can also get the test case in first.

@GitPaean GitPaean force-pushed the adding_solvent_blackoilfluidstate branch from eefaf1e to c60c265 Compare March 16, 2026 12:41
jenkins4opm pushed a commit to jenkins4opm/opm-tests that referenced this pull request Mar 16, 2026
        PR OPM/opm-simulators#6939

Reason: PR OPM/opm-common#5064
        PR OPM/opm-simulators#6939

opm-common     = 53392fd5950a64837e2c077ecbc44e0e6e5b1d94
opm-grid       = 29485c1370945fe39db3862ee4917a3bb3784449
opm-simulators = 0d8ee61f0f2a6b52001cae04843136b3a3e39449

### Changed Tests ###

  * spe5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:irrelevant This PR is a minor fix and should not appear in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants