-
Notifications
You must be signed in to change notification settings - Fork 168
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
Modelica.Media.Air.MoistAir.density_derX is not right #2868
Comments
That code is in there since MoMoLib was integrated more than 7 years ago: ModelicaStandardLibrary/Modelica/Media/Air.mo Lines 3734 to 3745 in ba2f041
@wischhusen Can you please have a look at this. @HansOlsson You once told (maybe for a similar fix of molarMass), that unit checks in function are tricky. Can you please cross-check. |
Looks reasonable. Have to revisit the code later. |
I think that the current algorithms of Modelica.Media.Air.MoistAir.density_derX,
are not right.
Unit check
Mass fraction X [kg/kg] is unitless.
The unit of density_derX should be same as density.
But the unit of abouve equations are,
pressure*R/(R*temperature)^2 = pressure/(R*temperature^2) = density/temperature.
where,
density = pressure/(R*temperature)
is equation of state for ideal gases.my derivation
(1) dddX[Water]
(2) dddX[Air]
The text was updated successfully, but these errors were encountered: