feat: Move CO2-Brine parameters to xml #3777
Draft
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.Changes in results:
Example change: