Skip to content
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

Limit ThermofluidStream.Media.myMedia.Air.MoistAir isentropic exponent kappa and entropy to relative humidity phi<1 #169

Open
RaphaelGebhart opened this issue Mar 8, 2024 · 0 comments · May be fixed by #172

Comments

@RaphaelGebhart
Copy link
Contributor

RaphaelGebhart commented Mar 8, 2024

To calculate the isentropic exponent Medium.isentropicExponent() uses kappa=cp/cv, but since Medium.specificHeatCapacityCp() jumps at saturation, the isentropic exponent kappa should be limited to relative humidity phi < 1 (it took us some time to find the reason for weird compressor results, but in the end, we noticed that they were wrong because the inlet air was set to be saturated (x=x_saturation) and resulted in an isentropic exponent kappa=6, changing the relative humidity phi=0.99 gave correct results with an isentropic exponent kappa≈1.4.

Therefore i suggest the Medium itself should test, whether the assumptions made are correct, because saturation at inlet/outlet might occur and one might not always be aware, that this would cause completely wrong results using Medium.isentropicExponent().

Unfortunatly also Medium.specificEntropy(state) is (according to its documentation) only valid for relative humidity phi < 1, and should probably also be limited. Although i expect Medium.specificEntropy() might not be as sensitive as Medium.isentropicExponent() when humidity x >= x_saturation.

Probably extending Medium.specificEntropy(state) to take liquid/solid water into account might be more complex, therefor i suggest first to limit its usage according to its assumptions.

@RaphaelGebhart RaphaelGebhart changed the title Limit `ThermofluidStream.Media.myMedia.Air.MoistAir' isentropic exponent kappa and entropy to relative humidity phi<1 Limit ThermofluidStream.Media.myMedia.Air.MoistAir isentropic exponent kappa and entropy to relative humidity phi<1 Mar 8, 2024
@RaphaelGebhart RaphaelGebhart linked a pull request Mar 11, 2024 that will close this issue
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 a pull request may close this issue.

1 participant