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

Medium package declared constant without value #1513

Open
thomay86 opened this issue Jul 15, 2024 · 1 comment · May be fixed by #1567
Open

Medium package declared constant without value #1513

thomay86 opened this issue Jul 15, 2024 · 1 comment · May be fixed by #1567
Assignees

Comments

@thomay86
Copy link

Dear community,
I was just trying to use the refrigerant media models within my simulation. However, there seems to be a bug or incompatibility when using Media models with standard Modelica blocks that I cannot figure out:

Reproduce
Check the example AixLib.Media.Refrigerants.Examples.BranchingDynamicPipes and it will throw an error (checked with AixLib 1.3.4 and 1.4.0):

For variable package constant AixLib.Media.Refrigerants.R134a.R134a_IIR_P1_395_T233_455_Horner.ThermoStates
declared in class Modelica.Media.Interfaces.Choices, C:/Program Files/Dymola 2024x Refresh 1/Modelica/Library/Modelica 4.0.0/Media/package.mo at line 3926, and used in component AixLib.Media.Refrigerants.R134a.R134a_IIR_P1_395_T233_455_Horner.PartialMedium.

The variable package constant AixLib.Media.Refrigerants.R134a.R134a_IIR_P1_395_T233_455_Horner.ThermoStates
is declared as constant, but is given no value.

Basic type inconsistencies detected.

Check aborted.

ERRORS have been issued.

Desktop (please complete the following information):
Dymola 2024x Refresh 1, Windows 11

@HannahRomberg
Copy link
Contributor

When using the refrigerant media model you need to specify the independent variables (in this case pressure and specific enthalpy) of the ThermoState model within the refrigerant parameters. I updated the example accordingly.

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.

2 participants