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

Unit error in Modelica.Media.Examples.SimpleLiquidWater #4099

Closed
qlambert-pro opened this issue Mar 28, 2023 · 4 comments
Closed

Unit error in Modelica.Media.Examples.SimpleLiquidWater #4099

qlambert-pro opened this issue Mar 28, 2023 · 4 comments
Assignees
Labels
example Issue only addresses example(s) L: Media Issue addresses Modelica.Media
Milestone

Comments

@qlambert-pro
Copy link
Contributor

The following equation does not pass unit-checking:

medium2.p = 1e5 * time / 10;

medium2.p is expressed in "Pa" and time in "s"

@qlambert-pro
Copy link
Contributor Author

qlambert-pro commented Mar 28, 2023

Modelica.Media.Examples.ReferenceAir.MoistAir suffers from the same problem for the following equations:

  state1.p = 1.e5 * (1 + time);
  state1.T = 300 + 10 * time;
  state2.p = 1.e5 * (1 + time / 2);
  state2.T = 340 - 20 * time;

@qlambert-pro
Copy link
Contributor Author

qlambert-pro commented Mar 28, 2023

ModelicaTest.Media.TestOnly.MoistAir suffers from the same problem for the following binding equation:

  SI.AbsolutePressure p = 2e5 - 1.5e5 * time;

@qlambert-pro
Copy link
Contributor Author

qlambert-pro commented Mar 28, 2023

ModelicaTest.Media.TestOnly.R134a_setState_pTX and ModelicaTest.Media.TestOnly.WaterIF97_dewEnthalpy suffer from the same problem for the following binding equation:

  SI.AbsolutePressure p = 10e5 + 20e5 * time;

@beutlich
Copy link
Member

Resolved by #4103.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
example Issue only addresses example(s) L: Media Issue addresses Modelica.Media
Projects
None yet
Development

No branches or pull requests

2 participants