Repository navigation
Unify the temperaure unit - #115
Merged
Merged
Conversation
… data are given in Celsius.
…a::WriteDataBackToEclipse
…rties::density and CFluidProperties::Viscosity.
…default temperature unit being Celsuis
Member
Author
|
Benchmarking works only after ufz/ogs5-benchmarks#20 and ufz/ogs5-benchmarks_ref#30 being merged. |
Contributor
|
:+100. i prefer Celsius as the default |
Member
Author
|
@norihiro-w I agree with you that the Celsius is the default temperature unit. I am going to merge the benchmarks updates. |
Member
Author
|
@norihiro-w All tests run. Do you have any further comments? |
Contributor
|
no i have no further comments. please merge this. it seems I don't have write access anymore. |
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.
As titled.
With the changes, the temperature unit is set to Kelvin in the calculation.
For the input data, there is an option to select the the temperature unit by a new keyword of process:
$TEMPERATURE_UNITwith a value ofKELVINorCELSIUS.If
CELSIUSis selected for$TEMPERATURE_UNIT, the temperature data in initial conditions, Dirichlet boundary conditions and material properties are converted to the data in Kelvin during the initialization of the instance of process class, and the output of temperature result keeps in Celsius.Questions:
$TEMPERATURE_UNITif the temperature unit is the same as the default.In the present implementation, the default temperature is Celsius. Most of temperature related benchmarks take Kelvin, while some applications of projects use Celsius. If Kelvin is set as default temperature unit, the changes in PR Unify the temperature unit ogs5-benchmarks#20 will drop.
Benchmarks results:
Most of temperature related benchmarks satisfy with the current changes and keep quiet during the result comparison. Only the THM benchmarks show tiny difference in the result comparison (see ufz/ogs5-benchmarks_ref#30).