Skip to content

Fixed PartialSimpleIdealGasMedium.setState_psX#294

Open
RaphaelGebhart wants to merge 1 commit intoDLR-SR:mainfrom
RaphaelGebhart:291_PartialSimpelIdealGasMedium
Open

Fixed PartialSimpleIdealGasMedium.setState_psX#294
RaphaelGebhart wants to merge 1 commit intoDLR-SR:mainfrom
RaphaelGebhart:291_PartialSimpelIdealGasMedium

Conversation

@RaphaelGebhart
Copy link
Copy Markdown
Collaborator

@RaphaelGebhart RaphaelGebhart commented Feb 27, 2026

Regression test passed.

Copy link
Copy Markdown
Contributor

@CorentinLepais CorentinLepais left a comment

Choose a reason for hiding this comment

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

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?

@RaphaelGebhart
Copy link
Copy Markdown
Collaborator Author

Yes i already created one: modelica/ModelicaStandardLibrary#4750

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.

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.

ThermofluidStream.Media.myMedia.Interfaces.PartialSimpleIdealGasMedium.setState_psX

2 participants