Fixed PartialSimpleIdealGasMedium.setState_psX#294
Conversation
There was a problem hiding this comment.
There was indeed a small error in the formula, even if the results do not change. From a physics point of view, I would have written it like below to keep the exponential without unit and to make more obvious that it calculates a temperature :
reference_T*exp(s/cp_const +R_gas/cp_const*Modelica.Math.log(p/reference_p))
Since this error is also in the MSL, should an issue be created in the MSL repository?
|
Yes i already created one: modelica/ModelicaStandardLibrary#4749 And yes Im also in favor of the version you suggested. Lets chose this one. I will run a regression test with the new version. |
|
Regression test passed. @CorentinLepais could you briefly check out the branch and confirm everything looks good (e.g, with the example below)? If you approve, we can proceed with the merge. I also created a pull request for the MSL: modelica/ModelicaStandardLibrary#4782 |
Regression test passed.