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

OpenModelica compatability of ExergyMeter #1340

Closed
FWuellhorst opened this issue Oct 7, 2022 · 0 comments · Fixed by #1366
Closed

OpenModelica compatability of ExergyMeter #1340

FWuellhorst opened this issue Oct 7, 2022 · 0 comments · Fixed by #1366
Assignees
Labels

Comments

@FWuellhorst
Copy link
Contributor

Describe the bug
The models in the package ExergyMeter fail in OpenModelica.

Error log

 Error in model:  AixLib.Utilities.Sensors.Examples.ExergyMeters 
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Blocks/Math.mo:543:5-544:48:writable] Warning: The following equation is INCONSISTENT due to specified unit information: specHeaCap.k = cp
Warning: The units of following sub-expressions need to be equal:
- sub-expression "cp" has unit "J/(kg.K)"
- sub-expression "specHeaCap.k" has unit "1"
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Fluid/Interfaces.mo:202:5-202:64:writable] Warning: The model can't be instantiated due to top-level outer element ‘system‘, it may only be used as part of a simulation model.
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Fluid/Interfaces.mo:202:5-202:64:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated.
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Fluid/Interfaces.mo:202:5-202:64:writable] Notification: The diagnostics message for the missing inner is: 
Your model is using an outer "system" component but
an inner "system" component is not defined.
For simulation drag Modelica.Fluid.System into your model
to specify system properties.
[D:/04_git/AixLib/AixLib/Utilities/Sensors/ExergyMeter/StoredExergyMeter.mo:80:11-80:46:writable] Notification: From here:
[D:/04_git/AixLib/AixLib/Utilities/Sensors/ExergyMeter/StoredExergyMeter.mo:77:3-87:27:writable] Error: Non-array modification ‘"ThermodynamicTemperature"‘ for array component ‘quantity‘, possibly due to missing ‘each‘.


 
 Error in model:  AixLib.Utilities.Sensors.ExergyMeter.FlowExergyMeter 
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Fluid/Interfaces.mo:202:5-202:64:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated.
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Fluid/Interfaces.mo:202:5-202:64:writable] Notification: The diagnostics message for the missing inner is: 
Your model is using an outer "system" component but
an inner "system" component is not defined.
For simulation drag Modelica.Fluid.System into your model
to specify system properties.
[D:/04_git/AixLib/AixLib/Utilities/Sensors/ExergyMeter/FlowExergyMeter.mo:8:9-8:32:writable] Notification: From here:
[D:/04_git/AixLib/AixLib/Utilities/Sensors/ExergyMeter/FlowExergyMeter.mo:7:3-12:29:writable] Error: Non-array modification ‘"MassFraction"‘ for array component ‘quantity‘, possibly due to missing ‘each‘.


 
 Error in model:  AixLib.Utilities.Sensors.ExergyMeter.StoredExergyMeter 
[D:/04_git/AixLib/AixLib/Utilities/Sensors/ExergyMeter/StoredExergyMeter.mo:80:11-80:46:writable] Notification: From here:
[D:/04_git/AixLib/AixLib/Utilities/Sensors/ExergyMeter/StoredExergyMeter.mo:77:3-87:27:writable] Error: Non-array modification ‘"ThermodynamicTemperature"‘ for array component ‘quantity‘, possibly due to missing ‘each‘.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants