feat: Move CO2-Brine parameters to xml#3777
Open
dkachuma wants to merge 23 commits into
Open
Conversation
Contributor
|
This is really a good thing. This will also allow to simply unit tests. |
Contributor
Author
No. This is a breaking change. The idea is to add an issue describing how to change the parameters. |
paveltomin
approved these changes
Sep 22, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR removes the parameter files used for CO2-Brine model input. This is replaced by direct xml entries. This is a breaking change in terms of user interaction requiring changes to input models. This is evidenced by the extensive changes required in the geos integrated tests.
The key change is the removal of the two fields
phasePVTParaFilesandflashModelParaFileon theCO2BrineFluidmodels. The information that was in these files is now required within the xml itself. This includes:pressureCoordinatescaptures the range while thepressureIntervalcaptures the step and similarly for temperature. The new formulation is different from the old in thatpressureCoordinatesand ignorepressureInterval. This is useful in some cases where a log space might be more appropriate.ezrokhiDensityCoefficientsandezrokhiViscosityCoefficients. These default to 0 if not specified.DuanSun(default),SpycherPruessandTables). The table formulation works in conjunction with thesolubilityTablesfield in which the user provides (externally generated) solubility tables directly.The implementation involves creation of the
BrineFluidParametersobject to contain all the parameters. This is then passed around when creating PVT models instead of lists of strings.The CO2-Brine documentation has been updated to reflect not only the changes but also to include all previously developed features that had not been documented.
Changes in results:
Example change:
Since this is a breaking change, detailed migration instructions are posted at #4022