-
Notifications
You must be signed in to change notification settings - Fork 118
Expose Foam Density Unit #4842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Expose Foam Density Unit #4842
Conversation
This commit adds a new UnitSystem::measure for "foam density" quantities such as those entered in the WFOAM keyword. This is mainly intended for client code that wishes to tag output arrays appropriately for unit conversion in restart file output. While here, also add unit tests for the 'concentration' unit of measure that was introduced in commit d4e33a4 (PR OPM#4741).
|
jenkins build this please |
The FOAM result array should be treated as a "foamdensity" (PR OPM/opm-common#4842) instead of a saturation when converted to output units.
|
The PR looks good, while not directly related to this PR, from the manual I read, it looks like |
| "GPa", | ||
| "KJ/M/DAY/K", | ||
| "DAY/SM3", | ||
| "KG/SM3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not all the units have that, but I do think a comment can help the readability and also you are here to adding a new one, since it is a relatively long list now.
"KG/SM3", /* foam density */ something like that.
GitPaean
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, it looks good to me. A small comment regarding comment, I will leave it up to you whether to add it.
This commit adds a new
UnitSystem::measurefor "foam density" quantities such as those entered in theWFOAMkeyword. This is mainly intended for client code that wishes to tag output arrays appropriately for unit conversion in restart file output.While here, also add unit tests for the 'concentration' unit of measure that was introduced in commit d4e33a4 (PR #4749).