Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@daavid00
Copy link
Member

Writing THCONR to INIT

@daavid00
Copy link
Member Author

Jenkins build this please

Copy link
Member

@bska bska left a comment

Choose a reason for hiding this comment

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

The feature here is probably okay, but the changes to the UnitSystem must be accompanied by a comprehensive set of unit tests to verify that the conversions produce the expected results.

constexpr const double Moles = kilo*pound*mol;
constexpr const double PPM = ppm;
constexpr const double Ymodule = giga*Pascal;
constexpr const double ThermalConductivity = btu/(degFahrenheit*day*centi*meter);
Copy link
Member

Choose a reason for hiding this comment

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

I would normally expect feet as a basic length unit instead of centi*meter in FIELD units.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for noticing, when doing this I looked up back and on line 320 for surface tension is used centi*meter, then I will also change that to feet.

Copy link
Member

Choose a reason for hiding this comment

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

320 for surface tension is used centi*meter, then I will also change that to feet.

Please don't. Surface tension is dyne/cm in all unit systems.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, I have added tests for the unit conversion as requested, please let me know if further changes are needed before merging this.

@daavid00
Copy link
Member Author

Jenkins build this please

@bska
Copy link
Member

bska commented Feb 11, 2025

jenkins build this update_data please

jenkins4opm pushed a commit to jenkins4opm/opm-tests that referenced this pull request Feb 11, 2025
Reason: PR OPM/opm-common#4474

opm-common     = e82641b6c75ccdaf551bdf56d5c408795fdf28db
opm-grid       = c0d2beb91e114081d373da40fc1c2c0d41eeccfd
opm-simulators = e82641b6c75ccdaf551bdf56d5c408795fdf28db

### Changed Tests ###

  * spe1_thermal
  * spe1_thermal_watvisc
  * spe1_thermal_onephase
  * co2store_energy
  * h2store_energy
@bska
Copy link
Member

bska commented Feb 11, 2025

jenkins build this opm-tests=1290 please

bska added a commit to OPM/opm-tests that referenced this pull request Feb 11, 2025
Copy link
Member

@bska bska left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the updates. This looks good to me now and as the updated reference solutions have been installed on the CI system I'll merge into master.

@bska bska merged commit b60d997 into OPM:master Feb 11, 2025
1 check passed
@daavid00 daavid00 deleted the thconrInit branch April 7, 2025 10:45
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.

2 participants